Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Contributor
Posts: 4
Registered: ‎06-18-2013
My Device: z10
My Carrier: Du
Accepted Solution

Opening External Video Player

We're writing an app where we have to open an external video player (as flowplayer or JWplayer).

 

The problem we have is that the first time we open the page (that has a <VIDEO> tag in it), by default the standard (native) player takes control.

Pressing back from the player the html page with the external player is properly shown and for any further action (play/pause/..) the native player does not run anymore and the external one works perfectly.

 

Is there any way to avoid the native player to start automatically when the page is loaded first time?

 

thanks for any help

Angelo

Retired
Posts: 127
Registered: ‎02-27-2012
My Device: Bold
My Carrier: Rogers

Re: Opening External Video Player

Hi @enon,

Other web experts from BlackBerry (or otherwise) can correct me here as appropriate:

I think you can add webkit-plays-inline to the video tag and it will not go full screen automatically; that should allow you to avoid the full screen web player UI. Did you already try this?

Cheers,
Rashid

Application Development Consultant | Developer Relations

BlackBerry
@surashid




Retired
Posts: 165
Registered: ‎09-24-2012
My Device: Passport
My Carrier: Bell

Re: Opening External Video Player

Hi enon,

 

This functionality and how to avoid it is documented here: http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Prevent-HTML5-video-from-going-f...

 

I know you've tried webkit-plays-inline but it's actually webkit-playsinline. See above URL for more info.

 

Regards,

Anzor

Developer
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: Opening External Video Player

Just a suggestion

 

In the onclick event use a preventDefault then feed it to your player of choice

 

 




Click the like button if you find my posts useful!
New Contributor
Posts: 8
Registered: ‎07-05-2013
My Device: BB10
My Carrier: Tim

Re: Opening External Video Player

Hi all,

I try with this code:

<video width="768" webkit-playsinline="webkit-playsinline" controls>
<source src="http://content.bitsontherun.com/videos/wDqjiZXZ-m0JsjUy0.mp4" type="video/mp4">
</video>

 

but when i click play button run automatically native player. Is there another solution?
Retired
Posts: 165
Registered: ‎09-24-2012
My Device: Passport
My Carrier: Bell

Re: Opening External Video Player

Have you tried the syntax as suggested by the article? 

New Contributor
Posts: 4
Registered: ‎06-18-2013
My Device: z10
My Carrier: Du

Re: Opening External Video Player

Sure we did, and the video is opened asbefore

Retired
Posts: 165
Registered: ‎09-24-2012
My Device: Passport
My Carrier: Bell

Re: Opening External Video Player

Just tested your code and the video plays inline. I am running 10.1 on my device.

 

What's your exact OS version + device?

New Contributor
Posts: 4
Registered: ‎06-18-2013
My Device: z10
My Carrier: Du

Re: Opening External Video Player

Blackberry Z-10, model STL100-1
Sw: 10.1.0.273
Retired
Posts: 165
Registered: ‎09-24-2012
My Device: Passport
My Carrier: Bell

Re: Opening External Video Player

Thanks, what version of the SDK are you using?