http-live-streaming

Unable to play live stream on chromecast from android sender app

拈花ヽ惹草 提交于 2019-12-12 21:15:39
问题 I am using CastCompanionLibrary-android in my app and following CastVideos-android to play live streams on chromecast. Now the streaming of video works fine on my local player but when it comes to cast that video, it wont play. Rather it just show me my registered receiver app name and on sender app the VideoCastControllerActivity opens with only a loader which wont end. I have registered both my receiver app (Styled Media Receiver) and the device on Google chrome cast console. Also, I tried

AVPlayerLayer Position in UIView Layer

感情迁移 提交于 2019-12-12 13:10:03
问题 I am writing an application using Swift to view surveillance cameras via HLS. I have the basic device list working and I am able to segue to the Live view and display the stream however, I need to move the AVPlayerLayer and I am having trouble figuring this out. Here is my current code: let player = AVPlayer(URL: url!) let playerLayer = AVPlayerLayer(player: player) let view = UIView(frame: CGRectMake(0, 0, screenSize.width, screenSize.height)) self.view.layer.borderWidth = 1 self.view.layer

Android MediaPlayer: getDuration() returns 0 after prepare()

时间秒杀一切 提交于 2019-12-12 10:22:55
问题 I'm using MediaPlayer on Honeycomb and cannot get the duration of any HLS (http live streaming) video in the function onPrepared(). If getDuration() is called after prepare() , it returns 0: public void onPrepared(MediaPlayer mp) { // getduration returns 0 mediaPlayer.start(); Log.d(TAG, "duration: " + mediaPlayer.getDuration()); } However, the videos starts playing. If getDuration() is called in onVideoSizeChanged() it returns the correct value, public void onVideoSizeChanged(MediaPlayer mp,

figure out the file size of a m3u8 url referenced video

淺唱寂寞╮ 提交于 2019-12-12 06:38:26
问题 If a m3u8 url references to a streming, there is no video size, however , If the m3u8 url references to a video, any way to figure out the video file size ? I don' t want adding up all the http content-length header of each video segment because it is a bit tedious. I provide this m3u8 url as an example usage. 回答1: The duration of a particular video stream within a M3U8 manifest file is not mandatory, but if a given video stream will typically have this information in the header of its own

Changing the HLS Video Source of a html5 video element for i-Devices

↘锁芯ラ 提交于 2019-12-12 03:19:47
问题 I'm trying to dynamically change the video source using javascript. I have a webpage with a <video> element in it that shall play a HLS stream. This works, but I'm unable to change the video dynamically from script. I'm really stuck on this. I could maybe workaround it by using an iframe, but that introduces other problems. Has someone a hint on how to change the HLS-Stream using a video tag on an i-device without having to close the entire page and open another one? I know that the mobile i

FFMPEG - RTMP to HLS no audio output

折月煮酒 提交于 2019-12-12 02:56:24
问题 I am currently developing a dynamic HLS segmenter for our livecam application. Therefor I catch the external RTMP stream and convert it into segments with ffmpeg. The following command works: ffmpeg -i rtmp://"$serverip"/"$application"/mp4:"$stream_name".f4v -c:v libx264 -profile:v baseline -level 5.1 \ -c:a aac -strict experimental -flags +global_header -f mpegts - | ffmpeg -i - -c copy -map 0 -f segment \ -segment_list /tmp/hls/"$id"/"$stream_name".m3u8 -segment_format libmp3lame -segment

purpose of m3u8 file in HTTP live streaming?

醉酒当歌 提交于 2019-12-12 02:27:42
问题 is m3u8 file a single file maintained in server for live streaming? is MPMoviePlayerController enough for live streaming to show a TV channel? what are the other possibilities? I have verified the Apple Document 回答1: The m3u8 file is the playlist for Apple HTTP live (or VoD) streaming. It contains URLs to the .ts files which normally contain 10 seconds of audio/video each. You can put the .m3u8 URL into the iPhone's browser and it will play the live stream. Here's the sample contents of a

Error loading HLS playlist in Cast Receiver

 ̄綄美尐妖づ 提交于 2019-12-12 00:17:45
问题 I am using the example custom receiver from this sample GitHub project and running into an error while loading an m3u8 master playlist. I am not able to tell what the problem is based on the error passed into onMediaError after making my load request: code: "session_error" description: "LOAD_FAILED" details: null I have created a gist of the full log output from my receiver, just replacing my domain with "mycompany.com" since the content is protected. 回答1: I looked at your log and it looks

Exoplayer Video Quality options for an mp4 video

不问归期 提交于 2019-12-11 16:48:07
问题 I used Exoplayer to play an HLS video track and following code works fine to fetch the different possible video qualities and to show them as options for the user to select from multiple resolutions. for (int i = 0; i < player.getTrackCount(0); i++) { MediaFormat format = player.getTrackFormat(0, i); if (MimeTypes.isVideo(format.mimeType)) { if (format.adaptive) { menu.add(1, (i + 1), (i + 1), "Auto"); } else { menu.add(1, (i + 1), (i + 1), format.width + "p"); } } } Now i use the same code

iOS: Playing offline HLS with AES-128 encryption

我是研究僧i 提交于 2019-12-11 15:10:51
问题 With out FairPlay i am planning to download Streaming URL Content and key. For this i have used Apple sample code HLSCatalog and in that i have integrated below mechanism to get the decrypt key. https://developer.apple.com/documentation/avfoundation/media_assets_playback_and_editing/using_avfoundation_to_play_and_persist_http_live_streams Playing Offline HLS with AES-128 encryption iOS Here i am successfully able to download the key. Once key download is complete then it is calling the below