0

how to get url currently playing from playlist

I have two videos in play list. now during first video i want to restrict the fast forward and rewind actions. for second video both actions can take place. for that i have to get URL currently playing. is there any method which fetch the url currently playing from playlist? i did not pass the id. is this any other way to do this?

Thanks.

by
4 Replies
  • QUOTE (DEEPKUMAR @ Mar 15 2011, 01:17 PM) <{POST_SNAPBACK}>
    I have two videos in play list. now during first video i want to restrict the fast forward and rewind actions. for second video both actions can take place. for that i have to get URL currently playing. is there any method which fetch the url currently playing from playlist? i did not pass the id. is this any other way to do this?

    Thanks.

    KONtx.mediaplayer.playlist.currentEntry

    See the mediaplayer docs.
    0
  • QUOTE (Benjamin Toll @ Mar 15 2011, 02:02 PM) <{POST_SNAPBACK}>
    KONtx.mediaplayer.playlist.currentEntry

    See the mediaplayer docs.

    CODEBOX
    WM 00:00:07:249: [T:10664] [KONtx/DreamTV] {Instance-109}
    WM 00:00:07:249: [T:10664] [KONtx/DreamTV] {Instance-109}
    WM 00:00:07:249: [T:10664] [KONtx/DreamTV] {Instance-109}


    this is the output when i print the (KONtx.mediaplayer.playlist.currentEntry) on pause state,
    that will not give me the url. i want the pure url.
    thanks.
    0
  • QUOTE (DEEPKUMAR @ Mar 16 2011, 09:40 AM) <{POST_SNAPBACK}>
    CODE
    WM 00:00:07:249: [T:10664] [KONtx/DreamTV] {Instance-109}
    WM 00:00:07:249: [T:10664] [KONtx/DreamTV] {Instance-109}
    WM 00:00:07:249: [T:10664] [KONtx/DreamTV] {Instance-109}


    this is the output when i print the (KONtx.mediaplayer.playlist.currentEntry) on pause state,
    that will not give me the url. i want the pure url.
    thanks.

    KONtx.mediaplayer.playlist.currentEntry is an object. The logs should have tipped you off (instance means it's an object). Did you try dumping it to see what it contains?

    For instance, here is the url of the currently playing stream:
    CODE
    KONtx.mediaplayer.playlist.currentEntry.streams[0].url


    Please read the docs, and as always the source is authoritative.
    0
  • QUOTE (Benjamin Toll @ Mar 16 2011, 11:23 AM) <{POST_SNAPBACK}>
    KONtx.mediaplayer.playlist.currentEntry is an object. The logs should have tipped you off (instance means it's an object). Did you try dumping it to see what it contains?

    For instance, here is the url of the currently playing stream:
    CODE
    KONtx.mediaplayer.playlist.currentEntry.streams[0].url


    Please read the docs, and as always the source is authoritative.


    oh.. yes thanks. actually i got confused. but now i get url. Thanks again.
    0

Recent Posts

in General - Yahoo! TV Widgets