How can my app playback videos like metro tube does for Windows Phone 7? - 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?

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?

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

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?

Live Streaming Issue

I am developing an app to view live channels. Channels are hosted on Windows Media Services 9. I am using MediaElement for playing the stream and it is playing the stream first time but doesnt play on second attempt unless i relaunch the app.
Same problem with internet explorer on WP7 it plays the stream first time but not on second attempt.
Is it a bug? or is there any solution of this problem?
Are you using IIS Smooth Streaming? If not, why not? Considering you're developing for a mobile device that would need to scale to unknown network conditions adaptive streaming would be better than progressive download playback.
If you are using IIS Smooth Streaming on the server side, you shouldn't use < MediaElement Source="http://foo" /> but rather use the < ssme:SmoothStreamingMediaElement StreamSource="http://foo/bar.ism/manifest" /> control.
There's a lot of documentation out there on setting up an IIS smooth streaming endpoint and consuming it from WP7. You should also consider using the < smf:SmfPlayer /> control as it gives you a fully-featured WP7 video player and not just a playback rectangle like the mediaelements do.

Resources