Jump to content

Channel Plugin Hls direct stream


anv

Recommended Posts

Hey,

I'm trying to build a channel plugin with hls streams. The streams are hosted at kaltura and is from a local news station. The news station has a lot of free programs. I have already build the parse to get the m3u8 file. My problem is it is playing fine on pc in webbrowser saying direct stream. The problem is I want it to work on apple tv and ipad. I have the same problem on both devices that says playback error.

I have tried many diffrent versions of returning MediaSourceInfo. like this example

IEnumerable<MediaSourceInfo> items = streams.ConvertAll<MediaSourceInfo>(s => new MediaSourceInfo()
            {
                //Id = url,
                Path = s.video_url,
                Bitrate = s.bitrate,
                //Container = "mpegts",
                Protocol = MediaProtocol.Http,
                SupportsDirectPlay = true
            });

Are there any working example for this? I was hoping for no reencoding from emby to apple tv. So direct play.

I have attached the embyserver log, ffmpeg log and the m3u8 file (0.m3u8) which links to another m3u8 file(index.m3u8). This looks like this:

#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-ALLOW-CACHE:YES
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:2.000,
https://cdn-lt-hls-vod.tv2nord.dk/fhls/p/1956931/sp/195693100/serveFlavor/entryId/1_810ne0fn/v/1/ev/6/flavorId/1_5aap72yl/name/a.mp4/seg-1-v1-a1.ts
#EXTINF:2.000,
https://cdn-lt-hls-vod.tv2nord.dk/fhls/p/1956931/sp/195693100/serveFlavor/entryId/1_810ne0fn/v/1/ev/6/flavorId/1_5aap72yl/name/a.mp4/seg-2-v1-a1.ts
#EXTINF:2.000,
https://cdn-lt-hls-vod.tv2nord.dk/fhls/p/1956931/sp/195693100/serveFlavor/entryId/1_810ne0fn/v/1/ev/6/flavorId/1_5aap72yl/name/a.mp4/seg-3-v1-a1.ts
#EXTINF:4.000,
https://cdn-lt-hls-vod.tv2nord.dk/fhls/p/1956931/sp/195693100/serveFlavor/entryId/1_810ne0fn/v/1/ev/6/flavorId/1_5aap72yl/name/a.mp4/seg-4-v1-a1.ts
#EXTINF:10.000,
https://cdn-lt-hls-vod.tv2nord.dk/fhls/p/1956931/sp/195693100/serveFlavor/entryId/1_810ne0fn/v/1/ev/6/flavorId/1_5aap72yl/name/a.mp4/seg-5-v1-a1.ts
#EXTINF:10.000,
https://cdn-lt-hls-vod.tv2nord.dk/fhls/p/1956931/sp/195693100/serveFlavor/entryId/1_810ne0fn/v/1/ev/6/flavorId/1_5aap72yl/name/a.mp4/seg-6-v1-a1.ts
#EXTINF:10.000,
https://cdn-lt-hls-vod.tv2nord.dk/fhls/p/1956931/sp/195693100/serveFlavor/entryId/1_810ne0fn/v/1/ev/6/flavorId/1_5aap72yl/name/a.mp4/seg-7-v1-a1.ts
#EXTINF:10.000,
https://cdn-lt-hls-vod.tv2nord.dk/fhls/p/1956931/sp/195693100/serveFlavor/entryId/1_810ne0fn/v/1/ev/6/flavorId/1_5aap72yl/name/a.mp4/seg-8-v1-a1.ts
#EXTINF:10.000,
https://cdn-lt-hls-vod.tv2nord.dk/fhls/p/1956931/sp/195693100/serveFlavor/entryId/1_810ne0fn/v/1/ev/6/flavorId/1_5aap72yl/name/a.mp4/seg-9-v1-a1.ts
#EXTINF:10.000,

Any help on this would be very appreciated. Any discord channels or anywhere else to get help ?

 

ffmpeg-transcode-8b993c57-00bd-4c00-aef2-ef3dfcc7818e_1.txt 0.m3u8 index.m3u8

Edited by anv
Link to comment
Share on other sites

Quote

 I was hoping for no reencoding from emby to apple tv. So direct play.

This will not happen. All internet content will pass through your emby server, which means the source HLS will be re-packaged by Emby Server. It may not necessarily need to transcode, but it's still going to pass through your Emby Server and won't be direct.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...