Jump to content


Photo

HLS direct play from channel plugin

channel plugin hls direct play

  • Please log in to reply
3 replies to this topic

#1 apishel OFFLINE  

apishel

    Newbie

  • Members
  • 2 posts
  • Local time: 07:43 PM

Posted 26 May 2015 - 04:04 AM

I'm writing a channel plugin which fetches links to HLS streams from external source.

What is the right way to tell MBS that this an HLS stream when creating ChannelMediaInfo object? My goal is to avoid transcoding HLS streams when playing on devices which support HLS.

I have tried this:

new ChannelMediaInfo{
    Path = "http://example.com/hls_streams/test.m3u8",
    Container = "mpegts",
    AudioCodec = "aac",
    VideoCodec = "h264",
    Protocol = MediaProtocol.Http,
    SupportsDirectPlay = true
}

but the stream is still transcoded when trying to play on Android (which supports HLS).

 

I have written similar channel plugin for the Plex and it plays without transcoding on Android, but in Plex I can specify protocol=hls explicitly from plugin.



#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138086 posts
  • Local time: 02:43 PM

Posted 26 May 2015 - 08:56 AM

not quite yet. we need to change channels to use the newer MediaSourceInfo rather than ChannelMediaInfo but in order to do that we'll have to break every channel temporarily. but if you'd like to help migrate the channels we can possibly do it soon.



#3 hpooni OFFLINE  

hpooni

    Advanced Member

  • Members
  • 40 posts
  • Local time: 02:43 PM

Posted 30 May 2015 - 09:06 AM

not quite yet. we need to change channels to use the newer MediaSourceInfo rather than ChannelMediaInfo but in order to do that we'll have to break every channel temporarily. but if you'd like to help migrate the channels we can possibly do it soon.

Does this mean server changes are still required or does MediaSourceInfo already exists and I simply have to migrate my channel to utilize it?  Do you have any examples if this can already be done?



#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138086 posts
  • Local time: 02:43 PM

Posted 30 May 2015 - 10:39 AM

no just implement the channel as is for now. i will rework them at some later date







Also tagged with one or more of these keywords: channel plugin, hls, direct play

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users