moust / cordova-plugin-videoplayer

A Codova plugin to play video with the native MediaPlayer on Android devices.
MIT License
139 stars 102 forks source link

Video Controls? #6

Open 1updesign opened 9 years ago

1updesign commented 9 years ago

Hi,

Thanks for the plugin!

I'm testing on an android emulator and don't seem to get native controls (play/pause/scrub etc.). Should these be visible? If not is there any way to make them visible?

Many Thanks,

Dan

moust commented 9 years ago

No it's not possible, this plugin is designed to be a simple video layer without any control options.

1updesign commented 9 years ago

Ok, thanks, guessing it's not a simply a case of changing an option in the call to media player then?

On Jan 7, 2015, at 17:54, Quentin Aupetit notifications@github.com wrote:

No it's not possible, this plugin is designed to be a simple video layer without any control options.

— Reply to this email directly or view it on GitHub.

moust commented 9 years ago

It requires to create the UI elements in the view and to link them with the play/pause/seek... methods of the MediaPlayer's instance in the controller. Not very difficult to do but I don't planned to do it.

1updesign commented 9 years ago

Ah ok - I though that the android video player would have native controls like the iOS version which could just be enabled/disabled.

Cool - I might take a look at doing so if none of the html5 players work inside Cordova...

Thanks again.

On Jan 7, 2015, at 18:06, Quentin Aupetit notifications@github.com wrote:

It requires to create the UI elements in the view and to link them with the play/pause/seek... methods of the MediaPlayer's instance in the controller. Not very difficult to do but I don't planned to do it.

— Reply to this email directly or view it on GitHub.

socheatsok78 commented 9 years ago

Is there any way to set the orientation to landscape while playing video and set it back to portrait when stop playing?

cdennington commented 9 years ago

@1updesign did you ever get around to adding controls?

I just need a pause/play button, but I'm not quite sure how to do it

p4prawin commented 8 years ago

@moust - can you please give us some reference links to add controls.(if any).. will post the code if i get any luck.

moust commented 8 years ago

I started to implement it in a feature branch but the controls don't appear in the view and don't know why... If someone want to look at it and finds the solution it would be cool :)

comrat commented 6 years ago

Hi, everyone! @moust, it looks like it's not working for Dialog, only for Activities (familiar issue in stackoverflow) If somebody still need video player with controls i've recently created another plugin which starts an activity with VideoView with controls. It works but not fully tested so if somebody want to help - you welcome =)

Saqib92 commented 4 years ago

Update on Video Controls?