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

Native 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
Developer
Posts: 142
Registered: ‎04-25-2009
My Device: Z30
My Carrier: AT&T

gfycat links not working in WebView

It seems that gfycat link will not work properly in the BB10 webview component, but they do work properly in the regular browser. Gfycat is a site that converts gifs into html5 video for faster viewing and compression. Any gfycat link will merely try to play an html5 video, which in theory should be supported by the Webview component since the webview supports html5 (ex. youtube) since 10.1. 

 

Try this link for example:

http://gfycat.com/ColorlessDependableIrishwaterspaniel#

 

When opened in a WebView, the page displays like so, and the image is still. It seems like some of the web code wasn't interpeted correctly since it is being shown at the top.

gfycat.png

 

Suprisingly, i havn't found anything on the internet about gfycat not working in the BB10 webview. For that reason I am posting here. Perhaps someone knows why it isnt working?

 

Regarding a solution, the temporary one is to append to the following to the end of any gfycat url. This will automatically load the gfycat link as the original gif instead of the converted html5. 

?format=gif

 

Of course, I would love to find a way to load the actual html5 video since this is the point of gfycat. Webview does support html5 but it is not working properly in the BB10 webview component. Perhaps there is a way to extract the html5 video link from the page and send that straight into a mediaplayer invocation?

 

Thanks!

 

Highlighted
BlackBerry Development Advisor
Posts: 15,885
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: gfycat links not working in WebView

I'm seeing the same behaviour you describe in BlackBerry OS 10.2.1.  I also tried it on 10.3, which did work correctly.  The script wasn't shown and the video does play on 10.3.

 

Using the GIF link is likely the best option until 10.3 is available.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.