Can MediaElement play QuickTime (.mov) files? - silverlight

I'm building a Windows Phone 7.5 app that needs to play videos that are pulled from a remote XML feed. Some of these videos are in .mov format, while others are in .mp4 format. The .mp4's play just fine, but the .mov's don't play (just a blank screen). I'm using MediaElement to play these files. Is there any way to make MediaElement play .mov files?

On a Windows Phone? No.
The MediaElement uses whatever codecs are available and installed. Since you can't install your own codecs and only ships with a certain number of codecs, you cannot play them.
The QuickTime Format is just a container around MPEG-4 - it should be very simple to transcode them to MP4 (Which is supported) if you have control over the source.

Related

How to play Youtube or Real Time Streaming Protocol Videos in Windows 8 Metro apps?

I am building one app which can pick videos from our channel and list and play from within the application.
I have done all the json parsing and have everything ready but the only problem
is that I am not able to play the rtsp videos coming from the Youtube API.
I have read that it is possible to play rtsp videos using the MediaElement control
but its not working, my sample XAML code is as below.
<MediaElement Width="500" Height="500" AutoPlay="True" Source="rtsp://v6.cache5.c.youtube.com/CiQLENy73wIaGwkNCW3rSEjLahMYDSANFEgGUghzdGFuZGFyZAw=/0/0/0/video.3gp"/>
I have also looked at Player Framework for Windows 8 Metro Style Applications and Smooth Streaming Client SDK
Using these I am able to play a direct video stored in the server(http://localhost/video.mp4), but not videos streamed via rtsp.
Please help. I want mainly youtube videos via rtsp to be played
I have searched a lot but not finding any solution, please help.
The rtsp stream is also working I have tried playing via VLC, its playing there.
OS: Windows 8 Release Preview w/ VS 2012 Express for Windows 8
I'm pretty sure there's more to playing YouTube videos than just the RTSP protocol. Your example shows a file of type .3gp, which is traditionally treated as QuickTime and not playable by MediaElement. MediaElement can, however, play MP4s and with a codec installed and a custom DirectShow graph it's even able to play FLVs. There's even a sample WPF YouTube player discussed here and it looks like the source is still available for download.

MediaElement and RTSP

Does MediaElement support RTSP?
I've got a stream going and I'm able to consume the stream with VLC Player via:
rtsp://192.168.1.17:554/stream
However, when trying to use Windows Media Player, I'm not able to stream it. Which begs the question, does MediaElement support RTSP?
I'm working with WPF on .NET 4.0.
VLC has comprehensive support for RTSP (through live555 library), while support in Windows Media Player is limited.
You might want to check this article on MSDN: Supported Media Formats, Protocols, and Log Fields.
Supported Codecs
Below is a rollup list of formats codecs supported by the
MediaElement. These encodings are supported regardless of the file
name extension.
See also: MediaElement and custom RTSP stream.

Media codec flv play in Windows Phone 7 in Media Element

I want to streaming flv video in Media Element in WP7. I can play wmv format but flv not. I found this link. So MediaElement doesn´t support flv right? Is there a way how can I play this format?
You are right. WP7 doesn't support Flash Video.
The only solution available is to convert the video. I'd recommend doing this off the device and not trying to do the conversion on the phone.

How can I play a wav file in Silverlight 3?

How can I play a wav file in Silverlight 3.File is on other web site.
You would use the MediaElement to play a sound file. To be honest, I was unable to get Silverlight to play a .WAV file and had to convert it to WMA. But it may have just been an unsupported codec.
Seems like SL2 don't support wav playback. But in SL3 wav playback is support.
I hope this can help.
http://code.msdn.microsoft.com/wavmss
http://blogs.msdn.com/gillesk/archive/2009/03/23/playing-back-wave-files-in-silverlight.aspx
Regards.

Silverlight Video Player that plays .MP4 & .FLV

I am currently using the Silverlight 2 Video Player to stream videos. I have been very pleased with it but it only seems to stream .WMV files. Does anyone know if there is a good Silverlight video player that will stream other types of video files, especially .MP4 & .FLV? I would be happy to use Silverlight 3 if necessary.
EDIT: Because I like this player and have not found a great option, I am considering encoding files as I receive them so that they will always be streamed later as a .WMV. Unless I determine a good player (I am considering flash at this point), I will have to go down this road.
EDIT 2: Now that Silverlight has evolved quite a bit, are there any new players using Silverlight 5 that do the trick?
Try this link: Silverlight Video Player with Source Code
Just found this Silverlight Media Framework which looks interesting and more robust than the Silverlight Video 2 Player I was using.
Silverlight 2 supports the following standards of video:
• Windows Media Video 7 (WMV1)
• Windows Media Video 8 (WMV2)
• Windows Media Video 9 (WMV3)
• Windows Media Video Advanced Profile, non-VC-1 (WMVA)
• Windows Media Video Advanced Profile, VC-1 (WMVC1)

Resources