How the videos in NewsReader web application are playing whicf is asample provided. What is the format of the video played in it.
Where can I find the code for playing the video in the WebApplication "NewsRedaer" code.
How the videos in NewsReader web application are playing whicf is asample provided. What is the format of the video played in it.
Where can I find the code for playing the video in the WebApplication "NewsRedaer" code.
Hi,
There are no tricks needed for playing the video. You just need to find out a link for suitable video and open it with mwl.loadURL.
If you want sources for video app, check out http://xpresswebapps.nokia.com. Make a new app, download it and modify to suit your needs.
It seems to use 3GP and for devices that support streaming, rtsp:// is available.
Br,
Ilkka
Can u please help me with the exact code. Actually I have parsed xml.aspx file conatining channel mages and names .Now I need to play the url contained in xml.aspx.
My url wil be like :
rtsp://cdn.m.yuppcdn.net/liveorigin/aajtak1
Hi,
Please note that supported codecs and containers varies in Series 40 devices. Safe bet is to use 3GPP container using H.263 and MPEG-4 SP codecs/profiles.
The actual code you need is:
Br,Code:<a href="#" onclick="mwl.loadURL('<stream_URL>');">My Video</a>
Ilkka
where in the code of the application do we need to put this code ?
I mean in main.js?
.css ?
My code in main.js is as follows
generateHTMLMarkup: function(i, channel){
var str ="";
str += "<div class='ui-category-list-item-title-for-Global-Takeof'\">";
str += "<img class='img-for-Global-Takeof' src=\"" + channel['image'] + "\" />" +
"<a href=\"" + channel['link'] + "\">" + channel['name'] + "</a>" + "</div>";
return str;
},
Please correct the code
generateHTMLMarkup: function(i, channel){
var str ="";
str += "<div class='ui-category-list-item-title-for-Global-Takeof'\">";
str += "<img class='img-for-Global-Takeof' src=\"" + channel['image'] + "\" />" +
"<a href="#" onclick="mwl.loadURL('<stream_URL>');">My Video</a>
"<a href=\"" + channel['link'] + "\">" + channel['name'] + "</a>" + "</div>";
return str;
},
Hi GTO_I as you should have noticed, the css files are meant for just visual theming purposes, so you would not really use them for coding purposes.
Most logical part would be the js-file, though if your logic is small you could embed the code into your html file as well.