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
Related
I am looking to port Silverlight app to UWP Windows 10 app. I read a lot of blogs saying it is possible to play Smooth Streaming videos in UWP, but as long as I can see - MediaElement and MediaPlayerElement support adaptive streaming but not Smooth Streaming (Microsoft implementation of adaptive streaming).
This article: https://learn.microsoft.com/en-us/azure/media-services/media-services-deliver-content-overview lists variations of adaptive streaming video formats.
(in practical terms) - Smooth Streaming video can be accessed by url like http://server/video.ism/manifest - and this throws exception when I use it in AdaptiveMediaSource.CreateFromUriAsync while other formats like Apple HLS (http://server/video.ism/manifest(format=m3u8-aapl-v3)) works fine.
So my question - is there a simple way to play reliably Microsoft Smooth Streaming in UWP app? [I have thousands of videos encoded in SS format and there will be no go for it unless we can play them]
is there a simple way to play reliably Microsoft Smooth Streaming in UWP app
According to Adaptive streaming with PlayReady,
Smooth streaming is also currently not supported natively; however, PlayReady is extensible and by using additional code or libraries, PlayReady-protected Smooth streaming can be supported, leveraging software or even hardware DRM (digital rights management).
It seems like smooth stream is currently not supported, if you want to play the smooth stream you may need the additional library Microsoft Universal Smooth Streaming Client SDK. And there is a sample you can reference.
Additionally, we recommend you to upgrade your smooth stream videos to DASH.
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.
I am working on the Windows Phone 8.1 app, in which I want to implement online video streaming and play video from windows phone device to TV through DLNA via wifi connectivity.
similar functionality to LUMIA PlayTo app, but want to stream online video over TV through DLNA.
can any one help with this because has googled a lot, but haven't found anything relevant
Any help is appreciated.
Thank you.
That is a fairly broad question. There is a MediaElement control you can use to play video. Maybe the open source PlayerFramework is more helpful. It provides a way to play lots of content, including progressive downloads, streaming, live streaming, protected content, advertisements, etceteras. And you can style the player as you see fit.
Have a look at http://playerframework.codeplex.com for the downloads, sources and documentation.
An easy start can be found here: Getting Started Guide.
Attribution for answer
Source
Author
Use and study this
Sample code
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.
I am looking to put a camera on top of a my lab in the process of being built and stream it to a website.
How can I be doing this with only c# ? How to get stream of video & send it live on server PC from there he can take instant photos?
Modern web cameras would supports WIA and DirectShow. WIA has a scripting interface which is more friendly to C#, however it is designed for cameras and scanners and is not that fast for streaming. But if you just need to push the image to a server, you don't need to write code, kist use Windows Media Encoder to push to a Windows Media Server's publishing point. You can then get image from the server's publishing point using DirectShow or Windows Media Format SDK. None of these are easy in C# though, you are better off using COM class libraries like ATL for extensive COM programming like this.
If you really want to write this in C#, I've had a lot of success with Egmu.
Capturing images is very straightforward - see this question. After that, it'd be FTP to the server as usual.
I'm curious about Sheng Jiang's Media Encoder solution though. Let me know how you get on.