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
Developer
wmatt
Posts: 125
Registered: ‎10-02-2011
My Device: Playbook
Accepted Solution

Launch FullScreen Video on PlayBook

Is there a way to launch a video fullscreen on the PlayBook? Right now I'm opening a video that is set at 1024x600, but the effect isn't as good as the normal fullscreen mode.

BlackBerry Development Advisor
anzor_b
Posts: 165
Registered: ‎09-24-2012
My Device: Passport

Re: Launch FullScreen Video on PlayBook

Hello Wmatt,

 

The spec for FullScreen HTML5 Video is still in its infancy, and currently there is no way to programmatically trigger video in Full Screen (same behavior as Chrome/Safari), unless you have the user interact with an element, by setting up a onClick handler on the video or using a button.

 

Example:

<video id="vid" autoplay="true">
        <source src="big_buck_bunny.mp4"></source>
</video>
<button onclick="fullScreen()">Toggle Full Screen</button> <script> function fullScreen(){ var video = document.getElementsByTagName('video')[0]; video.webkitEnterFullScreen(); } </script>