streaming

Streaming bytes via HTTP PUT with JAX-RS

雨燕双飞 提交于 2020-01-14 10:36:30
问题 I have a workflow that involves doing a HTTP POST from my Java client to my web server. The body of the post has a specification object. I then pass that on from my webserver to Apache ZooKeeper (which runs in its own process on the server) that runs a big hairy calculation. I am struggling with figuring out how to send back the bytes to my webserver in streaming fashion. I need it to stream back because I have a HTTP GET request on my webserver from my Java client that is waiting to stream

How to stream video using C/C++

坚强是说给别人听的谎言 提交于 2020-01-14 05:56:09
问题 I want to stream video to a file/ or memory buffer using VC++ on windows. Can anyone suggest easy to integrate library?(that has one H,one LIB and one DLL). I am exploring the libVLC right now and gonna explore FFMPEG also. dont want to spend time in building these complex software fully myself, would appreciate any help/pointer/ references. My ultimate goal is to stream a video and consume the stream on HTML5 viewer. I tried streaming using VLC media player and streamed to a OGG file, I used

Issue with streaming AVI files

你。 提交于 2020-01-14 05:36:09
问题 I am writing a video streaming server application. I have an AVI file and I have put it on IIS 7 for streaming. I found that client cannot jump to an arbitrary location of the media, if the media is not buffered already. I think some meta-data is missing during recording? After searching, I think, Windows Media Player could not jump to any arbitrary location before buffered locally, since Index block of AVI (needed for seeking) is stored at the end of file. Here is an example, if my recorded

Unable to play YouTube video in VideoView using RTSP streaming

这一生的挚爱 提交于 2020-01-14 03:12:30
问题 I'm writing an app that uses VideoView to play a video from YouTube. Here's my code: VideoView videoView = (VideoView)findViewById(R.id.video_view); videoView.setVideoURI(Uri.parse(filePath)); videoView.setMediaController(new MediaController(this)); videoView.requestFocus(); videoView.start(); The code works with this url: "http://commonsware.com/misc/test2.3gp" But not with this one (from YouTube via the API): "rtsp://v4.cache7.c.youtube.com/CjsLENy73wIaMgl4q

Android: Video-streaming with Mediarecorder over Sockets using ParcelFileDescriptor

对着背影说爱祢 提交于 2020-01-14 02:43:13
问题 I'm struggling with this quiet long and I decided I need help. The basis idea is described here: Link I want to stream the output from the MediaRecorder directly to my Server over Sockets while recording. (In this specific case I want to see if this is possible without using any streaming protocol just via a HTTP-POST.) The error of my current approach is: E/MediaRecorder: start failed: -2147483648 - RuntimeException Before I had an error pointing me to this topic mediarecorder-issue-on

Use libvlc to stream mp3 to network

南楼画角 提交于 2020-01-13 19:24:09
问题 How can I use libvlc to take an MP3 file (or really any audio file) and stream it to the network so I can connect with iTunes or something and listen like internet radio? C API example is preferred, though any language is fine. 回答1: libvlc_vlm_add_broadcast accepts an sout string, so this seems to do the trick: #include <vlc/libvlc.h> #include <unistd.h> #include <stdbool.h> #include <stddef.h> int main(int argc, char **argv) { libvlc_instance_t *vlc; const char *url; const char *sout = "

Android Audio m3u8 Streaming - HOW TO

拥有回忆 提交于 2020-01-13 05:12:06
问题 As the title, how can I stream an m3u8 audio on Android without vitamio? (on Android 2.3+). I've seen that some app can stream my my link http://4metest1-view.4me.it/api/xpublisher/resources/weebopublisher/getContentDescriptor.m3u8?clientId=4metest1&contentId=b55f7d74-cd81-48ce-9390-d9ffd5c49281&channelType=STREAMHTTPIOS&v=4 like VLC or aqua Player, but i cannot setup mMediaPlayer to reproduce it. 回答1: Use a VideoView to play your audio with relaxing music :) myVideoView = (VideoView)this

There is a long delay before an MP4 video will start in flowplayer

笑着哭i 提交于 2020-01-13 04:11:32
问题 Flowplayer at my site is working fine with (.flv) format, but for (.mp4) format it first downloading the whole file and then start streaming. Any solution? Will I have to make some changes in setting of flowplayer or there is even a solution exists for this problem. thanks. 回答1: I had the same problem as you, fortunately found the reason and solution: With the release of the Flash Player 9 Update that supports H.264, we can now play a subset of H.264 movie files. The problem is most of the H

WebAssembly InstantiateStreaming Wrong MIME type

故事扮演 提交于 2020-01-12 07:48:07
问题 I am attempting to get this tutorial (here: https://www.hellorust.com/demos/add/index.html) to work, and it seems that whatever I do, I cannot get the WebAssembly MDN reserved function to properly work. So, I followed the instructions on the link above and got an add.wasm file. As far as I can tell this should be fairly simple and should work. After a little digging I found that the newest WebAssembly module is to instantiate streaming - the documentation for which can be found here: (https:/

WCF Chunking / Streaming

断了今生、忘了曾经 提交于 2020-01-11 15:31:40
问题 I'm using WCF and want to upload a large file from the client to the server. I have investigated and decided to follow the chunking approach outlined at http://msdn.microsoft.com/en-us/library/aa717050.aspx However, this approach (just like streaming) restricts the contract to limited method signitures: [OperationContract(IsOneWay=true)] [ChunkingBehavior(ChunkingAppliesTo.InMessage)] void UploadStream(Stream stream); The sample uses the rather convenient example of uploading a file from a