Using SystemMediaTransportControls w/o local media - c#

I am trying to use SystemMediaTransportControls on my Windows Phone to remote control my streaming music player device (I am not playing any media local to my device!). I am folowing the examples but have no success so far. The media controls do not appear on the screen.
Has anybody tried the same thing already? Is this possible at all, or does the media controls require a locally played music file to appear?

The system media transport controls are only shown when the MediaPlayer has media opened and/or is playing media. You can't use it for any other purpose.

Related

C# playback of Vimeo videos

I'm looking for a way to stream Vimeo videos using my C# application. At the moment I am playing back videos locally using a Windows Media Player widget in a Windows Forms application.
I suppose I could use a WebBrowser in Form window if I had to, but am looking for something a bit more native than that if possible.
I found that the Windows Media Player control was able to play back Vimeo links directly.
A Vimeo Pro account is required in order to get the links to videos that can be used to stream videos using "3rd party players".

Which class is suitable to play music file?

My app will get all music file from KnownFolders.MusicLibrary, which will return StorageFile, but later I found out there's few Class I can choose to play music file.
What I want is that when I play a list of music file, it can be controlled on the universal volume control (like picture below).
I found BackgroundAudioPlayer Class, BackgroundMediaPlayer Class, MediaPlayer Class, and MediaElement Control. Which one of them is the most suitable Class/Control to play music file?
I'm developing Windows Phone 8.1 Silverlight
To do it in the correct way (to allow users play music when your app is un background) you should use backgroundaudioplayer. I used it on Fildo and works great.

Play a video on the default media player in Universal App

I would need to execute a function that plays a video in the default media player(Phone or Tab) from Universal Apps that uses Xaml and C#.
I don't want to embed the player .Actually my need is to open a new window with the default player and tell it to play the selected file.
All samples that I've saw in Google are to create an embedded player or send to a device Only.
Could you please give some suggestion for this issue. Thanks in Advance.

Set webbrowser audio to stream to media player so it can be used in background on windows phone 8

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.

Play a video on the default media player from a Windows Store App?

I want to implement a function that plays a video in the default media player from a windows store apps that uses Xaml and C#.
I don't want to embed the player I want to open a new window with the default player and tell it to play the selected file.
All the samples that I've found are to create an embedded player or send to a device.
Can anybody help me?
Thanks...

Categories