I need a hint to progress development of my Music Streaming Plug-in

Discussion in 'General Development (no feature request here!)' started by Claus, January 28, 2014.

  1. Claus

    Claus Portal Member

    Joined:
    July 16, 2006
    Messages:
    22
    Likes Received:
    1
    Ratings:
    +1 / 0
    Home Country:
    Denmark Denmark
    I’m trying to develop a plug-in which can stream music from TDC Play (a Danish ISP).
    So far I’m able to login, search and get a URL to the stream
    – something like: rtmpe://entmedia.fcod.llnwd.net/a4117/e1 …

    Now my questions: Is there any functionality in MediaPortal which can stream/play-back based on the rtmpe link I can get?
    I’ve tried things like:

    g_Player.PlayAudioStream(streamLink);


    or

    PlayListPlayer _playlistPlayer = PlayListPlayer.SingletonPlayer;
    _playlistPlayer.GetPlaylist(PlayListType.PLAYLIST_MUSIC).Clear();
    PlayListItem pi = new PlayListItem();
    pi.Type = PlayListItem.PlayListItemType.AudioStream;
    pi.FileName = streamLink;

    _playlistPlayer.GetPlaylist(PlayListType.PLAYLIST_MUSIC).Add(pi);
    _playlistPlayer.CurrentPlaylistType = PlayListType.PLAYLIST_MUSIC;
    _playlistPlayer.Reset();
    _playlistPlayer.Play(0);


    None of this is working.

    Or do I have to implement my own streaming player?

    Any advice is very welcome. Thanks!


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. azzuro
    • Team MediaPortal

    azzuro Test Group

    Joined:
    May 10, 2007
    Messages:
    8,505
    Likes Received:
    2,554
    Occupation:
    technician HVAC
    Location:
    France - IDF
    Ratings:
    +4,234 / 13
    Home Country:
    France France
    Show System Specs
  4. seco
    • Team MediaPortal

    seco Development Group

    Joined:
    August 7, 2007
    Messages:
    1,579
    Likes Received:
    897
    Gender:
    Male
    Ratings:
    +1,234 / 4
    Home Country:
    Finland Finland
    Show System Specs
    Hi,

    It seems like g_Player.Play does not support rtmpe.

    In Core\MusicPlayer\Bass\Utils.cs there is

    private static bool IsWebStream(string filePath)
    {
    return
    (filePath.StartsWith(@"http://") ||
    filePath.StartsWith(@"https://") ||
    filePath.StartsWith(@"mms://") ||
    filePath.StartsWith(@"rtsp://"));
    }


    which is used by MusicStream.cs which is again created by BASS player engine.
     
  5. deadmonty
    • Premium Supporter

    deadmonty MP Donator

    Joined:
    February 7, 2009
    Messages:
    59
    Likes Received:
    8
    Gender:
    Male
    Occupation:
    IT and Business Process Manager
    Location:
    Red Lodge, Suffolk, England
    Ratings:
    +21 / 4
    Home Country:
    United Kingdom United Kingdom
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!