Need some help on E1 multicast udp streaming client plugin

  • Hi All,


    I'm quiet new in this scene, and i would require some help and advise.


    I would like to make a E1 plugin in order to look at sap requests on my network then select the desired channel and play it over udp.


    I did look at the E1 plugin bible, movieplayer etc.


    cross compiled an sap client which works on the dm500 as an executable.


    I did rtfm a lot and i would need some advise.


    could you please be kind enough to give me some directives or let me know if something similar ish already exists.


    The main goal in the long term would be to use a dm500 as an iptv client without the dvb-s stuff.


    Best Reagrds,


    Rafik

  • Hi,


    I will try to help if I can. Please give some more detail. For example - the typical url you are trying to stream from. Also - do you want to playback on tv via the dreambox ?


    What worked before ? What is different from movieplayer ?


    Cheers, pcd.

  • Hi pcd,


    thanks for your reply,


    basically i would like to do the following.


    get an m3u file from a server on 192.168.1.20:4242/playlist.m3u


    playlist.m3u looks like this:



    #EXTM3U


    #EXTINF:0,KTO


    http://192.168.1.20:4242/bysid/6902


    #EXTINF:0,Russia Today


    http://192.168.1.20:4242/bysid/6904


    #EXTINF:0,France 24 (en Français)


    http://192.168.1.20:4242/bysid/6905


    #EXTINF:0,France 24 (in English)


    http://192.168.1.20:4242/bysid/6906


    #EXTINF:0,EWTN Europe


    http://192.168.1.20:4242/bysid/6907


    #EXTINF:0,France 24 (in Arabic)


    http://192.168.1.20:4242/bysid/6910


    #EXTINF:0,CCTV F


    http://192.168.1.20:4242/bysid/6913


    #EXTINF:0,CCTV NEWS


    http://192.168.1.20:4242/bysid/6914


    #EXTINF:0,TV5MONDE EUROPE


    http://192.168.1.20:4242/bysid/6915


    then display the name of each available channel ie CCTV NEWS


    then select a channel and start playing the stream.


    Therefore i'm streaming from a server to the dreambox.


    I'm looking into movieplayer code in order to add this feature but all the vlc stuff makes it a bit messy for my understanding.


    So in movieplayer i have seen that a request is made to vlc in order to list the available files
    ==> requests/browse.xml?dir=/media/DATA/Storage/movies



    what i would like to do instead is /requests/playlist.xml then use the uri and name fields in order to display the channel names then stream


    playlist.xml:


    <node id="1" name="Undefined" ro="rw">
    <node id="2" name="Playlist" ro="ro">
    <leaf id="18" current="current" uri="http://192.168.1.20:4242/bysid/6902" name="KTO" ro="rw" duration="3300000000">
    <title>KTO</title>
    <artist></artist>
    <genre></genre>
    <copyright></copyright>
    <album></album>
    <track></track>
    <description></description>
    <rating></rating>
    <date></date>
    <url></url>
    <language></language>
    <now_playing>HORS SERIE</now_playing>
    <publisher>GlobeCast</publisher>
    <encoded_by></encoded_by>
    <art_url></art_url>
    <track_id></track_id>
    </leaf>


    so what is different from movieplayer is that instead of playing a file on the vlc host i would like to play a stream and be able to select the stream from the m3u file or vlc playlist.xml eighter way.



    Regards,


    Rafik

  • Hi,


    If you can play the streams on pc with vlc - then it may be fairly simple to stream in the ts format to the dreambox and play.


    I may be wrong - but I do not think it is possible to play dvb streams directly with a Enigma1 image.


    Cheers, pcd.

  • Hi pcd,


    the stream is already in ts format, exactly as moviplayer plays from vlc.


    I just need to change the logic on how to play the stream rather than telling vlc what file to play.


    I'll try to add an additional button to movieplayer and write a specific part for it in order to retrieve the available channels over sap or m3u file.


    However i will need to brush up my cpp skills as i have not coded for a while.


    thanks for your advise.


    Could you please let me know how i could debug on the dm500 itself or just
    try to emulate somehow a pc a ppc vm from an image.


    all the best,


    Rafik

  • Hi,


    The eDebug statements will output to a log /tmp/enigma.log - if you run the attached debug script before running your plugin.


    I also attach my youtubeplayerE1 v.6 code as example. It has many items you will not need. Basically it finds the selected youtube video http url . Then gets vlc to stream that as pcip:9090/dboxstream.ts to the dreambox. You may eliminate the vlc part and stream your selected url directly.


    You will see that my plugin code is the total of movieplayer lib and plugin.


    Cheers, pcd.

  • Hi pcd,


    Thanks for your help,


    i can see that you went digging in your files, much appreciated :winking_face:


    I shall give this a go event if it takes long.


    Thank you so much.


    Take care,


    Rafik