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
Regular Contributor
hari1
Posts: 60
Registered: ‎12-29-2012
My Device: None right now
My Carrier: BSNL

Opening inbuilt Youtube app or web browser from webworks app

I have some youtube links that I want to add in my html5 webworks BB10 app(jquery theme). I want to know whether directly tapping a hyperlink will open the web browser or Youtube app so that the video could be seen by the user. I am not able to run the simulator on my old PC.

So, can anyone confirm that?

 

Thanks

Please use plain text.
BlackBerry Development Advisor
bryanhiggins
Posts: 187
Registered: ‎12-18-2012
My Device: Z10, Q10, Q5, Z30, Z3
My Carrier: Bell

Re: Opening inbuilt Youtube app or web browser from webworks app

Hi,

 

blackberry.invoke.invoke will open the URI in the browser or other appropriate application. Linking directly to the content will simply load that resource within your application.

 

Thanks,

Bryan

Bryan Higgins
BlackBerry WebWorks
@bryanhiggins
Please use plain text.
Regular Contributor
hari1
Posts: 60
Registered: ‎12-29-2012
My Device: None right now
My Carrier: BSNL

Re: Opening inbuilt Youtube app or web browser from webworks app

Thanks for your reply. Also, is there any possibility of a dedicated Youtube app on BB10?

Please use plain text.
Regular Contributor
hari1
Posts: 60
Registered: ‎12-29-2012
My Device: None right now
My Carrier: BSNL

Re: Opening inbuilt Youtube app or web browser from webworks app

[ Edited ]

Wil this code work properly?

<!----javascript---->
<script type="text/javascript">function openWebLinkInBrowser() {blackberry.invoke.invoke({
target: "sys.browser",
uri: "http://www.google.com"
}, onInvokeSuccess, onInvokeError);
}</script>
<!----html---->
<a href="#" data-role="button" data-inline="true" onclick="openWebLinkInBrowser()">Inline</a>

Please use plain text.