I have a video file and I want to play it on one computer (preferably with C#), but stream the audio to an android device and let it play there synchronous to the video content over network.
Do you have any tips how I can achieve that?
Any library or code examples are welcome :)
Related
I have little desktop app which uses UWP API to capture data from webcam (MediaCapture). On my computer it works fine -- I can capture video and audio. When I run the same program on the other computer it crashes -- as I found out I had to disable audio recording:
var media_settings = new MediaCaptureInitializationSettings();
// audio+video by default
media_settings.StreamingCaptureMode = Windows.Media.Capture.StreamingCaptureMode.Video;
await mediaCapture.InitializeAsync(media_settings);
Is there a way to find out in advance if given webcam supports audio recording? By "in advance" I mean the other way than trying, catching exception and in second take disabling audio :-).
You can find out if the given webcam supports audio recording by enumerating the audio devices before you initialize the MediaCaptureInitializationSettings object. After finishing enumerating the audio device, you can find whether there is a audio device from the webcam or not.
You can follow the Enumerate devices topic or see the DeviceEnumerationAndPairing sample directly to find the AudioCapture device, then you should be able to judge if there is a audio device from the webcam.
I am making a game in which I need to stream SOME of the audio to other players. Right now I am using OnAudioFIlterRead() on the AudioListener to get ALL audio as a buffer, and I have managed to stream this using Photon Voice.
However, I only want to stream certain audio sources (about 18) which make up the music part of my music game. There will also be voice chat (which is streamed separately) and maybe other audio sources that I do not want to stream.
I could assign these audio clips to a mixer track, but I have not found a way to get audio from a mixer track as a buffer? Does anyone have a solution?
Thanks!
I use directshow .net to record video from webcam and save it to file, but how can I stream video via TCP/IP to another computer? I don't mind if I can't use directshow .net to do that. I want somehow stream video from webcam to another computer. Any tips or advices?
Have a look at the .net vlc based wrapper -
http://sourceforge.net/projects/libvlcnet/
I am looking to integrate a RTMP player into an application I am creating to play a local live RTMP feed.
Could anyone recommend any good players? I've been looking at OSMF Strobe Media Playback but have not pulled the trigger yet.
You can find a C# RTMP implementation here.
It is tested to work on Windows, iOS and Android. You do need BASS to output audio. Video is not supported but the base RTMP client code (NetStream) exposes an event which gives you the video data as they arrive from the server.
I think that this is a rather complex question, though I am not very familiar with the video world.
I have a video on my computer, I'd like to stream it through my webcamera, so that user's speaking to me on skype will see this video. I'd like to do this in c#.
Is this possible? Can I connect to the web camera port in a custom manner? If so how?
Thank you
If you want to stream a video from your computer to another, your webcam should not be involved unless you move it from the top of the monitor and you put it against the screen, then you start the webcam and your friend will see what you are watching.
What you seem to ask is more like: "How can I stream a video to another computer?" meaning that you would like to send some stream of data as if it was coming from your webcam, still I do not think you should hoock into the webcam at all because for what you would like to do it's not even required you have a webcam.