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
Highlighted
Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel
Accepted Solution

Iam able to open a url or website with browser launcher where as I want to play or open a rtsp stream Url and play the video.

I have opened  a url like this below code

 

 

index.html

 

 

 

 

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,
initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,
user-scalable=no">
<title>Hello World</title>

<script>

function toBrowser(){

var args = new blackberry.invoke.BrowserArguments('www.yahoo.com');
blackberry.invoke.invoke(blackberry.invoke.APP_BROWSER, args);

}

</script>
</head>
<body>
<p onClick="toBrowser()" >Yahoo</p>
</body>
</html>

 

 

 

Please guide where Iam wrng or what changes to be made ?

 

 

 

Trusted Contributor
Posts: 107
Registered: ‎07-26-2012
My Device: Blackberry Z10
My Carrier: airtel

Re: Iam able to open a url or website with browser launcher where as I want to play or open a rtsp stream Url and play the video.

Is your config.xml has access element ?

 

Check here Access Element



Try my HTML5 app CountDown (free)


Click Accept as Solution if this post that have solved your issue(s)!
Like if you found this post useful..
Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: Iam able to open a url or website with browser launcher where as I want to play or open a rtsp stream Url and play the video.

Now my config.xml file is as below and Iam getting the following error as below:

 

 

                                          config.xml

 

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets"
xmlns:rim="http://www.blackberry.com/ns/widgets"
version="1.0" rim:header="WebWorks Sample">
<name>Yahoo</name>
<description>This is HelloWorld.</description>
<feature id="blackberry.invoke" />
<feature id="blackberry.invoke.BrowserArguments" />
<feature id="blackberry.identity" />
<access uri="rtsp://cdn.m.yuppcdn.net/liveorigin/abn1/" subdomains="true" />
<access uri="*" subdomains="true" />
<feature id="blackberry.pim.memo" required="true" version="1.0.0"/>
</access>
<icon src="icons/Yahoo.png" />
<content src="index.html"/>
</widget>

 

 

 

 

screenshotBB2.jpg

Developer
Posts: 435
Registered: ‎09-20-2011
My Device: Z10 LE, Playbook, DevAlpha C, 9900, 9380
My Carrier: Vodafone

Re: Iam able to open a url or website with browser launcher where as I want to play or open a rtsp stream Url and play the video.

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets"
xmlns:rim="http://www.blackberry.com/ns/widgets"
version="1.0" rim:header="WebWorks Sample">
<name>Yahoo</name>
<description>This is HelloWorld.</description>
<feature id="blackberry.invoke" />
<feature id="blackberry.invoke.BrowserArguments" />
<feature id="blackberry.identity" />
<access uri="rtsp://cdn.m.yuppcdn.net/" subdomains="true" />
<access uri="*" subdomains="true" />
<feature id="blackberry.pim.memo" required="true" version="1.0.0"/>
</access>
<icon src="icons/Yahoo.png" />
<content src="index.html"/>
</widget>

 

Copy paste the code...... And check whether it works or not

Developer
Posts: 435
Registered: ‎09-20-2011
My Device: Z10 LE, Playbook, DevAlpha C, 9900, 9380
My Carrier: Vodafone

Re: Iam able to open a url or website with browser launcher where as I want to play or open a rtsp stream Url and play the video.

And the link is working fine in the BB OS 7.0 device.... So above code must work
Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: Iam able to open a url or website with browser launcher where as I want to play or open a rtsp stream Url and play the video.

Hi SumiGhosh do u mean to say that you have tested it on the Bb 7.0 OS device an it is playing fine ?

 

Iam facing installation problem I dont know why when Iam trying to install BB 8520  etc. On which device u tried ?

 

 

Developer
Posts: 435
Registered: ‎09-20-2011
My Device: Z10 LE, Playbook, DevAlpha C, 9900, 9380
My Carrier: Vodafone

Re: Iam able to open a url or website with browser launcher where as I want to play or open a rtsp stream Url and play the video.

[ Edited ]

screencap_1357452741873.pngI have tested on 9900 device...... And i checked only the url in the browser and seems to be playing fine..... And i dont think it will support in simulators.....

Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: Iam able to open a url or website with browser launcher where as I want to play or open a rtsp stream Url and play the video.

Thank you very much

 

 

what do u mean by "And i checked only the url in the browser  ?"

 

 

Did'nt u run my app on the device  by installing in it.

 

Anyway iam trying to install it gain. Installation not happening properly.

 

with thedesktop softwrae Iam importing it  shopws as "pending action" only

Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: Iam able to open a url or website with browser launcher where as I want to play or open a rtsp stream Url and play the video.

Iam able to install but when I cick on the application icon  an error reflects saying"Unable to open the application with secured API"

 

 

 

Please give me solution for this. I want to check the App on the device BB curve 8520.

Developer
Posts: 435
Registered: ‎09-20-2011
My Device: Z10 LE, Playbook, DevAlpha C, 9900, 9380
My Carrier: Vodafone

Re: Iam able to open a url or website with browser launcher where as I want to play or open a rtsp stream Url and play the video.

Did u signed the app before installing