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

[Windows] HAP File in MOV container locked after playback #1883

Closed dgacke closed 6 days ago

dgacke commented 3 weeks ago

HAP video files in .mov container remain locked on disk after playback, in both the Unity IDE and with a release build. Additionally, the files remain locked after stopping playback in the Unity editor. To unlock, you must close the editor.

Your Setup (please complete the following information):

To Reproduce

  1. Press play button in Unity IDE
  2. Play HAP codec .mov file.
  3. Press Stop in IDE.
  4. Try to delete the file from disk. It will fail. Windows reports the file as locked by the Unity IDE
  5. Works the same with a release mode application. After file has played, it will remain locked until the application is closed.
Chris-RH commented 3 weeks ago

I see what you mean. It seems to work better in Version 3.0.1, be sure to test it on the trial version. Make sure you are closing the media too :)

Chris-RH commented 6 days ago

I'm going to close this now as it seems to be fixed in version 3 and we aren't doing any updates to version 2. I would suggest either upgrading to version 3, or using the DirectShow API to play you HAP files in version 2.