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!
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!