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

Reply
Developer
Sanjit_Patra
Posts: 148
Registered: ‎01-08-2013
My Device: 9860
My Carrier: Airtel
Accepted Solution

Iframe in cascades

Hi All.

    I want to open video by iframe using webview. But it shows only black screen with sound. Please help me.

 

Thanks & Regards

Sanjit

 

Please use plain text.
BlackBerry Development Advisor
Kareem_ELSayed
Posts: 81
Registered: ‎09-09-2013
My Device: BlackBerry Z10
My Carrier: Etisalat UAE

Re: Iframe in cascades

Hello,

 

Try this code, It plays youtube video in the webview - inline without going into fullscreen mode:

 

 WebView {
                id: webView
                html: "<iframe allowfullscreen=\"false\" id=\"ytplayer\" type=\"text/html\" width=\"710\" height=\"710\" src=\"http://www.youtube.com/embed/tJD7DIs-xKM?autoplay=0&fs=0&controls=1&playsinline=1&html5=1\" webkit-playsinline=\"true\" frameborder=\"0\"/>"
                settings.zoomToFitEnabled: true
                settings.activeTextEnabled: true
            }

 

Thanks,

Kareem.

 

Kareem ELSayed | Application Development Consultant | Developer Relations | BlackBerry | Twitter:@kemobyte
Please use plain text.