http-live-streaming

How to add external WebVTT subtitles into HTTP Live Stream on iOS client

大城市里の小女人 提交于 2019-12-21 17:25:17
问题 We have videos encoded via bitmovin.com and provided as HTTP Live Streams (Fairplay HLS), but subtitles although in WebVTT format are exposed separately as direct URLs for the whole file, not individual segments and are not part of the HLS m3u8 playlist. I am looking for the way how an external .vtt file downloaded separately can still be included in the HLS stream and be available as a subtitle in AVPlayer. I know Apple's recommendation is to include segmented VTT subtitles into the HLS

Why AVPlayer downloading first instead live streaming?

有些话、适合烂在心里 提交于 2019-12-21 09:26:29
问题 First time I am working with AVPlayer and I want to play a mp3 file using HTTP request with live streaming. I use AVPlayer that is working fine to play mp3 files, but the problem is AVPlayer needs to download the mp3 first then play it. I don't know why AVPlayer downloads the file and then play it instead of live playing. My Xcode 8.2.1 and I am using Swift 3. Here is my code snippet. var audioPlayer = AVPlayer() var avplayerItem : AVPlayerItem? override func viewDidLoad() { super.viewDidLoad

Http Live Streaming with the Apache web server

不打扰是莪最后的温柔 提交于 2019-12-21 07:46:08
问题 Is it possible to do HLS with an Apache web server? Would it be enough to "put here the playlist with data chunks"? Is it that simple? Or is there some module, which can be used for that purpose? Thanks a lot for the reply 回答1: Yes, it's sufficient to merely have the m3u8 and segmented ts files available. The benefit of HLS is that it is bog simple HTTP. It's possible that you'll have to setup the mime types in Apache, but it's probably correct by default. 回答2: The VideoLan wiki has a how to

Http Live Streaming with the Apache web server

女生的网名这么多〃 提交于 2019-12-21 07:43:09
问题 Is it possible to do HLS with an Apache web server? Would it be enough to "put here the playlist with data chunks"? Is it that simple? Or is there some module, which can be used for that purpose? Thanks a lot for the reply 回答1: Yes, it's sufficient to merely have the m3u8 and segmented ts files available. The benefit of HLS is that it is bog simple HTTP. It's possible that you'll have to setup the mime types in Apache, but it's probably correct by default. 回答2: The VideoLan wiki has a how to

iOS - How to get all audio tracks from a video file?

て烟熏妆下的殇ゞ 提交于 2019-12-21 05:22:18
问题 My Requirement: I need to get list of all audio tracks from a video then switch to selected audio track. Approach and Problem: I am using two ways because some time first way do not provide result in that case I am using second one and sometimes both do not get result while VLC media player shows video have audio tracks. I looked apple documentation https://developer.apple.com/library/mac/releasenotes/AudioVideo/RN-AVFoundation/index.html#//apple_ref/doc/uid/TP40010717-CH1-DontLinkElementID_1

HTTP live streaming with encryption

蓝咒 提交于 2019-12-21 03:46:10
问题 I am trying to understand how the HTTP Live Streaming protocol that Apple supports on their iOS devices as well as on Safari protects the key that unlocks the content. The way I understand it, the .m3u8 file holds the whole thing together and references the content (in MPEG2 TS container, AES 128 encrypted) and the key to the TS file. Like in this example: #EXTM3U #EXT-X-MEDIA-SEQUENCE:7794 #EXT-X-TARGETDURATION:15 #EXT-X-KEY:METHOD=AES-128,URI="https://priv.example.com/key.php?r=52" #EXTINF

Parsing HLS m3u8 file using regular expressions

雨燕双飞 提交于 2019-12-21 03:12:12
问题 I want to parse HLS master m3u8 file and get the bandwidth, resolution and file name from it. Currently i am using String parsing to search string for some patterns and do the sub string to get value. Example File: #EXTM3U #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=476416,RESOLUTION=416x234 Stream1/index.m3u8 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=763319,RESOLUTION=480x270 Stream2/index.m3u8 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1050224,RESOLUTION=640x360 Stream3/index.m3u8 #EXT-X-STREAM

How to serve HLS streams from S3 in secure way (authorized & authenticated)

家住魔仙堡 提交于 2019-12-20 09:47:17
问题 Problem: I am storing number of HLS streams in S3 with given file structure: Video1 ├──hls3 ├──hlsv3-master.m3u8 ├──media-1 ├──media-2 ├──media-3 ├──media-4 ├──media-5 ├──hls4 ├──hlsv4-master.m3u8 ├──media-1 ├──media-2 ├──media-3 ├──media-4 ├──media-5 In my user API I know which exactly user has access to which video content but I also need to ensure that video links are not sharable and only accessible by users with right permissions. Solutions: 1) Use signed / temp S3 urls for private S3

Live Video Chat for iPhone and HTTP Live Streaming

对着背影说爱祢 提交于 2019-12-20 09:20:05
问题 So generally, I want to make an app which has video chat functionality for iPhone. But after many searches, I am still not able to find any successful results. Is there any public or even for that matter, private API available for doing this on iPhone??? If you have an YES answer, please help me. Basically, what I want is to read the streams of the video on both the devices connected for chatting. Thanks a lot in advance and please help me if you can. p.s - I have already checked iDoubs but

Play m3u8 video in android

穿精又带淫゛_ 提交于 2019-12-20 08:36:10
问题 I want to live streaming the video and it is in m3u8 format. So i tried the below code public class StreamingPlayer extends Activity implements OnBufferingUpdateListener, OnCompletionListener, OnPreparedListener, OnVideoSizeChangedListener, SurfaceHolder.Callback{ private static final String TAG = StreamingPlayer.class.getSimpleName(); private int mVideoWidth; private int mVideoHeight; private MediaPlayer mMediaPlayer; private SurfaceView mPreview; private SurfaceHolder holder; private String