01-15-2013 09:44 AM
How to play a rtsp stream or open a url with browser launcher on BlackBerry devcie/ mobile ?
01-15-2013 11:51 PM
01-16-2013 08:45 AM
Can I get any sampe full code/ application to launch a browser to open a url etc.
Iam going thru the last reply of your too.
01-17-2013 02:27 AM
Hi SumiGhosh,
Please check my index.html and config.xml andcorrect it to launch my url.
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>
</head>
<body>
<p>Hello World!</p>
</body>
</html>
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>Hello World</name>
<description>This is HelloWorld.</description>
<feature id="blackberry.invoke" />
<feature id="blackberry.invoke.BrowserArguments" />
<feature id="blackberry.identity" />
var args = new blackberry.invoke.BrowserArguments('www.yahoo.com');
blackberry.invoke.invoke(blackberry.invoke.APP_BRO
<content src="index.html"/>
</widget>
01-17-2013 07:05 AM
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>
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>Hello World</name>
<description>This is HelloWorld.</description>
<feature id="blackberry.invoke" />
<feature id="blackberry.invoke.BrowserArguments" />
<feature id="blackberry.identity" />
<access uri="http://www.yahoo.com/" subdomains="true" />
<access uri="*" subdomains="true" />
<content src="index.html"/>
</widget>
Just check this and let me know the result.....
01-18-2013 01:27 AM
I think we are very close to the output. When I make the said changes and check on the eemulator.
Iam finding the "Yahoo" text on the screen when I click on the Yahoo nothing is hsappening.
Iam sending you the screnshot of it.
01-18-2013 02:41 AM
Success after clicking on the text yahoo on the emulator screen.Iam able to see or open the www.yahoo.com home page.
Now in the same way Can I open the rtsp stream or play a rtsp stream ?
01-18-2013 05:34 AM
01-18-2013 05:34 AM
01-18-2013 05:47 AM - edited 01-18-2013 05:48 AM
I played to play the video by replacing the url with rstsp link but I got the follwoing error.
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" />
<icon src="icons/Yahoo.png" />
<content src="index.html"/>
</widget>
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>Yahoo</title>
<script>
function toBrowser(){
var args = new blackberry.invoke.BrowserArguments('rtsp://cdn.m.y
blackberry.invoke.invoke(blackberry.invoke.APP_BRO
}
</script>
</head>
<body>
<p onClick="toBrowser()" >Yahoo</p>
</body>
</html>
Error: " An Error has occured to play the media.."
Error is showin in screenshot