Skip to content
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

Method to just directly start playing video? #1

Open
hsdk123 opened this issue May 29, 2014 · 3 comments
Open

Method to just directly start playing video? #1

hsdk123 opened this issue May 29, 2014 · 3 comments

Comments

@hsdk123
Copy link

hsdk123 commented May 29, 2014

Hi, I was just wondering if there's any kind of play function to just directly start the video file.

@cemerson
Copy link
Owner

Hey there.

After you call the setup and init methods the play button should handle that for you. The Init methods in this case (video) are:

setupCordovaMediaPlayer(playerWidth,playerHeight,defaultTitle, defaultText,defaultThumb);

initMediaPlayerForVideo("Video Title",
"http://www.mysite.com/video.mp4",
"http://www.mysite.com/video_thumbnail.jpg",
"Video description text");

But – if you want to start the playback programmatically I think this method should do it (again, post Init method):

toggleMediaPlayback();

Does that help?

From: hsdk123 [mailto:[email protected]]
Sent: Thursday, May 29, 2014 1:38 AM
To: cemerson/cordova-mediaplayer-core
Subject: [cordova-mediaplayer-core] Method to just directly start playing video? (#1)

Hi, I was just wondering if there's any kind of play function to just directly start the video file.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1.

@hsdk123
Copy link
Author

hsdk123 commented May 31, 2014

Thanks, those 2 methods worked just great :)

@cemerson
Copy link
Owner

Glad to hear!

  • Chris
    This email was sent from my iPhone and was possibly dictated - please excuse any typos.

On May 31, 2014, at 6:50 AM, "hsdk123" <[email protected]mailto:[email protected]> wrote:

Thanks, those 2 methods worked just great :)


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-44745070.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants