streaming

AVPlayer item buffer empty

断了今生、忘了曾经 提交于 2019-12-22 08:22:07
问题 I use AVPlayer that plays stream content. I want to know the time when buffer is empty and the time when it is ready to play. But the observers "playbackBufferEmpty" and "playbackLikelyToKeepUp" do not work every time as it needed. They sometimes work but often do not work. I use only iPad simulator iOS 6.1 under OSX 10.7.5. Here is how i set and listen observers: - (void)playAudioStream:(NSURL *)audioStreamURL { if(_audioPlayer && _audioPlayer.currentItem) { [_audioPlayer removeObserver:self

Too small ffmpeg rtsp decoding buffer

☆樱花仙子☆ 提交于 2019-12-22 07:59:10
问题 I'm decoding rtsp on Android with ffmpeg, and I quickly see pixelization when the image updates quickly or with a high resolution: After googling, I found that it might be correlated to the UDP buffer size. I have then recompiled the ffmpeg library with the following parameters inside ffmpeg/libavformat/udp.c #define UDP_TX_BUF_SIZE 327680 #define UDP_MAX_PKT_SIZE 655360 It seems to improve but it still starts to fail at some point. Any idea which buffer I should increase and how? 回答1: For my

How to serve .flv files using PHP?

让人想犯罪 __ 提交于 2019-12-22 05:37:16
问题 I'm building a streaming video site. The idea is that the customers should pay for a membership, login to the system, and be able to view the videos. I'm going with FlowPlayer for showing the actual videos. The problem now is, the videos need to be stored somewhere publically and the url to the .flv files needs to be passed to flowplayer for it to be able to show them. This creates a problem because anyone can do a view source, download the video, and distribute it all across the internet. I

Play Framework Scala: How to Stream Request Body

与世无争的帅哥 提交于 2019-12-22 05:04:37
问题 I'm building a micro-service using Play Framework 2.3.x using Scala (I'm a beginner in both) but I can't figure out a way to stream my request body. Here is the problem: I need an endpoint /transform where I can receive a huge TSV file that I will parse and render in another format: simple transformation. The problem is that every single command in my controller is ran "too late". It waits to receive the full file before starting the code. Example: def transform = Action.async { Future {

Play Framework Scala: How to Stream Request Body

喜夏-厌秋 提交于 2019-12-22 05:04:07
问题 I'm building a micro-service using Play Framework 2.3.x using Scala (I'm a beginner in both) but I can't figure out a way to stream my request body. Here is the problem: I need an endpoint /transform where I can receive a huge TSV file that I will parse and render in another format: simple transformation. The problem is that every single command in my controller is ran "too late". It waits to receive the full file before starting the code. Example: def transform = Action.async { Future {

Is there a better way to save streamed files with MediaPlayer? [closed]

送分小仙女□ 提交于 2019-12-22 04:45:23
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I'm trying to build a mediaplayer app, that allows the user to stream mp3 files from online, and save the file when it's finished downloading. It looks like MediaPlayer doesn't provide any means of doing this, so

How to deserialize multiple objects from a json stream?

佐手、 提交于 2019-12-22 00:28:57
问题 Ok, I have asked questions about something like this before, but this is a different subject, so i feel i should make a new topic about it. I'm sorry if this is something i should not have done... Anyway: I'm currently reading a twitterfeed and trying to convert it to lose (status) objects. The code i have now is as follows but fails: webRequest = (HttpWebRequest)WebRequest.Create(stream_url); webRequest.Credentials = new NetworkCredential(username, password); webRequest.Timeout = -1;

Is there a true cross browser solution for shoutcast streams?

微笑、不失礼 提交于 2019-12-22 00:25:21
问题 Shoutcast stream is giving me a serious headache. I tried: JWplayer Jplayer Html5 Audio None of these are true cross-platform-browser solutions. THey can't even play all shoutcast streams! Is there any other solution to this problem? Maybe I can pass stream through some php library? Any solutions for this? 回答1: Since nobody is answering, I ransacked web today and found soundmanager2 - which at least in my tests works fine both on desktop and mobile browsers. I tested on Android, IOS, on

How do i embed this m3u8 into my webpage?

一曲冷凌霜 提交于 2019-12-21 23:35:36
问题 My title says it all. i have m3u8 file i need to embed tried using this method(below) but it says "video format or mime type is not supported" <div id='player'> <video width=100% height=100% src="http://cdncities.com/deranalive/deranalive/playlist.m3u8" type="application/x-shockwave-flash" controls autoplay> </video> </div> i tried jwplayer wizard, on there it works, but it not free.... i am dont know what to do. anyone know a free player? or solution for that code? thanks. 回答1: Only Safari 6

Live streaming with silverlight 4

倖福魔咒の 提交于 2019-12-21 23:35:06
问题 Greeting, Is there a live streaming server for silverlight 4 from Microsoft like Flash Media Server from Adobe that support live streaming for Flash??? I know that there are many open source live streaming server that support silverlight 4 but I did not find some one good as Flash Media Server which support Flash!!! please tell me if Microsoft has a media server for live streaming or if there is a good open source server for that. I'm working in building web conference system using