none
Zoom functionality in MediaPlayerElement: not getting manipulation events for scale gestures RRS feed

  • Question

  • I want to add zoom functionality for media player element(UWP C#) . I placed MediaPlayerElement inside a scroll viewer and zoom functionality is working. But inbuilt media transport transport controls is also getting zoomed and scrolled. To avoid this I tried implementing zoom through manipulation events as suggested in media player element doumentation https://docs.microsoft.com/en-gb/windows/uwp/audio-video-camera/play-audio-and-video-with-mediaplayer#pinch-and-zoom-video
    I am not getting  manipulation  events for scale gestures((I tried mouse scroll, pinch gesture and stretch gesture in touch pad). But I am getting maniplation delta events for translate gestures.
    Am I missing something. The code I tried is exactly same as said in the above link. 
    _mediaPlayerElement.ManipulationMode = ManipulationModes.Scale | ManipulationModes.TranslateX | ManipulationModes.TranslateY;
    _mediaPlayerElement.ManipulationDelta += _mediaPlayerElement_ManipulationDelta;
    Sunday, January 5, 2020 8:41 PM

All replies

  • Hi,
    Thanks for posting here.
    UWP questions are not included in the support scope of this Windows desktop development forum. We suggest you go to the following forums to ask:
    https://docs.microsoft.com/answers/index.html

    Best Regards,
    Drake

    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, January 6, 2020 1:40 AM