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

IMediaCache.AddMediaToCache blocks main thread on iOS when 100% Packet Loss #1808

Closed jesus-mgtc closed 3 hours ago

jesus-mgtc commented 3 months ago

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Describe the issue When using IMediaCache.AddMediaToCache on iOS, having 100% Package Loss turned on under Settings > Developer > Network Conditioner, the game freezes completely for 10-15 seconds. This call under this conditions seems to block the main thread. This might also affect Android, although I have no way to test it

Your Setup (please complete the following information):

To Reproduce

  1. Turn on 100% Package Loss under Settings > Developer > Network Conditioner
  2. Make a call to IMediaCache.AddMediaToCache to cache any video from remote
  3. See how the main thread gets blocked and the execution can't continue

Logs No logs. Just a freeze without error

jesus-mgtc commented 1 month ago

Greetings! Any news on this topic? Had any chance to look at it? Thank you

MorrisRH commented 1 week ago

A fix for this will make it into the next release (version 3.0.5)

Chris-RH commented 6 days ago

AVPro Video version 3.0.5 has been released. Please let us know if it has not fixed your issue.