MediaBrowser / Emby.WindowsPhone

Emby for Windows Phone
http://emby.media
GNU General Public License v2.0
55 stars 17 forks source link

Switch to StreamBuilder for playback url generation #171

Closed LukePulverenti closed 10 years ago

LukePulverenti commented 10 years ago

Examples for audio and video:

https://github.com/MediaBrowser/MediaBrowser/blob/master/MediaBrowser.Dlna/PlayTo/PlayToController.cs#L537-L565

Take this class into your code:

https://github.com/MediaBrowser/MediaBrowser/blob/master/MediaBrowser.Dlna/Profiles/WindowsPhoneProfile.cs

You will need two copies of it - one with HLS for live tv, and one for everything else. The profile favors HLS by default, but that's easily removed by commenting out this code:

https://github.com/MediaBrowser/MediaBrowser/blob/master/MediaBrowser.Dlna/Profiles/WindowsPhoneProfile.cs#L21-L30