i wanna know how can i play rtmp streams in my c# universal application for windows 10?
link: rtmp://live.video.asandl.com/devices//tv3-300k.stream
with MediaElement i can play http://live.tv.asandl.com:1935/devices/tv3-300k.stream/chunklist_w1286632381.m3u8 (its not working till yesterday , they changed stream method to rtmp) but no chance on playing rtmp.
thanks
You can use FFmpegInterop library for Windows to play rtmp streams in UWP apps.
To create appropriate MediaStreamSource for MediaElement you should use method FFmepgInteropMSS.CreateFFmpegInteropMSSFromUri.
More details here: Using the FFmpegInterop object.
Related
I've checked Background Audio Stop Issue , added
<uap3:Capability Name="backgroundMediaPlayback"/>
in Package.appxmanifest file. For playing m4a file used MediaPlayer class, it works perfectly in background. but for recording audio it is not working in background. It is being muted. Used AudioGraph to recording.
Do i need to handle externally for recording?
Didn't find any solution for this. It seems it is system limitation right now.
We cannot record audio in background on UWP platform.
Remember: when we can’t do something directly by using UWP, we can always create an hybrid UWP/Win32 app, using the UWP bridge.
Best regards
I am making a netradio app on windows phone, my problem is that netradio uses the RTSP audio format and native media player in Windows Phone does not support RTSP.
As a workaround, I have to navigate to a webpage that then handles the audio.
This works fine, and plays the radio, but the problem is that as soon as the app is put in the background the music stops.
Is there a way to keep the webbrowser audio playing?
You could use the BackgroundAudioPlayer within your solution as another project where you could go through a sample here.
And also the sample from Codeplex you can try the Windows Phone Streaming Media.
https://phonesm.codeplex.com/
Hope it helps!
There is no native RTSP support with BackgroundAudioPlayer. You would need to make your own MediaStreamSource implementation to be able to use the stream. At least I didn't find any public 3rd party solutions. Check this http://social.msdn.microsoft.com/Forums/sqlserver/en-US/e052ea29-53cf-4ebb-8558-742b67fc72ad/rtsp-support-in-wp8.
If you are up for the task of writing your own MediaStreamSource implementation, you can use this as starting point and study the RTSP protocol here.
Any one help me how to capture pcm data from microphone in windows metro app using C#.
You need to write a C++ component that uses WASAPI, as far as I'm aware this can't be done in only C#.
There's a great working example here:
http://www.codeproject.com/Articles/525620/Recording-audio-to-WAV-with-WASAPI-in-Windows-Stor
The source code for the article is hard to find so here's a link:
http://www.codeproject.com/KB/audio-video/525620/RecordingWavFilesWithWasapiInWindowsRT.zip
I have previously used this in my C# app to allow people to pause their audio recordings.
I know how to use windows media player in my app but it doesn't work for some files.I have search the web but found nothing that could be understood about using vlc in form.Could sb help me step by step to do this please?Thanks
http://sourceforge.net/projects/libvlcnet/
http://forum.videolan.org/viewtopic.php?f=32&t=58438
NET wrapper for VLC media player. This library allows you to use libvlc from .NET code without dll imports. Simple and easy to use for playing, streaming, transcoding of video streams. Visit the home page for more info.
I'm starting to learn a bit of Silverlight programing to write some stuff for Windows 8, havn't done a lot with it yet or with audio but I am trying to stream a playlist using a MediaElement.
I tried:
OutputMedia.Source=new Uri("http://provisioning.streamtheworld.com/pls/KISWFM.pls",UriKind.Absolute);
OutputMedia.Play();
but I don't hear anything playing so I have to assume it doesn't work :)
Can anyone give me a few pointers please?
Try https://shoutcastmss.codeplex.com/
Shoutcast MediaStreamSource is a MediaStreamSource
implementation of the Shoutcast protocol for Silverlight. This
MediaStreamSource allows both Silverlight 4+ OOB and Windows Phone 7
applications to consume a Shoutcast stream using a MediaElement.
Currently, Mp3 and AAC+ Shoutcast streams are supported on Windows
Phone. However, ONLY Mp3 is supported on Desktop Silverlight.
There is also limited (i.e. somewhat untested) M3u and PLS playlist
support.
Please report any issues playing Shoutcast streams with the following:
* URI to the problem stream
* Description of the problem
* The error returned (or not!) from the Shoutcast MediaStreamSource