I need a hint to progress development of my Music Streaming Plug-in (1 Viewer)

Claus

Portal Member
July 16, 2006
22
1
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!
 

seco

Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    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.
     

    Users who are viewing this thread

    Top Bottom