locked
SetMediaStreamPropertiesAsync while streaming

    Question

  • Hi,

    I have a store app using C++ which streams video and records.  I would like to change the resolution while streaming using SetMediaStreamPropertiesAsync.  Is it necessary to stop preview before making this call?

    Thanks,


    SAP

    Wednesday, February 26, 2014 2:13 AM

Answers

  • Hi,

    According to your description, you want to change the video resolution. As far as I know, before you changed the resolution of the video mode, you must stopPreview, then change the resolution, then startPreview() agin.

    You can refer to the link below:

    http://social.msdn.microsoft.com/Forums/windowsapps/en-US/c459c2e3-fa7a-4ae0-96f1-f35872eef247/why-i-can-set-the-camera-video-resolution?forum=toolsforwinapps

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.


    Thursday, February 27, 2014 5:44 AM

All replies

  • Hi,

    According to your description, you want to change the video resolution. As far as I know, before you changed the resolution of the video mode, you must stopPreview, then change the resolution, then startPreview() agin.

    You can refer to the link below:

    http://social.msdn.microsoft.com/Forums/windowsapps/en-US/c459c2e3-fa7a-4ae0-96f1-f35872eef247/why-i-can-set-the-camera-video-resolution?forum=toolsforwinapps

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.


    Thursday, February 27, 2014 5:44 AM
  • I have used SetMediaStreamPropertiesAsync with by itself and surrounded by start/stop preview.  They both appear to work (both Logitech and Microsoft cameras).  Using SetMediaStreamPropertiesAsync by itself caused a pause for a couple of seconds.

    I'll assume my particular situation allowed me to do do this but in general, you should stop/start preview.  It would be nice, though, to know more about it.  Has anyone else experienced this (beside the link provided above)?


    SAP

    Sunday, March 2, 2014 1:32 AM