http-live-streaming

How to allow CORS request from Javascript in Adobe Media Server

江枫思渺然 提交于 2020-01-24 15:33:07
问题 I have a html page, calling HLS from javascript. Getting CORS error, of header "allow-control-allow-origin". I am using Adobe Media Server 4.5. How can i allow CORS request from javascript? 回答1: Adobe Media Server use Apache HTTP Server. To enable CORS you need to add following line to Apache HTTP Server configuration file: Header set Access-Control-Allow-Origin "your_page_origin" You need to replace "your_page_origin" with origin of the page that will make requests, or with "*" to allow

How to allow CORS request from Javascript in Adobe Media Server

微笑、不失礼 提交于 2020-01-24 15:31:07
问题 I have a html page, calling HLS from javascript. Getting CORS error, of header "allow-control-allow-origin". I am using Adobe Media Server 4.5. How can i allow CORS request from javascript? 回答1: Adobe Media Server use Apache HTTP Server. To enable CORS you need to add following line to Apache HTTP Server configuration file: Header set Access-Control-Allow-Origin "your_page_origin" You need to replace "your_page_origin" with origin of the page that will make requests, or with "*" to allow

FFMpeg Copy Live Stream (Limit to 60s file)

隐身守侯 提交于 2020-01-21 12:07:14
问题 I currently have a working way to get a live stream and start downloading it locally while it is still live. ffmpeg -i source_hls.m3u8 -c copy output.mkv -y The problem is I do not actually want to save the entire thing, I just periodically run another command on the output.mkv command to create a clip of part of the live stream. I was wondering if it was possible to limit the output.mkv file to be only 60s long so once the stream goes over 1 minute it will just cut off the old video and be

Alternate audio tracks with HTTP Live Streaming

半世苍凉 提交于 2020-01-14 17:14:46
问题 I'm generating a list of available audio tracks when an HLS stream is ready to play. I can access the available audio tracks just fine, but I'm having difficulty extracting the correct 'Title' for each track. I'm using Apple's test stream which has two audio tracks. I extract the tracks with this... availableAudioTrackList = [[NSMutableArray alloc] init]; AVMediaSelectionGroup *audioTracks = [player.currentItem.asset mediaSelectionGroupForMediaCharacteristic:AVMediaCharacteristicAudible]; for

Alternate audio tracks with HTTP Live Streaming

雨燕双飞 提交于 2020-01-14 17:11:09
问题 I'm generating a list of available audio tracks when an HLS stream is ready to play. I can access the available audio tracks just fine, but I'm having difficulty extracting the correct 'Title' for each track. I'm using Apple's test stream which has two audio tracks. I extract the tracks with this... availableAudioTrackList = [[NSMutableArray alloc] init]; AVMediaSelectionGroup *audioTracks = [player.currentItem.asset mediaSelectionGroupForMediaCharacteristic:AVMediaCharacteristicAudible]; for

Can RTSP (Real Time Streaming Protocol) be used to send live video stream from iPhone to a media server?

雨燕双飞 提交于 2020-01-14 02:36:06
问题 I am new to iOS and multimedia development and I am working on an application which will capture video from iPhone's camera and send the live stream to a media server. In this link a person asked a question on stackoverflow saying that his application was rejected by Apple as he didn't use Apple HLS (HTTP Live Streaming) method in his application for receiving the live stream. But my case is different as I am not receiving a live stream in the iPhone. I have to send the live video to a media

MediaPlayer Framework on GingerBread and Apple's HTTP Live Streaming Support

只愿长相守 提交于 2020-01-11 20:22:33
问题 According to the release notes, StageFright replaces the OpenCore framework in the GingerBread release. It seems that there have been numerous discussion that says: Apple's HTTP Live streaming is supported by default since Android 2.3. Even the Wikipedia mentions this. However, when I try to run the test stream provided by Apple using the MediaPlayerDemo_Video.java bundled with API Demos I get the following exceptions: setDataSource('http://devimages.apple.com/iphone/samples/bipbop/gear1/

MediaPlayer Framework on GingerBread and Apple's HTTP Live Streaming Support

时光怂恿深爱的人放手 提交于 2020-01-11 20:21:32
问题 According to the release notes, StageFright replaces the OpenCore framework in the GingerBread release. It seems that there have been numerous discussion that says: Apple's HTTP Live streaming is supported by default since Android 2.3. Even the Wikipedia mentions this. However, when I try to run the test stream provided by Apple using the MediaPlayerDemo_Video.java bundled with API Demos I get the following exceptions: setDataSource('http://devimages.apple.com/iphone/samples/bipbop/gear1/

Parse and Play a .pls file in Android

自作多情 提交于 2020-01-11 01:47:27
问题 can anybody help me how to parse and play this .pls file in android [playlist] NumberOfEntries=1 File1=http://stream.radiosai.net:8002/ 回答1: A quick search resulted in this very basic PlsParser from the NPR app that, by the looks of it, will simply parse the .pls file and return all embedded URLs in a list of strings. You'll probably want to take a look at that as a starting point. After that, you should be able to feed the URL to a MediaPlayer object, although I'm not completely sure about

How do I use javascript to automatically switch to a backup live stream if primary fails in JWPlayer?

余生颓废 提交于 2020-01-06 18:36:31
问题 I am attempting to write a javascript function that will enable an instance of JW Player to automatically switch from a primary live HLS stream to a backup live HLS stream in the event of an error (ex: primary encoder goes down). What I have so far: <div id="myElement">Loading the player...</div> var playerInstance = jwplayer("myElement"); playerInstance.setup({ file: "http://server/primary/playlist.m3u8", width: 640, height: 360, title: 'Basic Video Embed', description: 'work damn you', });