locked
How to rotate file record from camera?

    Question

  • Hi all ,

    I have observe the properties by code  as below 

                    VideoProperties videoProperties = await file.Properties.GetVideoPropertiesAsync();
    
                    List<string> tmp = new List<string> { };
                    var fileProperties2 = await file.Properties.RetrievePropertiesAsync(tmp);
                    foreach (var p in fileProperties2)
                    {                    
                        Debug.WriteLine(p);  
                    }

    I  notice that the property "System.Video.Orientation"  is different from two video stream (When MSFT camera  ap  is recording video  in Landscape and Portrait)

    My question is that is there any way to modify this property?  May I use MF_MT_XXX Media Type? (the detail property is as below shortcut)

    (http://msdn.microsoft.com/zh-tw/library/windows/apps/hh452756.aspx)

    or is there other method to modify this property?  I have tried many method but failed to set this property.  Hope someone can help me.  

    I am desperate.

    Thx.

    Monday, January 14, 2013 12:06 PM

Answers

  • Hi all

    the answer is  as below

    http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/4014e292-0342-4882-b4ed-a12406df727b/#bfbebae2-dd64-47c4-a057-ad82334a8ea9

    • Marked as answer by Jesse Jiang Tuesday, January 15, 2013 7:43 AM
    Tuesday, January 15, 2013 7:19 AM

All replies

  • Hi all

    the answer is  as below

    http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/4014e292-0342-4882-b4ed-a12406df727b/#bfbebae2-dd64-47c4-a057-ad82334a8ea9

    • Marked as answer by Jesse Jiang Tuesday, January 15, 2013 7:43 AM
    Tuesday, January 15, 2013 7:19 AM
  • Thanks for sharing the solution.

    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.

    Tuesday, January 15, 2013 7:43 AM