Stream YouTube videos in a Windows Phone app - windows-phone-7

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?

Related

Regarding Chromecast live video transcoding and subtitles

I'm planning to add more features to the current Chromecast android application that i have developed.
Does the chromecast mediaplayer api have some mechanism to trans-code the video on the fly? Also, is there an API which can help me display subtitles within the chromecast?
There is no api for transcoding. As for subtitles, it was added in the latest version of the SDK, you need to look at each SDK (receiver, iOS or Android) to see what has been added.

Share videos camera roll wp 8

I tired to googling that how share videos form camera roll in windows phone 8 like in Nokia video upload and facebook app. I used to try this
http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff967563(v=vs.105).aspx
Only share picture but I want to share only videos for my app e.g. when my app show in list when share a video by camera roll of windows phone in sharing
To quote the link you included in your question:
Note that this extensibility is only available when the photo is a JPG
file.
And from my experience, I can confirm that it is not possible to register your app as a share target for a video file.
In other words, if a user tries to share a video from the camera roll or another app, there is no way to make your app appear as one of the options in that list.
Did you try using the share media task function?
Check this article out from the msdn :
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207027(v=vs.105).aspx
You can use MediaLibrary and there is already an answer for your question in this link. As said, there is no way to select existing sound media and video files through default choosers. Thank you.

How to record or get the audio while the audio is playing in windows phone 8?

noob here.
I am developing an app for windows phone that streams audio from the web. I've put the play function with MediaElement class, and i have no problem with it.
Then, i want to add a feature to get/record the audio that i stream. I've googling and didn't find what i want.
Is there a way to do that?
Regards,
BM
This is the Microphone class link which can be used to capture audi.
Give a try and let me know
Microphone to capture audio
also go nthrough this link
capturing and playing audio

Playing video files in Windows Phone 8

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

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