Stream video to TV [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I would like to stream videos from my computer to a television, just like WMP does it and I'd prefer to use libvlc if thats possible, as I'm using it anyway in my application. I did a lot of search, but I can hardly find anything and I don't know where to start.
Thanks for any help on that.
PS: I want the video to start on the tv right away, like when you use Windows Media Player to stream, not like a media server or something, where I have to choose the media at the tv.

You can try to use DLNA or UPnP:
http://sourceforge.net/projects/andrea-upnp/files/ Andrea UPnP Suite
UPnP API: http://msdn.microsoft.com/en-us/library/aa382303.aspx
UPnP provide direct TV control from PC such as:send media file to TV, play, pause, stop and others.

Related

Capturing a single application's audio with Win32 [duplicate]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
The community reviewed whether to reopen this question 6 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
Ok, my question is this:
How can I programmatically capture audio from a specific application and then send it to a specific audio device in Windows 7?
I know for a fact this can be done, since SoundLeech captures audio from individual programs, and theoretically once you have the sound you can do what you want with it (including play it to any sound output device).
I'm a C++ programmer but I know very little about Windows programming. I need some pointers to capturing sound from individual programs. I work with audio recording very frequently and I would be willing to put in a large amount of work to develop a way to better handle sound in Windows given how difficult to use it currently is.
So how can I capture audio streams directly from applications without first routing them through Virtual Audio Cables or the like?
You cannot do it using standard user mode APIs. You need to either hook APIs or create virtual devices to accept application streams/sessions.
Intercepting and postprocessing all audio streams on Windows
Recording Audio Output from a Specific Program on Windows
Is it possible to caputre the rendering audio session from another process?
Capture audio of a single application on Windows 7

UWP - Cards - Network game over local Wifi / Bluetooh, which Api use? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have developped a Windows 10 cards game (UWP application) and I want to add some features like that two people can play one against the other over Wifi or Bluetooth and I don't know what API to use to get a Socket or WCF Service and to discover other peer(s) which have the same application over the network ?
What is the best way to do that ?
This is a very broad question and there is no definitive "best way" to do it as each has their pros and cons, but here are a few links that may help you get started:
Bluetooth comms sample
https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/BluetoothRfcommChat
UDP Multi-cast based game sample
https://msdn.microsoft.com/en-us/library/windows/apps/mt188201.aspx
More on Bluetooth in UWP apps
https://channel9.msdn.com/Events/Build/2015/3-739

displaying images and playing sound in C# [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am learning C# and I want to create a countdown timer application that displays the time in a digital format on an image of a stopwatch and gives verbal time updates at certain times.
How do I go about displaying images to the screen and playing sound? I have used pygame in python to achieve this so basically I am looking for suggestions for something similar in C#.
I hope this makes sense! Thanks.
The best technology to use for that would probably be Windows Presentation Foundation (WPF).
Here's an example of an application made in WPF similar to what you want to do:
http://www.codeproject.com/Articles/20048/Immerse-Yourself-in-WPF-A-quot-World-Clocks-quot-A

How to measure sound frequency using c# or XNA? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
How to measure sound frequency using c# or XNA?? Have any library do it? I want to record sound and identify the frequency of this sound.
What do you mean by the frequency? Most sounds, such as voice, music etc. consist of an entire spectrum of frequencies. So what you are essentially looking for is a spectrum analyzer. Such a spectrum can be calculated using the Fast Fourier Transform (FFT). Once you have done that, you can look for the dominant frequency in the spectrum, if there is one.
You might want to check out NAudio and related libraries such as the WPF Sound Visualizer to see how this could be done in C#. There is also a CodeProject article that uses XNA to capture microphone input, and then uses NAudio for further processing. While the example in that article is aimed at Windows Phone, I suppose it should also work in a desktop application with minor modifications.

How do I programmatically extract the audio from a YouTube video? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm trying to create a C# application which allows me to extract just the audio from YouTube videos. I've come across sites that already do that, but I'm not sure how they actually work. What would be the best way to do this programmatically?
Thanks for any advice
Writing an application for this might be overkill. Existing tools already do a pretty good job, and it's hard to beat their simplicity:
wget http://www.youtube.com/get_video.php?video_id=... |
ffmpeg -i - audio.mp3
All done!
If your application needs to do something special with the audio afterwards, it would make sense to write an app for that part. But for just getting the audio out, shelling out to ffmpeg will be a lot easier.

Categories