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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Highlighted
New Contributor
Posts: 2
Registered: ‎01-11-2013
My Device: Dev AlphaA
My Carrier: n/a
Accepted Solution

HTML5 Video doesn't play inline on Dev Alpha after updating to 10.9.9.339

Dev Alpha used to play HTML5 videos inline (similar to PlayBook), which allowed some cool design if you were careful.

After updating to 10.9.9.339 the videos no longer play inline (the device tries to play them fullscreen and displays video controls even though this wasn't specified as per HTML5 spec), and the page layout breaks.

 

I wasn't able to find a way to force videos to play inline as before, does anyone know how to do this on a BB10 device?

 

Here's a simple example of HTML:

 <video poster="photos/Poster.jpg" width="320" height="180" autoplay loop>
      <source src="videos/Video.mp4" type="video/mp4">

<!-- Fallback content -->
   <img width="320" height="180" src="photos/Poster.jpg" />
</video>

 

Appreciate your help!

 

Retired
Posts: 203
Registered: ‎12-18-2012
My Device: Z10, Q10, Q5, Z30, Z3
My Carrier: Bell

Re: HTML5 Video doesn't play inline on Dev Alpha after updating to 10.9.9.339

Check out this thread:

 

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/HTML5-Video-issue/m-p/2085959/hi...

Bryan Higgins
BlackBerry WebWorks
@bryanhiggins
New Contributor
Posts: 2
Registered: ‎01-11-2013
My Device: Dev AlphaA
My Carrier: n/a

Re: HTML5 Video doesn't play inline on Dev Alpha after updating to 10.9.9.339

Thank you Bryan,

The new behaviour is different (autoplay now also causes fullscreen), but the thread you've referenced did suggest a solution, that allows to play the video inline once.

 <video poster="photos/Poster.jpg" width="320" height="180" autoplay onplay="this.currentTime = 1;">
      <source src="videos/Video.mp4" type="video/mp4">
      <!-- Fallback content -->
   <img width="320" height="180" src="photos/Poster.jpg" />
</video>

I couldn't find an elegant way to support looping ("loop" attribute causes fullscreen on subsequent playback, even with the currentTime changed).

Hope there will be a standard way to do this.