-
-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
videoplayer undefined #8
Comments
I just made a code change to the VideoPlayer which should make it backward compatible with the old window.plugins.videoPlayer way of doing things. If you are using the 2.2.0 version of the plugin go get the new JS file. https://github.com/macdonst/VideoPlayer/blob/master/2.2.0/www/video.js |
Ive realized after writting the issue. You said that this is the old way to call it. Which is the best way to do it? Enviado de Samsung Mobilemacdonst [email protected] escribió:I just made a code change to the VideoPlayer which should make it backward compatible with the old window.plugins.videoPlayer way of doing things. If you are using the 2.2.0 version of the plugin go get the new JS file. https://github.com/macdonst/VideoPlayer/blob/master/2.2.0/www/video.js — |
The newer way of doing thing is to specify where you want the video player object stored yourself. It just doesn't default to window.plugins or at least it didn't until I checked in that backwards compatibility patch. You would do something like:
|
hi macdonst, im so embarrased to ask again for youre help, but im in the same situation Thanks a lot 2013/1/21 macdonst [email protected]
|
No matter I try on cordova 2.3.0 I cant get it works. I get the same error on this post, I will try every post before mine and I'll tell you. There is some known issue about 2.3 ? Thanks. PD. I am using cordova /bin cli I tried with cordova and phongap versions |
Got it solved. I can send you an example. Enviado de Samsung Mobile"Alejandro Trujillo J." [email protected] escribió:No matter I try on cordova 2.3.0 I cant get it works. I get the same error on this post, I will try every post before mine and I'll tell you. There is some known issue about 2.3 ? Thanks. — |
Solved with socialShare plugin, im using it to attach always the same file to the email, just get uri as an parameter in the startEmailActivity . .java import java.io.File; import org.json.JSONArray; import android.app.Activity; import org.apache.cordova.api.LOG; public class SocialShare extends Plugin {
} .js var SocialShare = function() {};
}; SocialShare.prototype.email = function(param, successCallback, failCallback) {
}; SocialShare.prototype.social = function(param, successCallback, failCallback) {
}; .html window.SocialShare.email({message:'Email body', subject: "Email Subject"},
|
Hi macdonst, Your help would be grately appreciated. |
As long as you are using the one from the 2.2.0 directory there shouldn't https://github.com/macdonst/VideoPlayer/tree/master/2.2.0 Simon Mac Donald On Wed, Feb 13, 2013 at 10:42 AM, mb202005 [email protected] wrote:
|
Hi macdonst, i will be really gratefull if you could post an full project example for cordova 2.2.0, im trying to make it work but unsuccessfully. Please help.
The text was updated successfully, but these errors were encountered: