01-09-2013 07:06 AM
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
01-09-2013 08:52 AM
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
01-09-2013 09:11 AM
Thanks for your reply. Also, is there any possibility of a dedicated Youtube app on BB10?
01-09-2013 09:34 AM - edited 01-10-2013 01:40 AM
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>