Silverlight Video Player that plays .MP4 & .FLV - silverlight

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)

Related

Grab picture from web cam in WPF Application?

I am using web cam in WPF application. I am using Expression Encoder for video capture. for video capture I have created Job and its working properly. While I want to get picture with same resolution as video is. for this I am using ffmpeg to extract first frame from video. but quality of image is very low. the priority is that image quality should be best of attached web cam and resolution should be as much as video is.
Either we have any better option in Expression Encode for taking picture or kindly help me with any alternative.
You can have a look at this control:
The control provides the following functionalities:
Gets a list of available web camera devices on a system.
Displays a video stream from a web camera device.
Gets the current image being captured.
Requirements
The WPF version of the control is implemented using .NET Framework 4 Client Profile.
The control uses the VMR-9 renderer filter available since Windows XP SP2.
The control supports both x86 and x64 platform targets.
For some reason, accessing images from a web cam is far more complicated then it should be. While I have not used the Expression Encode application, I can provide you with two links to CodePlex, where you can find two different libraries that could help you to solve your problem. Please see the following pages:
WebCam Library for WinForm and WPF with C# and VB.NET
WPF MediaKit - For webcam, DVD and custom video support in WPF
Alternatively, if you're happy with using Expression Encode, then you could take a look at the following links:
Extracting still pictures from movie files, with C#
Extract frames from video files – The Code Project – Multimedia
I would recommend AForge.Net, it works flawless, free and licensed under LGPL v3 license, it also seems to work in both 32 and 64 bit.
The only drawback is that you need ~400 kb worth of dlls to get the webcam control.

Play MediaElement sound without interrupting Zune music

I've added sound effects to some events in my Windows Phone app using MediaElement. When these sounds play, the background music playing from other apps, like Zune, gets paused. Is it possible to overcome this?
I read somewhere that it can be achieved using XNA; but since I'm developing on my Windows 8 machine, I can't use XNA.
Even when developing on Windows 8 you can use XNA libraries in your Windows Phone apps. You should probably use SoundEffect and SoundEffectInstance for playing sound, the only problem is you need to have the sounds in wav form as a part of your project, not mp3 or files stored in MediaLibrary, as far as I know.
Difference between SoundEffect and SoundEffectInstance classes

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.

Can MediaElement play QuickTime (.mov) files?

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.

On WP7 & Computer, Playing first playlist Item automatically using SMF (Silverlight Media Framework)

I currently have a SmoothStreaming video comming from a Wowza server and We are currently using the SMF to play the video on the Windows Phone 7 and on the computer. We are adding the Manifest to the playlist and setting it to
PlaylistItem { DeliveryMethod = DeliveryMethods.AdaptiveStreaming };
The problem we are currently facing, is that even if the player is set on AutoPlay="True", the video will not start on it's own. We must open the play list in the player and select the first video for it to start playing.
we have also tried to the CurrentPlaylistItem, but this has not changed anything.
has anyone dealt with smoothstreaming from a Wowza Server? Can someone shed some light on this strange behavior?
When trying to play a video on the Windows Phone 7 using the SMF (Silverlight Media Framework) it is important to know that a H.264/MPEG-4 video will not play in the emulator, and will not play if the device is connected to the computer. The video will play only if the device is connected via WIFI or 3G.
Further more, be sure to have the latest version of the SMF. It was reported that binding the CurrentPlaylistItem does not work on certain versions. A quick solution to this problem, is to make the binding in code and not in xaml.

Resources