HLS on iOS

Rand Graham rand.graham at zenith.com
Tue May 7 19:32:26 UTC 2019


Hello,

I have been testing HLS streams using the HLS sink included in gstreaemr 1.14.0

The streams playback on desktop platforms as well as Android.

The streams do not playback in Safari on iOS.

I have noticed the following from:

https://developer.apple.com/documentation/http_live_streaming/example_playlists_for_http_live_streaming/live_playlist_sliding_window_construction

"EXTINF: A record marker that describes the media file identified by the URL that follows it. Each media file URL must be preceded by an EXTINF tag. This tag contains a duration attribute that's an integer or floating-point number in decimal positional notation that specifies the duration of the media segment in seconds. This value must be less than or equal to the target duration."

However, here is a playlist file generated by the hlssink plugin:

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-ALLOW-CACHE:NO
#EXT-X-MEDIA-SEQUENCE:199
#EXT-X-TARGETDURATION:5

#EXTINF:5.363133430480957,
segment00198.ts
#EXTINF:5.3631219863891602,
segment00199.ts
#EXTINF:5.363133430480957,
segment00200.ts
#EXTINF:5.3631219863891602,
segment00201.ts
#EXTINF:5.363133430480957,
segment00202.ts

Every single EXTINF value is greater than the target duration.

Has anyone else observed this behavior?

Is there a plugin option to fix this?


Regards,
Rand

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190507/db5b139d/attachment-0001.html>


More information about the gstreamer-devel mailing list