cordova-plugin-videoplayer icon indicating copy to clipboard operation
cordova-plugin-videoplayer copied to clipboard

Video Controls?

Open 1updesign opened this issue 9 years ago • 10 comments

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

1updesign avatar Jan 07 '15 10:01 1updesign

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

moust avatar Jan 07 '15 17:01 moust

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 [email protected] 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.

1updesign avatar Jan 07 '15 17:01 1updesign

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.

moust avatar Jan 07 '15 18:01 moust

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 [email protected] 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.

1updesign avatar Jan 07 '15 18:01 1updesign

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

socheatsok78 avatar Feb 08 '15 10:02 socheatsok78

@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

cdennington avatar Jul 14 '15 06:07 cdennington

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

p4prawin avatar Oct 21 '15 09:10 p4prawin

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 :)

moust avatar Nov 05 '15 20:11 moust

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 =)

comrat avatar Dec 20 '17 09:12 comrat

Update on Video Controls?

Saqib92 avatar Nov 13 '19 13:11 Saqib92