locked
MediaFailed event when i change resolution in emulator. RRS feed

  • Question


  • Error : "MF_MEDIA_ENGINE_ERR_DECODE : HRESULT - 0XC00D4E86"

    whenever i m playing any video in MediaElement in windows 8, it plays completely well in that resolution for example if i m  playing in : 23" 1920 x 1080. so it works well in this resolution or in any other resolution which is set before setting the source of MediaElement by fileopenpicker.

    But when i set the source and play that file in that resolution it works well but when i change my resolution to : 27" 2560 x 1440 or any other than error is raised : MediaElementFailed. m not able to handle that

     public async void VideoSource_MediaFailed(object sender, ExceptionRoutedEventArgs e)
     {
                //throw new NotImplementedException();
                //MessageDialog m = new MessageDialog("Can't play because item's file format isn't supported.","Can't Play");
                MessageDialog my = new MessageDialog("Error raised by : "+e.OriginalSource + "Error is : "+e.ErrorMessage, ""+e.OriginalSource);
                await my.ShowAsync();
    }
    And Message box displays this :

    " Error raised by : Error is : MF_MEDIA_ENGINE_ERR_DECODE : HRESULT - 0XC00D4E86 "

    And when i change the orientation i get this error :

    " Error raised by : Error is  : MF_MEDIA_ENGINE_ERR_DECODE : HRESULT - 0XC00D4E86"

    i found these post :

    http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/eb5e8e7a-8789-4f15-92be-dafaf3717292

    http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/abbefa03-485e-43e2-8190-de80643226c6http://blogs.msdn.com/b/mediasdkstuff/archive

    /2012/08/31/visual-studio-2012-s-simulator-causes-video-to-stop-playback-when-orientation-is-changed.aspx

    and windows store app lab is rejecting my app due to this technical problem.

    Please help.


    Thursday, May 9, 2013 4:20 AM

Answers


  • Error : "MF_MEDIA_ENGINE_ERR_DECODE : HRESULT - 0XC00D4E86"

    whenever i m playing any video in MediaElement in windows 8, it plays completely well in that resolution for example if i m  playing in : 23" 1920 x 1080. so it works well in this resolution or in any other resolution which is set before setting the source of MediaElement by fileopenpicker.

    But when i set the source and play that file in that resolution it works well but when i change my resolution to : 27" 2560 x 1440 or any other than error is raised : MediaElementFailed. m not able to handle that

     public async void VideoSource_MediaFailed(object sender, ExceptionRoutedEventArgs e)
     {
                //throw new NotImplementedException();
                //MessageDialog m = new MessageDialog("Can't play because item's file format isn't supported.","Can't Play");
                MessageDialog my = new MessageDialog("Error raised by : "+e.OriginalSource + "Error is : "+e.ErrorMessage, ""+e.OriginalSource);
                await my.ShowAsync();
    }
    And Message box displays this :

    " Error raised by : Error is : MF_MEDIA_ENGINE_ERR_DECODE : HRESULT - 0XC00D4E86 "

    And when i change the orientation i get this error :

    " Error raised by : Error is  : MF_MEDIA_ENGINE_ERR_DECODE : HRESULT - 0XC00D4E86"

    i found these post :

    http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/eb5e8e7a-8789-4f15-92be-dafaf3717292

    http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/abbefa03-485e-43e2-8190-de80643226c6http://blogs.msdn.com/b/mediasdkstuff/archive

    /2012/08/31/visual-studio-2012-s-simulator-causes-video-to-stop-playback-when-orientation-is-changed.aspx

    and windows store app lab is rejecting my app due to this technical problem.

    Please help.


    This is a known issue under the emulator and the MediaElement. Rest assured this works correctly on actual devices.

    Additionally, you won't be failing certification because of this. It will be another issue.


    British Airways Inspiration App & rara music



    • Edited by Flexman Friday, May 10, 2013 2:43 PM
    • Marked as answer by Nikki Punjabi Thursday, May 23, 2013 4:34 AM
    Friday, May 10, 2013 9:55 AM

All replies

  • Hello,

     

    Thanks for your feedback, I will involve more experts to investigate it.

     

    Best regards,

    Jesse


    Jesse Jiang
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, May 10, 2013 7:21 AM

  • Error : "MF_MEDIA_ENGINE_ERR_DECODE : HRESULT - 0XC00D4E86"

    whenever i m playing any video in MediaElement in windows 8, it plays completely well in that resolution for example if i m  playing in : 23" 1920 x 1080. so it works well in this resolution or in any other resolution which is set before setting the source of MediaElement by fileopenpicker.

    But when i set the source and play that file in that resolution it works well but when i change my resolution to : 27" 2560 x 1440 or any other than error is raised : MediaElementFailed. m not able to handle that

     public async void VideoSource_MediaFailed(object sender, ExceptionRoutedEventArgs e)
     {
                //throw new NotImplementedException();
                //MessageDialog m = new MessageDialog("Can't play because item's file format isn't supported.","Can't Play");
                MessageDialog my = new MessageDialog("Error raised by : "+e.OriginalSource + "Error is : "+e.ErrorMessage, ""+e.OriginalSource);
                await my.ShowAsync();
    }
    And Message box displays this :

    " Error raised by : Error is : MF_MEDIA_ENGINE_ERR_DECODE : HRESULT - 0XC00D4E86 "

    And when i change the orientation i get this error :

    " Error raised by : Error is  : MF_MEDIA_ENGINE_ERR_DECODE : HRESULT - 0XC00D4E86"

    i found these post :

    http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/eb5e8e7a-8789-4f15-92be-dafaf3717292

    http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/abbefa03-485e-43e2-8190-de80643226c6http://blogs.msdn.com/b/mediasdkstuff/archive

    /2012/08/31/visual-studio-2012-s-simulator-causes-video-to-stop-playback-when-orientation-is-changed.aspx

    and windows store app lab is rejecting my app due to this technical problem.

    Please help.


    This is a known issue under the emulator and the MediaElement. Rest assured this works correctly on actual devices.

    Additionally, you won't be failing certification because of this. It will be another issue.


    British Airways Inspiration App & rara music



    • Edited by Flexman Friday, May 10, 2013 2:43 PM
    • Marked as answer by Nikki Punjabi Thursday, May 23, 2013 4:34 AM
    Friday, May 10, 2013 9:55 AM