RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
224 stars 27 forks source link

Dynamically switching between 180 and 360 spheres at runtime #1698

Open aneast08 opened 7 months ago

aneast08 commented 7 months ago

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Describe the issue When changing the video layout mapping for a dash video the 180 version seems to stretch to the full 360 sphere even though the video layout mapping is set to equirectangular180.

Your Setup (please complete the following information):

To Reproduce

  1. Trigger a resolution Changed event (from 7680x3840 to 3840x3840)
  2. switch from equirectangular360 to equirectangular180 through script
  3. Observe stretching indicating video layout mapping has not switched

Logs If applicable, add error logs to help explain your problem.

Screenshots If applicable, add screenshots to help explain your problem.

Videos If applicable, add a copy of your video or the URL

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Instead email the link to us unitysupport@renderheads.com

Chris-RH commented 7 months ago

It should work if the options are set before OpenMedia is called.

aneast08 commented 7 months ago

The issue is that we are using MPEG Dash for the media which swaps between 360 180 and hd content through different streams without calling open media each time. These dynamically are swapping via the users bitrate. The events we listen for to swap between displays are resolution changed and ready to play. When the video automatically swaps between bitrates it seems to work and formats properly but if we select a different resolution through a dropdown and set the maximum bitrate value then the 180 video stretch's across the full 360 sphere.