×

Discussion Board

Results 1 to 12 of 12

Hybrid View

  1. #1
    Regular Contributor
    Join Date
    Oct 2012
    Posts
    142

    Cool How the videos in NewsReader web application are playing whic is asample provided.

    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.

  2. #2
    Nokia Developer Expert
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: How the videos in NewsReader web application are playing whic is asample provide

    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

  3. #3
    Regular Contributor
    Join Date
    Oct 2012
    Posts
    142

    Re: How the videos in NewsReader web application are playing whic is asample provide

    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

  4. #4
    Nokia Developer Expert
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: How the videos in NewsReader web application are playing whic is asample provide

    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:
    Code:
    <a href="#" onclick="mwl.loadURL('<stream_URL>');">My Video</a>
    Br,
    Ilkka

  5. #5
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,228

    Re: How the videos in NewsReader web application are playing whic is asample provide

    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;

    },

  6. #6
    Super Contributor
    Join Date
    Nov 2010
    Posts
    1,228

    Re: How the videos in NewsReader web application are playing whic is asample provide

    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;

    },

  7. #7
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: How the videos in NewsReader web application are playing whic is asample provide

    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.

Similar Threads

  1. Playing videos using Qt
    By bruiz in forum [Archived] Qt Mobility Project
    Replies: 1
    Last Post: 2011-05-03, 08:42
  2. R their any 3rd party API provided by Nokia for playing AMR or Sound Interjection.
    By amitkumar_j2me in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2005-06-16, 10:50
  3. Replies: 0
    Last Post: 2005-06-16, 10:48
  4. Replies: 0
    Last Post: 2005-06-16, 10:20
  5. Replies: 3
    Last Post: 2005-04-07, 13:55

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×