cordova-plugin-videoplayer
cordova-plugin-videoplayer copied to clipboard
Video Controls?
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
No it's not possible, this plugin is designed to be a simple video layer without any control options.
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.
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.
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.
Is there any way to set the orientation to landscape while playing video and set it back to portrait when stop playing?
@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
@moust - can you please give us some reference links to add controls.(if any).. will post the code if i get any luck.
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 :)
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 =)
Update on Video Controls?