Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Preventing Android native video player in full screen.


Hi i'm using jwplayer 6.9 in my [video android app], build with phonegap.

The problem i'm having is i'm trying to use the new chromecast feature, but every time when you go in to the full screen inside the app the native android video player starts playing the video and not jwplayer, and the chromecast icon only shows up in full screen.

Is there a way to prevent it going in to the native video player on full screen ?


[minSdkVersion 14 - 4.0]

4 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

There isn’t really a way to enforce this, each device sort of has it’s own rules. Also, while PhoneGap works with the player, and I have used it before, it is not something we currently test for.

planetdima

User  
0 rated :

Thank you for your fast reply.

The only problem i'm having is that you can't see the cast button if your not in full screen, is there some kinda off API call to make your own cast button, some thing like:

<a href="#" onClick='jwplayer().setFullscreen("true")' data-role="button">Full Screen</a>

Ethan Feldman

JW Player Support Agent  
0 rated :

There isn’t, it is just built into the player.

Ethan Feldman

JW Player Support Agent  
0 rated :

Maybe you can force fullscreen with this?

https://github.com/sindresorhus/screenfull.js/

This question has received the maximum number of answers.