http-live-streaming

VideoView triggers OnPreparedListener too early for HLS

此生再无相见时 提交于 2019-12-09 15:27:21
问题 I want to show user some ProgressDialog while he waits for VideoView to start play HLS. I try to use OnPreparedListener for this, but he triggers to early (after player downloaded m3u8 file, not when video started). VideoView player = (VideoView) findViewById(R.id.player); String httpLiveUrl = "http://example.com/playlist.m3u8"; player.setVideoURI(Uri.parse(httpLiveUrl)); player.setMediaController(new MediaController(this)); player.requestFocus(); player.setOnPreparedListener(new

How to show HLS embedded captions on Exoplayer

时光怂恿深爱的人放手 提交于 2019-12-09 14:03:46
问题 how do I enable and also select different subtitles that are embedded in a Vimeo video in HLS format using Exoplayer, ExoMedia or another player? In iOS this same video already presents the option of subtitles natively but in Android I cannot find means to implement it. 回答1: This works well! TrackGroupArray trackGroups = mappedTrackInfo.getTrackGroups(rendererIndex); TrackSelectionArray currentTrackGroups = player.getCurrentTrackSelections(); TrackSelection currentTrackSelection =

AVAssetDownloadDelegate methods for HLS caching not getting called

一曲冷凌霜 提交于 2019-12-09 12:04:45
问题 I have followed the tutorial given here for HLS caching, but the control never reaches to any of the delegates ( of AVAssetDownloadDelegate ). Am I missing anything? Here is code I wrote - (void)setupAssetDownloader { NSURL *assetURL = [NSURL URLWithString:@"STREAMING_HOST/video/hls/3729170.m3u8"]; AVURLAsset *hlsAsset = [AVURLAsset assetWithURL:assetURL]; urlSessionConfiguration = [NSURLSessionConfiguration backgroundSessionConfigurationWithIdentifier:@"assetDowloadConfigIdentifier"];

Live streaming through mediaplayer in android

余生长醉 提交于 2019-12-09 06:56:56
问题 Can any body help how to stream a live url in android mediaplayer...i tried such a long but same result....plz help if any body did before 回答1: Basically, you need to do the following if you are using the Android MediaPlayer class: MediaPlayer mediaPlayer = new MediaPlayer(); mediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { public boolean onError(MediaPlayer mp, int what, int extra) { mp.reset(); return false; } }); mediaPlayer.setOnPreparedListener(new MediaPlayer

how to get metadata of a streaming online radio

ぃ、小莉子 提交于 2019-12-09 04:27:23
问题 I am developing an app in Android 2.2 . I need get metadata of a streaming online radio, for example shoutcast. I use class IcyStreamMeta: public class IcyStreamMeta<Message> { protected URL streamUrl; private Map<String, String> metadata; private boolean isError; public IcyStreamMeta(URL streamUrl) { setStreamUrl(streamUrl); isError = false; } /** * Get artist using stream's title * * @return String * @throws IOException */ public String getArtist() throws IOException { Map<String, String>

How to parse m3u file with AVPlayer

余生颓废 提交于 2019-12-08 16:01:04
问题 I want to get track info from m3u file headers not from id3Tags. In AVPlayer's timedMetaData properties it is only id3Tag parsing is provided. How can I get title, artist, url etc from following m3u file with AVPlayer #EXTM3U #EXT-X-ALLOW-CACHE:NO #EXT-X-TARGETDURATION:11 #EXT-X-MEDIA-SEQUENCE:0 #EXTINF:10,title="Dark Horse",artist="Katy Perry / Juicy J",url="song_spot=\"M\" MediaBaseId=\"1971116\" itunesTrackId=\"0\" amgTrackId=\"-1\" amgArtistId=\"0\" TAID=\"35141\" TPID=\"23894643\"

Update .m3u8 playlist file for HTTP Live streaming?

佐手、 提交于 2019-12-08 12:35:04
问题 I am converting MPEG-2 transportable format from incoming movie for live streaming which is not playable, then validate the .m3u8 file by using mediastreamvalidator, it says "WARNING: stream discontinuity detected without EXT-X-DISCONTINUITY tag". The conversion happen using FFMPEG, please help me what i am missing? Sri 回答1: Possibly this refers to PTS and PCR discontinuity. When a different streams are generated using fresh context - the PTS and PCR values might be completely off the sync.

Video not playing but audio plays fine on Live Streaming in android

喜你入骨 提交于 2019-12-08 12:26:43
问题 I have a VideoView which is used to play live stream. I am not able to find where the problem occurs. In the beginning, I used RTMP to play the live stream using Vitamio which resulted in playing the audio leaving the screen blank. I checked out with the RTMP link, it works fine with a website. I surfed a lot about this, but I did not find any solution. So now, I switched to HTTP to play the live stream which also results in the same problem (i.e audio playing fine but video is blank). I am

Concatenate multiple HLS master playlists

安稳与你 提交于 2019-12-08 12:11:35
问题 The DASH Manifest provides the notion of “Periods” to concatenate multiple clips - each with its own track information - in a single manifest. Is there a similar functionality which allows to concatenate multiple master playlist files in a kind of “master master”-playlist file? 回答1: Short answer: No, not on a Master Playlist level. I guess the closest thing to Periods of MPEG-DASH in HLS are Discontinuity Sequences. You would have to concatenate the variant playlists and add an EXT-X

iOS 4 background HTTP Live Stream

我与影子孤独终老i 提交于 2019-12-08 08:28:31
问题 I'd like to play an audio HTTP Live Stream in background. But how do I do that? I tried to add the key (an Array) "UIBackgroundModes" with value "audio" to the info.plist. Now I try to play audio with the MPMoviePlayerController. But as soon as the app goes into background, the audio Playback stops! I don't know of any other API to play a HTTP Live Stream on the iPhone. So is there an other or am I doing something wrong? I searched all over the apple documentation but couldn't find anything