http-live-streaming

Is it possible to cache HLS segments with AVPlayer?

好久不见. 提交于 2019-12-20 08:28:58
问题 Root Problem​ Our video buffers a lot when seeking in iOS. It buffers quite a bit more than our web player which saves copies of the already watched segments in temp storage. ​Desired Solution​ Caching the video segments locally on the device's disk. We're fine with caching a single quality and always replaying it. ​Blocker​ We can't find a way to perform caching within AVFoundation/AVPlayer. What We've Tried 2 ways to intercept networking requests with AVPlayer. Conforming to

Add custom headers to videojs player source

主宰稳场 提交于 2019-12-20 05:58:26
问题 I have a backend api (using express) that handles a streaming video m3u8 file. http://localhost:3000/api/stream.m3u8 This endpoint will only work with a proper user token . router router.get('/api/stream.m3u8', controller.stream); controller exports.stream = function(req, res) { var token = ''; // ? not sure how to get access to a sent up token if (!token) res.status(401).json('Not authorized'); // if token is valid, proceed }; On the front end, I am using videojs. var player = videojs('my

HLS stream not working on Apple devices

不问归期 提交于 2019-12-19 09:19:55
问题 I have a live RTSP stream that i have managed to transcode to HLS via VLC. Now it works perfect on Android and on desktop browsers (via flash). But not on Apple (i can test it on iPad and desktop Safari on my virtual machine). I can see the player but when i press the 'play' button all i see is a black rectangle inside the player. On desktop Safari there is also a text 'Loading...' near the play/pause button and nothing else happens. My HTML: <video id="player" controls style="width:100%;

How to use Media Segmenter for split video?

自古美人都是妖i 提交于 2019-12-19 04:15:18
问题 I have read many documents still very confused about HTTP Live Streaming . But i am still trying for solution.. and i have convert my video in .ts format with ffmpeg . Now i know that i have to split my video and have to create playlist with the use of mediasegmenter . But i don't know where is mediasegmenter and how to use it to split video. I am very new to this so sorry for this silly Question.. Any help would be appreciated..!! Thanks in advance..!! 回答1: Here: 35703_streamingtools_beta

Create MPEG-DASH Initialization segment

倖福魔咒の 提交于 2019-12-18 16:16:38
问题 I am looking to convert between HLS and MPEG Dash. I do not access to the original fully concatenated video file, only the individual HLS segments. In doing this transformation to MPEG Dash I need to supply an initialziation segment for the Dash manifest .mpd file. My questions are: What is the structure of a Dash video initialization segment? How can I generate/create one without the need for the original full file? Perhaps a solution would involve getting MP4Box to convert the '.ts' HLS

Adding video codec to Android

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 11:47:37
问题 Can someone please explain the steps I need to take in order to add a new codec to Android? Also, I would like the codec to be installed as part of an application installation (or first launch) and NOT as part of a full Android OS build. The reason I want to do this is that I have an application that needs to show a video of a non supported codec (HLS or TS), but I wouldn't want to build a full blown video player - just integrate with the existing, built-in, player. Thanks, Alik. 回答1: Can

HTTP live streaming server on iPhone

北战南征 提交于 2019-12-18 10:30:16
问题 I am trying to run a HTTP live streaming server on iPhone, which captures the video stream from the camera and feed it to the HTML5 client (which supports HTTP Live Streaming). So far, I've got following working. HTTP Live streaming server on iOS (written in Node.js), which dynamically updates the index file from the list of Transport Stream (video/MP2T) files generated by video capture module. Video capture module, which uses AVCaptureMovieFileOutput to produce a series of 10-second

HTTP live streaming server on iPhone

夙愿已清 提交于 2019-12-18 10:30:07
问题 I am trying to run a HTTP live streaming server on iPhone, which captures the video stream from the camera and feed it to the HTML5 client (which supports HTTP Live Streaming). So far, I've got following working. HTTP Live streaming server on iOS (written in Node.js), which dynamically updates the index file from the list of Transport Stream (video/MP2T) files generated by video capture module. Video capture module, which uses AVCaptureMovieFileOutput to produce a series of 10-second

Http Live Streaming not working on Apache

依然范特西╮ 提交于 2019-12-18 05:29:25
问题 My Http Live Streaming setup: Apache hosts the html, m3u8, and ts files The ts files are copied over from http:devimages.apple.com/iphone/samples/bipbop/gear1/fileSequence*.ts. There is nothing wrong with the video encoding (verified by actually playing these files) m3u8 files (both the multi-bitrate and leaf-level) are copied over from apple's example and are syntactically correct, as follows: #EXTM3U #EXT-X-TARGETDURATION:10 #EXT-X-MEDIA-SEQUENCE:0 #EXTINF:10, no desc fileSequence0.ts ...

HTTP Live Streaming with AVPlayer in iOS 4.0?

不想你离开。 提交于 2019-12-18 02:58:09
问题 Is it possible to use HTTP Live Streaming with AVPlayer on iOS 4.0? This was clearly a documented feature of 4.0. However, if I run Apple's SitchedStreamPlayer sample code on my 3GS running iOS 4.0.1, clicking "Load Movie" does not play the stream, but gives an error: 2011-06-21 13:14:49.428 StitchedStreamPlayer[680:307] The asset's tracks were not loaded due to an error: Cannot Open MPMediaPlayer is able to play the same stream on the same device. However, I need a working solution with