Play an M3U or PLS file - c#

I really need to be able to play an M3U or PLS file from C#. I'm trying to play these files because I am creating an Internet radio application and many Internet Radio Stations provide you these type of files to be opened using iTunes, Winamp and so on. So how can I achieve this? I just want to play, pause and resume. Nothing more.
Thanks in advance.
P.S. I also have tried NAudio but it seems it doesn't work.

The stream in the M3U file you link to is ShoutCast, which the NAudio Demo in its current form cannot play. However, someone did recently send me some code showing how to play ShoutCast audio in NAudio. I haven't had a chance to test it myself, but here's a link to the updated NAudioDemo file.

Related

Playing sound file from a live audio feed

I am looking to make a sound visualizer with Unity3D (mainly for the UI and graphics), and as I get ready to export the project, I need to know how to get a live audio feed from whatever is playing on the computer and translate that to the audio samples that my program uses.
Currently, I use preset .mp3 files and apply them to audiosources, and a script updates the samples live and those translate to the bars you see in audio visualizers. I would like to move this up a step, but I don't know how to do that. I've looked into NAudio and CSCore, but I haven't been able to make anything work.
All I need is for NAudio or CSCore to record to a file, and also have me continuously play that file. That seems like it would have problems though, so if I can just get a sound card stream and use that data to pass through to the program, that would be great.
If anyone has any experience, docs, or tips that can help me out, please send them over. Appreciate the help, thank you.

How can I save a webcam-recorded mp4 with audio in Visual C#?

I'm two days into researching this so I thought I'd post here. It looks like video recording software is usually written in C++ but my project requires C#. It's a WPF application and I just need it to save an mp4 locally. I don't need to upload to a server, I don't need to let the user pick a file location, I don't even need it to display the webcam feed as it's recording. All I need it to do is start/stop recording audio and video from a webcam/microphone and save it in a location that's determined by the code. I understand this may be broken down into steps like connecting to a webcam, connecting to a microphone, synchronizing them, encoding a video file, and saving it on the hard drive.
Are there any .NET classes that can help me with this? If not, can anyone recommend some libraries/frameworks/etc. that handle this sort of thing? I appreciate any help regarding how to do this. Thank you.

Playing a video file in server through WPF

I have a video file at my Server and the path to which resembles like "10.151.98.82/Medias/New/Videos/001.dat".
(Actually a video file but the extension is in .dat)
I have already built a WPF application which allows my users to enter the above Server URL and then let them to download it and then play it.
But my guess is that they need not wait till the entire file gets downloaded; just watch the files on the fly.
I have googled on video streaming but could not get a solid material to proceed on with.
[Sorry, if the question is naive or needs modification, i will be happy to do that or move to a relevant forum.]
Any pointers on how to do this is much appreciated.
Edit: This question talks about WCF service and WPF application. But, I dont' use a WCF Service. The video file has to be streamed from the server.
First try to play your file using VLC Player. it also have many advance streaming and Trans-coding Options. you can play, save and trans code simultaneously. Once you are able to Play your file in VLC Player than i would recommend to use VlcDotNet for wpf application. Tutorial for hosting VlcDotNet is available in downloads

Video Streaming using C#

I'm starting a new project to play the video on my LAN, actually if I enter an IP on my browser I got a m3u file with the following info:
http://192.168.1.101:31344
So, if I open that file Im able to see the video using VLC Media Player. However in the school, I proposed to implement my own video player. I know there are some options, like DirectX, Silverlight, etc.. so I'm looking for recommendations on which technology use so any advice is welcome.
I don't have any restriction, the only one is to use C# on VS 2010 Professional.
Thanks,
m0dest0.
Well, I've used Silverlight with an embedded MediaElement and just set the source to the address of the video file. It was simple to use. I wouldn't call it "writing your own video player", but it should do.
There's plenty of examples in the link I gave you.

Getting microphone data (probably for c#)

i know there are many topics like mine, but i would realy love if somebody could explain me the theory behind the code.... what is the format of data you get from microphone?? Do same sounds return the same data from microphone or do you realy have to go through fft process if you want to compare sound samples.... Where can you save microphone data and analize it in live stream?
have a look at the open source .NET Voice Recorder project which uses NAudio. There is an article on Coding4Fun explaining how it works.

Categories