RenderHeads / UnityPlugin-AVProVideo

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

WebGL + Dash - cannot stop or close video properly #404

Closed MikeSzym closed 4 years ago

MikeSzym commented 4 years ago

EDIT: Since we found a way to use HLS correctly the issue below has little (if any) importance to us. Leaving it here as a bug report but we are not looking for a solution to it anymore

When attempting to close a streamed dash video - or when unloading the scene with video player - I get hit with the following errors and the video continues to play in background. Upon reopening the video - it will play multiple times over each other:

[1326][SourceBufferSink] getAllBufferRanges exception: Failed to read the 'buffered' property from 'SourceBuffer': This SourceBuffer has been removed from the parent media source. Error: video not supported (errorcode=4) color:red; [1327][StreamController] Video Element Error: MEDIA_ERR_SRC_NOT_SUPPORTED (MEDIA_ELEMENT_ERROR: Empty src attribute) [1327][StreamController] [object MediaError] [1327][SourceBufferSink] Failed to remove source buffer from media source. https://gyazo.com/6978c5a0d2a02601818999e4e6e2b956

I attempt to close the video in various ways, but they all bug out in the same way way:

I'm using: Unity 2019.4.1 LTS Latest AVPro version (updated yesterday) Dash 2.8.0 library, but also tested with 3.1.1 Browser - Chrome, Firefox, doesn't make any difference Replicated on several devices

What I tried:

Video URL... Cannot provide, sorry. NDA, work for hire, video tokenized per IP and only works for an hour...

EDIT: Did manage to get HLS working which "resolves" the issue for us

Cheers, Mike

AndrewRH commented 4 years ago

Thanks for reporting this. We will still be investigating in case this is something we can improve.

Cheers,

stale[bot] commented 4 years 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.

stale[bot] commented 4 years ago

This issue has been automatically closed because it has not had recent activity. If you wish to continue this issue, then please create a new issue as we do not monitor closed issues.