Jump to content

Unable to play HLS streams


TheShoe

Recommended Posts

I have an HLS stream that plays fine in Emby Web; however on any iOS device (Phone/Tablet) it hangs - or rather spins but playback never starts.

 

Are HLS streams supported in the iOS mobile apps?

Edited by TheShoe
Link to comment
Share on other sites

Hi there, what do you mean you have an HLS stream? How did you import this into Emby Server?

i have a stream that is served from JRiver media center. it serves a valid HLS stream which works in any web browser - including the Emby web client.

 

from the iOS emby app it just spins. note that in an iOS browser on Iphone it also works. i have also tested on an Ipad, chrome or safari.

 

i added the url to a. STRM file and scanned into my emby library. it correctly downloaded metadata and has no issues with browser based playback via emby.

 

i will next try the emby android app for shield tv

 

wierdly i killed media center and restarted it. emby ios app then started playing it. but only once. i am not inclined however to say it is Jriver media center as this is flawless via the emby web client and any other browser capable

of hls stream support

 

need logs?

Edited by TheShoe
Link to comment
Share on other sites

Here's also the results of the m3u8 request:

 

#EXTM3U

#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:6
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-PLAYLIST-TYPE:EVENT
#EXTINF:6.000000,
/MCWS/v1/File/GetFile.ts?File=757250&Conversion=WebPanel&Quality=Very%20High&Start=0.0&Playback=2&HLS=1&Context=seg0.ts
#EXTINF:6.000000,
/MCWS/v1/File/GetFile.ts?File=757250&Conversion=WebPanel&Quality=Very%20High&Start=0.0&Playback=2&HLS=1&Context=seg1.ts
#EXTINF:6.000000,
/MCWS/v1/File/GetFile.ts?File=757250&Conversion=WebPanel&Quality=Very%20High&Start=0.0&Playback=2&HLS=1&Context=seg2.ts
#EXTINF:6.000000,
/MCWS/v1/File/GetFile.ts?File=757250&Conversion=WebPanel&Quality=Very%20High&Start=0.0&Playback=2&HLS=1&Context=seg3.ts
#EXTINF:6.000000,
/MCWS/v1/File/GetFile.ts?File=757250&Conversion=WebPanel&Quality=Very%20High&Start=0.0&Playback=2&HLS=1&Context=seg4.ts
#EXTINF:6.000000,
/MCWS/v1/File/GetFile.ts?File=757250&Conversion=WebPanel&Quality=Very%20High&Start=0.0&Playback=2&HLS=1&Context=seg5.ts
#EXTINF:6.000000,
/MCWS/v1/File/GetFile.ts?File=757250&Conversion=WebPanel&Quality=Very%20High&Start=0.0&Playback=2&HLS=1&Context=seg6.ts
#EXTINF:6.000000,
/MCWS/v1/File/GetFile.ts?File=757250&Conversion=WebPanel&Quality=Very%20High&Start=0.0&Playback=2&HLS=1&Context=seg7.ts
#EXTINF:6.000000,
/MCWS/v1/File/GetFile.ts?File=757250&Conversion=WebPanel&Quality=Very%20High&Start=0.0&Playback=2&HLS=1&Context=seg8.ts
#EXTINF:6.000000,
/MCWS/v1/File/GetFile.ts?File=757250&Conversion=WebPanel&Quality=Very%20High&Start=0.0&Playback=2&HLS=1&Context=seg9.ts
#EXTINF:6.000000,
/MCWS/v1/File/GetFile.ts?File=757250&Conversion=WebPanel&Quality=Very%20High&Start=0.0&Playback=2&HLS=1&Context=seg10.ts
#EXTINF:6.000000,
/MCWS/v1/File/GetFile.ts?File=757250&Conversion=WebPanel&Quality=Very%20High&Start=0.0&Playback=2&HLS=1&Context=seg11.ts
#EXTINF:6.000000,
/MCWS/v1/File/GetFile.ts?File=757250&Conversion=WebPanel&Quality=Very%20High&Start=0.0&Playback=2&HLS=1&Context=seg12.ts
#EXTINF:6.000000,
/MCWS/v1/File/GetFile.ts?File=757250&Conversion=WebPanel&Quality=Very%20High&Start=0.0&Playback=2&HLS=1&Context=seg13.ts
#EXTINF:6.000000,
/MCWS/v1/File/GetFile.ts?File=757250&Conversion=WebPanel&Quality=Very%20High&Start=0.0&Playback=2&HLS=1&Context=seg14.ts
#EXTINF:6.000000,
/MCWS/v1/File/GetFile.ts?File=757250&Conversion=WebPanel&Quality=Very%20High&Start=0.0&Playback=2&HLS=1&Context=seg15.ts
 
 
I am wondering if the issue is missing domain, which for each ts request should be: "[my htpc server]:[my-port]/" before the "/MCWS...." api call.
 
Perhaps this works in a browser because it's relative to the m3u8 request whereas in the mobile app it needs absolute URI
 
Here's a sippet from the logs:
 

2020-02-19 14:55:33.266 Info HttpServer: HTTP Response 206 to 192.168.1.18. Time: 8ms. http://192.168.1.52:8096/emby/videos/13723/stream.hls?DeviceId=620D5938-859F-4775-8907-A5034D3681D2&MediaSourceId=d51cc50309507e9151a4a984fe961fe6&Static=true&PlaySessionId=6d330b6920bc48df966c28e8e71cd0e3
2020-02-19 14:55:33.280 Info HttpServer: HTTP GET http://192.168.1.52:8096/MCWS/v1/File/GetFile.ts?File=757250&Conversion=WebPanel&Quality=Very%20High&Start=0.0&Playback=2&HLS=1&Context=seg13.ts. UserAgent: mpv 0.30.0-UNKNOWN
2020-02-19 14:55:33.280 Info HttpServer: HTTP Response 404 to 192.168.1.18. Time: 0ms. http://192.168.1.52:8096/MCWS/v1/File/GetFile.ts?File=757250&Conversion=WebPanel&Quality=Very%20High&Start=0.0&Playback=2&HLS=1&Context=seg13.ts
2020-02-19 14:55:33.293 Info HttpServer: HTTP GET http://192.168.1.52:8096/MCWS/v1/File/GetFile.ts?File=757250&Conversion=WebPanel&Quality=Very%20High&Start=0.0&Playback=2&HLS=1&Context=seg14.ts. UserAgent: mpv 0.30.0-UNKNOWN
2020-02-19 14:55:33.293 Info HttpServer: HTTP Response 404 to 192.168.1.18. Time: 0ms. http://192.168.1.52:8096/MCWS/v1/File/GetFile.ts?File=757250&Conversion=WebPanel&Quality=Very%20High&Start=0.0&Playback=2&HLS=1&Context=seg14.ts
2020-02-19 14:55:33.304 Info HttpServer: HTTP GET http://192.168.1.52:8096/MCWS/v1/File/GetFile.ts?File=757250&Conversion=WebPanel&Quality=Very%20High&Start=0.0&Playback=2&HLS=1&Context=seg15.ts. UserAgent: mpv 0.30.0-UNKNOWN
2020-02-19 14:55:33.304 Info HttpServer: HTTP Response 404 to 192.168.1.18. Time: 0ms. http://192.168.1.52:8096/MCWS/v1/File/GetFile.ts?File=757250&Conversion=WebPanel&Quality=Very%20High&Start=0.0&Playback=2&HLS=1&Context=seg15.ts

 

Those requests for the .ts files have the wrong URL.  Should be to my htpc where Media Center is running, not Emby.  That's the reason for the 404 I think.  I am assuming Emby is adding its own server:port when the m3u8 file does not specify?

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