HTTP Live Streaming

RSS for tag

Send audio and video over HTTP from an ordinary web server for playback on Mac, iOS, and tvOS devices using HTTP Live Streaming (HLS).

Posts under HTTP Live Streaming tag

200 Posts

Post

Replies

Boosts

Views

Activity

iOS 16 - Exception Thrown for processContentKeyResponse
Issue: I am supporting an iOS application that streams Fairplay DRM protected content. On iOS 16 devices, I am seeing intermittent exceptions thrown when trying to process the CKC returned by the license server. The thrown exception is as follows: -[AVContentKeyRequest processContentKeyResponse:] AVContentKeySession's keySystem is not same as that of keyResponse This issue does not occur on older devices (we support iOS 13, 14, 15) I am unable to find documentation about this error so any insight is appreciated: High-Level Code Overview Use ContentKeyRequest to request an application certificate Use returned Cert to call makeStreamingContentKeyRequestData Use returned data to request FairPlay license Use returned CKC to generate AVContentKeyResponse (i.e. AVContentKeyResponse(fairPlayStreamingKeyResponseData:_)) Call processContentKeyResponse(_) App crash/exception thrown when callling processContentKeyResponse I am seeing other issues related to DRM and iOS 16 but these are specific to downloaded and offline content which do not match my use case.
3
0
3.0k
Jul ’23
iOS 16 Webview Set Cookie Or Response Error
Hello, I am developing a firewall against http attacks at Layer7 layer. And no system (linux/windows/android/bsd/ios version < 16) works flawlessly, except for ios 16 version. İos 16 device screen record (error): veed . io/view/ab86584b-c054-4b70-8c73-6ae9782fabad) Old ios version test (no error): I am using a golang http service in addition to nginx in the opened url. And when I try to access this golang code directly (ios16) I get 503 error from a device. And all this http service does is to set a cookie on the client after getting the useragent and ip information. Code: What new feature in iOS 16 prevents my service from running? and how can i fix this. Note: In iOS 16, the situation is the same in all browsers, not just safari, I tried it on chrome. However, there is no problem when I try it on 15 and lower versions, which is a lower version. Thanks for your help in advance.
0
2
1.2k
Jul ’23
replay broken on ios 16 safari with application/x-mpegURL (HLS)
Hi, Replay doesn't work on HLS videos (.m3u8) on ios 16 safari when you get to the end of a video. It works on .mp4s, .movs, etc. I have written a github issue on the videojs repo here: https://github.com/videojs/video.js/issues/8345 But i'm starting to think its the new native ios 16 player that is causing issues and not the library itself.
0
0
1k
Jul ’23
Downloading HLS Livestream for Offline Usage in SwiftUI
I am developing an iOS app using SwiftUI, and I want to provide the functionality to download an HLS (HTTP Live Streaming) livestream for offline usage. However, I'm facing difficulties finding specific examples or tutorials on how to achieve this in SwiftUI. Could anyone provide me with some guidance or point me to resources that demonstrate how to download HLS livestreams for offline playback using SwiftUI? I would appreciate any code snippets, libraries, or step-by-step explanations that can help me implement this feature successfully. Thank you in advance for your assistance!
1
1
872
Jul ’23
iOS 15 - HLS parallel download issue
Hi, We are using AVPlayer for FPL HLS stream, after migrating to iOS 15 (currently Beta 3), we have observed a strange behavior during segments download; The player downloads last video segment of VOD HLS stream The player downloads all audio segments Playback starts playing from the end (last segment) Needs to restart playback to start downloading all video segments. Note that we do not have this behavior with older versions of iOS (14 and before). m3u8 file Thank you,
3
0
2.6k
Jun ’23
-16832/CoreMediaErrorDomain Warning: restarting from end of live playlist
Hello Guys,Recently, I'm getting this kind of issue on the HLS live streaming content,The error detail is like belowerror -16832/CoreMediaErrorDomain Warning: restarting 12.494080s from end of live playlist; target duration 9s - stall danger for https://C4--147-21-8-0-24-8395.dfwlive-v1-c4p1-sponsored.dfw.vcdn.att-idns.net/Content/HLS.abre/Live/channel(CMTHD-8395.dfw.1080)/uc9zjusg758wyw3zmumhqyck92mpguti-ks7qcjbcm2aaaaaa-20191125T201851-197474271-114.vttAnyone know what this is? It seems make the picture frozen, or degrade the streaming quality. Sometimes end up restarting the playback.Thanks &amp; regards.
2
2
2.2k
Jun ’23
Live Streaming
Hello, I have an IP Camera that is able to do RTSP streaming. This stream would go to my server, where it will be forwarded in RTSP format to an iPhone device. I would like to know if Apple allows RTSP incoming streaming (both audio and video); are there any specific guidelines for this? NOTE : - i will use Xcode version 14.3.1 swift version 5.8 Thanks,
0
0
511
Jun ’23
I can't play m3u8 containing video with libx265 code.
I have used ffmpeg to transform a video into multiple chunks, the ffmpeg command works fine and I can play the video. I have created an index.m3u8 that contains 4 qualities, each of those qualities contains the chunks of the video, I can play each chunk, but I can't play anything when using the index.m3u8. here is my index #EXTM3U #EXT-X-VERSION:3 #EXT-X-STREAM-INF:BANDWIDTH=5000000,RESOLUTION=1920x1080 http://cdn... #EXT-X-STREAM-INF:BANDWIDTH=2800000,RESOLUTION=1280x720 http://cdn... #EXT-X-STREAM-INF:BANDWIDTH=1400000,RESOLUTION=842x480 http://cdn... #EXT-X-STREAM-INF:BANDWIDTH=800000,RESOLUTION=640x360 http://cdn... here is my quality file #EXTM3U #EXT-X-PLAYLIST-TYPE:VOD #EXT-X-TARGETDURATION:8.341667 #EXT-X-VERSION:3 #EXT-X-MEDIA-SEQUENCE:24 #EXTINF:8.341667, http://cdn.... #EXTINF:8.341667, http://cdn.... #EXTINF:8.341667, http://cdn.... #EXTINF:6.873533, http://cdn.... #EXT-X-ENDLIST
1
0
1k
Jun ’23
Error 16833 and 19152
We have created a hls playback framework and lot of our client's are complaining about this error {"code": -19152, "domain": "CoreMediaErrorDomain", "localizedDescription": "The operation couldn’t be completed. (CoreMediaErrorDomain error -19152 - The operation couldn’t be completed. (CoreMediaErrorDomain error -19152.))", "localizedFailureReason": "", "localizedRecoverySuggestion": ""} We are unable to reproduce this issue on our end but we have data reflecting the same error happening at good rate. Any help/hint is welcome. Thanks
1
0
2k
Jun ’23
Video (HLS) quality on website does not switch on iOS 16.5
When streaming HLS files in the iPhone/iPad browser only on iOS 16.5, the bit rate does not switch. The lowest quality bitrate is always selected regardless of the communication environment. This does not occur on iOS16.4 and iOS16.6(beta) in the same communication environment and on the same device, and the bitrate switches according to network conditions. Has anyone else experienced a similar event? Also, does anyone know how to remedy this issue?
0
0
776
Jun ’23
FairPlay license auto-renewal (on SPC request)
Hi, is it possible to force/ensure an automatic license renewal in a Fairplay SPC response? I can find that feature in other DRM systems like Widevine (using specific parameters in the response) Searching in "FairPlay Streaming Server SDK 4.4.4" I can only find parameters related to lease/rental TLLs, but not an explicit renewal request. does this feature exists on FairPlay? Any information will be appreciated. Have a great day!
0
0
966
Jun ’23
SCTE-35 markers events on Safari
Hello,When streaming and playing HLS streams on Safari using &lt;video&gt; tag, is there way to be notified at application level (javascript) of the presence of SCTE-35 data ranges in the stream (playlist)?When using the &lt;video&gt; tag on Safari, it is the responsibility of the the native video element to download and parse the playlists, thus there is no way for web application to know about the presence of such tags/markers in the playlists.Does the native video element trigger some events (like cue events for example) to signal the presence of these SCTE-35 data ranges?I tried to listen for cue events but unsuccessfully.
1
0
1.6k
Jun ’23
Visualize AVPlayer track while playing a streamed m3u8 file
I am simply trying to visualize m3u8 files from my Amazon S3 server while they are playing on my AVPlayer. The basic context of my AVPlayer is that I first create AVURLAsset and attach the cookies required to access it and then subsequently create the AVPlayerItem. I then setup the AVPlayer, play it, and then setup an observer so that I can handle some logic when the audio file is done playing. I just want to be able to get the power data of the streamed file in real time or close to real time. I looked into audioTapProcessor but it does not appear to work with streamed files. I then looked into AVAudioEngine but that also does not work well with streams. Is there any solution to this?
0
0
936
May ’23
iOS safari transform to mono audio playback when microphone captured via getUserMedia
Hi, i have this problem in web app context running in safari 14.0 on Apple Iphone X device. It seems that when i capture the user's microphone via: var opts = { //audio: true, audio: true, video: true }; navigator.mediaDevices.getUserMedia(opts) This causes all audio playback within the page to be played as mono e.g. i have a file that should only be heard through the left headphone and it is heard through both headphones. Setting audio to false above means that the audio files play normally. Seems like some sort of bug where capturing the microphone seems to affect the output audio context. Any advice on what i can do to be able to get microphone input and stereo output simultaneously?
1
0
1.6k
May ’23
Channel to check HLS software licese
I want to use playback in the case of Radio (FM/DAB) reception using HLS for a commercial product that our company is developing. So I have been checking the software license for HLS for this purpose, but I couldn't find the right person in charge or someone who knows exactly. Our company only knows channels for MFi, but he recommended looking for channels for HLS contracts in this developer forum. Of course, I saw a specific Apple developer's comment through the thread below, but I would like to confirm if this answer is still valid. https://developer.apple.com/forums/thread/109953 (I already emailed to "Licensing and Trademarks", but I didn't get response)
0
0
656
May ’23
Issue playing HLS (m3u8) live stream
Has anyone else had issues live streaming HLS on XCode 14.3? I am using an IOS 16.2 simulator as it seems the bugs with streaming on the 16.4 simulators still haven't been resolved. I have been able to play on-demand videos fine, although when I try and play a live stream, I just get a black screen with a play button with a cross through it.
1
1
1.4k
May ’23
HLS discontinuity tag, playback issues with CVBR HEVC
Hello, I am trying do a playback test with content stitched together in a HLS manifest using the #EXT-X-DISCONTINUITY tag. Im testing on the AppleTV 4k with the VLC player and a hlsjs player with Safari on my MacOS (https://players.akamai.com/players/hlsjs) I get playback issues when my player hits the first discontinuity section in both players. And im not sure how to further debug the issue. The VLC player just exits, the hlsjs player stops playback. I don't get any errors in the javascript console. The hlsjs player does display stats beside the player. The only hint I get is segment length is 5s up until it stops, then it says No segment length found. I've created a stack overflow post with more details here: https://stackoverflow.com/questions/76285834/hls-discontinuity-manifest-playback-issues-hevc-fragmented-mp4s I was able to get the same test working with h264 encodes and mpeg-ts video files. Does anyone have working examples of a discontinuity manifest with HEVC encodes and fragmented mp4s?
2
0
1.5k
May ’23
iOS 16 - Exception Thrown for processContentKeyResponse
Issue: I am supporting an iOS application that streams Fairplay DRM protected content. On iOS 16 devices, I am seeing intermittent exceptions thrown when trying to process the CKC returned by the license server. The thrown exception is as follows: -[AVContentKeyRequest processContentKeyResponse:] AVContentKeySession's keySystem is not same as that of keyResponse This issue does not occur on older devices (we support iOS 13, 14, 15) I am unable to find documentation about this error so any insight is appreciated: High-Level Code Overview Use ContentKeyRequest to request an application certificate Use returned Cert to call makeStreamingContentKeyRequestData Use returned data to request FairPlay license Use returned CKC to generate AVContentKeyResponse (i.e. AVContentKeyResponse(fairPlayStreamingKeyResponseData:_)) Call processContentKeyResponse(_) App crash/exception thrown when callling processContentKeyResponse I am seeing other issues related to DRM and iOS 16 but these are specific to downloaded and offline content which do not match my use case.
Replies
3
Boosts
0
Views
3.0k
Activity
Jul ’23
iOS 16 Webview Set Cookie Or Response Error
Hello, I am developing a firewall against http attacks at Layer7 layer. And no system (linux/windows/android/bsd/ios version < 16) works flawlessly, except for ios 16 version. İos 16 device screen record (error): veed . io/view/ab86584b-c054-4b70-8c73-6ae9782fabad) Old ios version test (no error): I am using a golang http service in addition to nginx in the opened url. And when I try to access this golang code directly (ios16) I get 503 error from a device. And all this http service does is to set a cookie on the client after getting the useragent and ip information. Code: What new feature in iOS 16 prevents my service from running? and how can i fix this. Note: In iOS 16, the situation is the same in all browsers, not just safari, I tried it on chrome. However, there is no problem when I try it on 15 and lower versions, which is a lower version. Thanks for your help in advance.
Replies
0
Boosts
2
Views
1.2k
Activity
Jul ’23
replay broken on ios 16 safari with application/x-mpegURL (HLS)
Hi, Replay doesn't work on HLS videos (.m3u8) on ios 16 safari when you get to the end of a video. It works on .mp4s, .movs, etc. I have written a github issue on the videojs repo here: https://github.com/videojs/video.js/issues/8345 But i'm starting to think its the new native ios 16 player that is causing issues and not the library itself.
Replies
0
Boosts
0
Views
1k
Activity
Jul ’23
Downloading HLS Livestream for Offline Usage in SwiftUI
I am developing an iOS app using SwiftUI, and I want to provide the functionality to download an HLS (HTTP Live Streaming) livestream for offline usage. However, I'm facing difficulties finding specific examples or tutorials on how to achieve this in SwiftUI. Could anyone provide me with some guidance or point me to resources that demonstrate how to download HLS livestreams for offline playback using SwiftUI? I would appreciate any code snippets, libraries, or step-by-step explanations that can help me implement this feature successfully. Thank you in advance for your assistance!
Replies
1
Boosts
1
Views
872
Activity
Jul ’23
iOS 15 - HLS parallel download issue
Hi, We are using AVPlayer for FPL HLS stream, after migrating to iOS 15 (currently Beta 3), we have observed a strange behavior during segments download; The player downloads last video segment of VOD HLS stream The player downloads all audio segments Playback starts playing from the end (last segment) Needs to restart playback to start downloading all video segments. Note that we do not have this behavior with older versions of iOS (14 and before). m3u8 file Thank you,
Replies
3
Boosts
0
Views
2.6k
Activity
Jun ’23
-16832/CoreMediaErrorDomain Warning: restarting from end of live playlist
Hello Guys,Recently, I'm getting this kind of issue on the HLS live streaming content,The error detail is like belowerror -16832/CoreMediaErrorDomain Warning: restarting 12.494080s from end of live playlist; target duration 9s - stall danger for https://C4--147-21-8-0-24-8395.dfwlive-v1-c4p1-sponsored.dfw.vcdn.att-idns.net/Content/HLS.abre/Live/channel(CMTHD-8395.dfw.1080)/uc9zjusg758wyw3zmumhqyck92mpguti-ks7qcjbcm2aaaaaa-20191125T201851-197474271-114.vttAnyone know what this is? It seems make the picture frozen, or degrade the streaming quality. Sometimes end up restarting the playback.Thanks &amp; regards.
Replies
2
Boosts
2
Views
2.2k
Activity
Jun ’23
Live Streaming
Hello, I have an IP Camera that is able to do RTSP streaming. This stream would go to my server, where it will be forwarded in RTSP format to an iPhone device. I would like to know if Apple allows RTSP incoming streaming (both audio and video); are there any specific guidelines for this? NOTE : - i will use Xcode version 14.3.1 swift version 5.8 Thanks,
Replies
0
Boosts
0
Views
511
Activity
Jun ’23
I can't play m3u8 containing video with libx265 code.
I have used ffmpeg to transform a video into multiple chunks, the ffmpeg command works fine and I can play the video. I have created an index.m3u8 that contains 4 qualities, each of those qualities contains the chunks of the video, I can play each chunk, but I can't play anything when using the index.m3u8. here is my index #EXTM3U #EXT-X-VERSION:3 #EXT-X-STREAM-INF:BANDWIDTH=5000000,RESOLUTION=1920x1080 http://cdn... #EXT-X-STREAM-INF:BANDWIDTH=2800000,RESOLUTION=1280x720 http://cdn... #EXT-X-STREAM-INF:BANDWIDTH=1400000,RESOLUTION=842x480 http://cdn... #EXT-X-STREAM-INF:BANDWIDTH=800000,RESOLUTION=640x360 http://cdn... here is my quality file #EXTM3U #EXT-X-PLAYLIST-TYPE:VOD #EXT-X-TARGETDURATION:8.341667 #EXT-X-VERSION:3 #EXT-X-MEDIA-SEQUENCE:24 #EXTINF:8.341667, http://cdn.... #EXTINF:8.341667, http://cdn.... #EXTINF:8.341667, http://cdn.... #EXTINF:6.873533, http://cdn.... #EXT-X-ENDLIST
Replies
1
Boosts
0
Views
1k
Activity
Jun ’23
Error 16833 and 19152
We have created a hls playback framework and lot of our client's are complaining about this error {"code": -19152, "domain": "CoreMediaErrorDomain", "localizedDescription": "The operation couldn’t be completed. (CoreMediaErrorDomain error -19152 - The operation couldn’t be completed. (CoreMediaErrorDomain error -19152.))", "localizedFailureReason": "", "localizedRecoverySuggestion": ""} We are unable to reproduce this issue on our end but we have data reflecting the same error happening at good rate. Any help/hint is welcome. Thanks
Replies
1
Boosts
0
Views
2k
Activity
Jun ’23
Video (HLS) quality on website does not switch on iOS 16.5
When streaming HLS files in the iPhone/iPad browser only on iOS 16.5, the bit rate does not switch. The lowest quality bitrate is always selected regardless of the communication environment. This does not occur on iOS16.4 and iOS16.6(beta) in the same communication environment and on the same device, and the bitrate switches according to network conditions. Has anyone else experienced a similar event? Also, does anyone know how to remedy this issue?
Replies
0
Boosts
0
Views
776
Activity
Jun ’23
FairPlay license auto-renewal (on SPC request)
Hi, is it possible to force/ensure an automatic license renewal in a Fairplay SPC response? I can find that feature in other DRM systems like Widevine (using specific parameters in the response) Searching in "FairPlay Streaming Server SDK 4.4.4" I can only find parameters related to lease/rental TLLs, but not an explicit renewal request. does this feature exists on FairPlay? Any information will be appreciated. Have a great day!
Replies
0
Boosts
0
Views
966
Activity
Jun ’23
SCTE-35 markers events on Safari
Hello,When streaming and playing HLS streams on Safari using &lt;video&gt; tag, is there way to be notified at application level (javascript) of the presence of SCTE-35 data ranges in the stream (playlist)?When using the &lt;video&gt; tag on Safari, it is the responsibility of the the native video element to download and parse the playlists, thus there is no way for web application to know about the presence of such tags/markers in the playlists.Does the native video element trigger some events (like cue events for example) to signal the presence of these SCTE-35 data ranges?I tried to listen for cue events but unsuccessfully.
Replies
1
Boosts
0
Views
1.6k
Activity
Jun ’23
Visualize AVPlayer track while playing a streamed m3u8 file
I am simply trying to visualize m3u8 files from my Amazon S3 server while they are playing on my AVPlayer. The basic context of my AVPlayer is that I first create AVURLAsset and attach the cookies required to access it and then subsequently create the AVPlayerItem. I then setup the AVPlayer, play it, and then setup an observer so that I can handle some logic when the audio file is done playing. I just want to be able to get the power data of the streamed file in real time or close to real time. I looked into audioTapProcessor but it does not appear to work with streamed files. I then looked into AVAudioEngine but that also does not work well with streams. Is there any solution to this?
Replies
0
Boosts
0
Views
936
Activity
May ’23
iOS safari transform to mono audio playback when microphone captured via getUserMedia
Hi, i have this problem in web app context running in safari 14.0 on Apple Iphone X device. It seems that when i capture the user's microphone via: var opts = { //audio: true, audio: true, video: true }; navigator.mediaDevices.getUserMedia(opts) This causes all audio playback within the page to be played as mono e.g. i have a file that should only be heard through the left headphone and it is heard through both headphones. Setting audio to false above means that the audio files play normally. Seems like some sort of bug where capturing the microphone seems to affect the output audio context. Any advice on what i can do to be able to get microphone input and stereo output simultaneously?
Replies
1
Boosts
0
Views
1.6k
Activity
May ’23
Channel to check HLS software licese
I want to use playback in the case of Radio (FM/DAB) reception using HLS for a commercial product that our company is developing. So I have been checking the software license for HLS for this purpose, but I couldn't find the right person in charge or someone who knows exactly. Our company only knows channels for MFi, but he recommended looking for channels for HLS contracts in this developer forum. Of course, I saw a specific Apple developer's comment through the thread below, but I would like to confirm if this answer is still valid. https://developer.apple.com/forums/thread/109953 (I already emailed to "Licensing and Trademarks", but I didn't get response)
Replies
0
Boosts
0
Views
656
Activity
May ’23
Issue playing HLS (m3u8) live stream
Has anyone else had issues live streaming HLS on XCode 14.3? I am using an IOS 16.2 simulator as it seems the bugs with streaming on the 16.4 simulators still haven't been resolved. I have been able to play on-demand videos fine, although when I try and play a live stream, I just get a black screen with a play button with a cross through it.
Replies
1
Boosts
1
Views
1.4k
Activity
May ’23
HLS discontinuity tag, playback issues with CVBR HEVC
Hello, I am trying do a playback test with content stitched together in a HLS manifest using the #EXT-X-DISCONTINUITY tag. Im testing on the AppleTV 4k with the VLC player and a hlsjs player with Safari on my MacOS (https://players.akamai.com/players/hlsjs) I get playback issues when my player hits the first discontinuity section in both players. And im not sure how to further debug the issue. The VLC player just exits, the hlsjs player stops playback. I don't get any errors in the javascript console. The hlsjs player does display stats beside the player. The only hint I get is segment length is 5s up until it stops, then it says No segment length found. I've created a stack overflow post with more details here: https://stackoverflow.com/questions/76285834/hls-discontinuity-manifest-playback-issues-hevc-fragmented-mp4s I was able to get the same test working with h264 encodes and mpeg-ts video files. Does anyone have working examples of a discontinuity manifest with HEVC encodes and fragmented mp4s?
Replies
2
Boosts
0
Views
1.5k
Activity
May ’23