YouTube.GetVideoUriAsync vido playback issu

Oct 30, 2014 at 11:19 AM
Hi guys,

I'm having a problem with my windows phone 8.0 app where I try to play a youtube video using this code:

File Video.cs:

var videoUri = await MyToolkit.Multimedia.YouTube.GetVideoUriAsync(this.ViewModel.Item.Id, YouTubeQuality.Quality360P, YouTubeQuality.Quality1080P);

if (videoUri != null)
   player.Source = videoUri.Uri;
File Video.xaml.cs

<Grid x:Name="LayoutRoot" Background="Transparent">
    <mmppf:MediaPlayer x:Name="player">
        <!--http://smf.blob.core.windows.net/samples/videos/wildlife.mp4"-->
    </mmppf:MediaPlayer>
</Grid>

So when I'm debugging (both in debug and release mode) everything works fine. My video is playing on bothe the phone and Emulator. But when i submit the app to Windows store and then download it and install it on the phone the video dont play. When i push on the videolink I only get black screen and after a while the app crashes. Anybody have any ide why this is happening?

Thx,
Meta
Coordinator
Oct 30, 2014 at 11:28 AM
Edited Oct 30, 2014 at 11:31 AM
Maybe you can capture the exception with a global exception handler:

http://msdn.microsoft.com/en-us/library/system.windows.application.unhandledexception%28v=vs.95%29.aspx

... save it and send it as email after application restart?
This way you may "debug" the published app.