RenderHeads / UnityPlugin-AVProVideo

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

MediaPlayer freezes when "Scene Window" is open but not when "Play Window" is. #1485

Closed rcwongtk closed 1 year ago

rcwongtk commented 1 year ago

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Describe the issue Currently working on implementing the MediaPlayer in a Unity Scene. When using Play Mode on editor the video will load, but not play if you have the Scene Window open. However, if you use Play Mode when the Game (or Simulator) window is open, the video will play just fine. As soon as you switch to Scene view the video freezes and will not loop.

This also occurs when using the Demo Scene (Demo_MediaPlayer), have used versions of AVProVideo in the past and this has not happened in older versions so I am thinking it might be an incompatibility between the newer version of AVProVideo and Unity.

Your Setup (please complete the following information):

To Reproduce

  1. Open up "Demo_MediaPlayer"
  2. Go to Scene View, and press Play
  3. Video will not work
  4. Turn off Play Mode, go to Game View
  5. Press Play
  6. Video Will Work.

Logs Weirdly enough, no log at all.

Screenshots N/A

Videos N/A, Attaching a screen recording of the issue however!

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Instead email the link to us unitysupport@renderheads.com

rcwongtk commented 1 year ago

https://user-images.githubusercontent.com/16457282/224566075-578abdb2-32e7-4430-a883-22a6f6c9cfca.mp4

Chris-RH commented 1 year ago

From my testing

rcwongtk commented 1 year ago

Thanks Chris! I am not too experienced with this, but how do I switch to using WinRT in this case?

Chris-RH commented 1 year ago

Hi @rcwongtk,

In the Mediaplayer component, go to the Windows platform specific section. Where it says Video API, you can change it to WinRT.

component-mediaplayer-platform-windows

rcwongtk commented 1 year ago

Confirmed to work on my end, thank you so much Chris I really appreciate the quick work and help!

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.