Playing video files in Windows Phone 8 - windows-phone-7

I'd like to make app for WP8, which will download and play movies. Android Market has lots apps of this type. But all of just get content, and pass it to video player (MX player for example), and format can be different (.avi, .mkv, .mpeg, etc.), but player shows the content without any problems. For exaple on my Samsung s5830, 1400 mb .avi movie plays good. As I can see - WP8 doesn't has custom video players.
Question: if I download in my app, from web, some movie in .avi format, could I play it on WP8? The same question for video stream for web.

You can play back any video file which is supported by the phone (this is documented on MSDN here). You can stream or play downloaded video from Isolated Storage using the MediaElement in the SDK and on WP8 I think there is a DirectX option too.
It's not enough to say that a file type is supported as these are just video "containers" - each container can contain audio and video of different codecs. MKVs don't look like they're supported at all however.
You can see this video format (codec) support varies between WP7 and 8 and even some kinds of phone dependent on what the chipset in the phone supports. (especially for the high bitrate HD codecs).

There is a nice framework that helps you on playing movies inside your app!
Take a look at it on codeplex http://playerframework.codeplex.com
And some documentation http://smf.codeplex.com/documentation

Related

Recording screen audio in UWP

I want to record game playing screen audio using UWP in windows 10, not record audio from web camera.
I tried NAudio, But it doesn’t work in UWP.
I have checked MediaCapture, I assume it can record audio or video from something like camera, not screen audio.
Although I found ScreenCapture.AudioSource property in official document, On windows 10 , This api is not supported.
Is there any way to record screen audio in UWP?

Video Recording in Xamarin Forms

How can I record Videos in xamarin forms? I need a portable library plugin. I had already used Plugin.MediaManager and the recorded video with quality medium and compression low is having a size more than 500MB. Also if i try with a qulaity less than this, it will not play in iOS. Can anyone please help me to provide a solution on alternate plugins(cross platform) for recording video.

locate media source of playing medie wp

does Anybody know if it is possible to capture the media you are playing on windows phone, so you can stream it to another source,
Just like apple does with airplay
No, it is not possible to write a 3rd party app that can capture audio or video from other apps and stream it somewhere else.
Airplay on iOS is a system level service that apps can use.
The closest thing Windows Phone has is Play To, which allows you to pick existing media on the phone (pictures, music, video, etc) and share it to a compatible device. Currently, this technology isn't available to developers.

Stream YouTube videos in a Windows Phone app

How do I stream YouTube videos in a Windows Phone app? I've tried using the MediaElement control and setting its Source property with the URL to a video and called the Play() method on the media element, but it didn't work. I want to create a simple video player that plays a video as it is being streamed. What kind of .NET classes do I need to work with?
YouTube does not expose its videos in a format which you can use to play them within Windows Phone applications, or any other kind of application for that matter. This is why services such as KeepVid, which provide 'hacks' for downloading YouTube videos, exist.
Please see my answer to this identical question from a few months ago over # Possible to play Youtube video in a wp7 app?

How can my app playback videos like metro tube does for Windows Phone 7?

I have to code an Windows Phone 7 application which playback videos from YouTube. That's kind of normal, but the first approach it's to playback them in the same way as MetroTube does it (see http://www.metrotubeapp.com/ ) (for example you can playback the youtube video without going to fullscreen and also have playback controls)
I do not have any idea of how to achieve this so, perhaps an embedded page based on You tube video integration but not quite sure yet.
Any idea of how to create this very flexible YouTube player for WP7?

Resources