vladkol / MediaPlayback

Media Playback plugin for Unity on Windows 10
MIT License
30 stars 15 forks source link

Demo scenes freeze Unity on Play #1

Closed JackM36 closed 6 years ago

JackM36 commented 6 years ago

Hello,

I downloaded the Unity project and tried it (both MediaPlayback.unity and MediaPlayback360.unity). However, a few seconds after starting to play, Unity freezes and and the video never starts. Sometimes it happens when the state is changed to Buffering, sometimes when it is changed to Playing (video never plays).

Any ideas where the issue si and how to fix it?

vladkol commented 6 years ago

@JackM36, thank you for reporting that. Which Unity version are you using?

JackM36 commented 6 years ago

@vladkol I tested it on Unity 2017.3.1 and 2018.1. In the editor it always crashes Unity.

I tried compiling the project into an executable, and it did not crash. However, the projection was very stretched and weird, you could not even recognize what was shown.

This is one of the streams I am testing with, which plays well with other HLS players: https://bitmovin-a.akamaihd.net/content/playhouse-vr/m3u8s/105560.m3u8

vladkol commented 6 years ago

@JackM36, I'm chasing the freezing issue in the Editor. On the projection side, sample scenes use videos without ST3D metadata, so I force stereoscopic rendering. The video you provided is not stereoscopic, so simply clear "Force Stereo" flag. You may also want to lower a bit Exposure of the material.

vladkol commented 6 years ago

It seems the issue was on D3D11 threading side with Unity's device. I was able to resolve it (see commit 8dd8d51), but extra testing would be great. Thank you!

JackM36 commented 6 years ago

Thanks! I will give it a try and let you know

JackM36 commented 6 years ago

@vladkol It seems to be playing fine now (both editor and build), at least for the test streams I have used.

If I encounter any other issues later on, I will let you know. Thanks!

vladkol commented 6 years ago

Closing this issue for now. I should be fixed.