RenderHeads / UnityPlugin-AVProVideo

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

AVPro Video player delay #566

Closed mykr13A closed 3 years ago

mykr13A commented 3 years ago

Hi,

I use the AVPro Video player to play a 360 live streaming video on Unity. I noticed that when I start the video player it takes about 8s to load the video and the live streaming video I watch has 8s delay. That is the video player starts, it takes 8s to show the live streaming video and when it shows the video, it is 8s back in time (as long as the delay is). The same delay appears when I run it in Oculus Quest. How could I decrease the delay of the video player? Are there any settings?

Your Setup (please complete the following information):

To Reproduce

Logs If applicable, add error logs to help explain your problem.

Screenshots If applicable, add screenshots to help explain your problem.

Videos If applicable, add a copy of your video or the URL

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Instead email the link to us unitysupport@renderheads.com

Ste-RH commented 3 years ago

You are seeing the delay on both Windows and Android? If so, it sounds like the problem is at the server/stream end as the two platforms use completely different APIs in AVPro Video.

Are you able to provide a link to the stream?

mykr13A commented 3 years ago

Unfortunately, I cannot provide a link of the stream due to privacy issues. Do you have any idea why this is happening? Or what could I do to my server to reduce this latency? I use an rtsp protocol. Is there any case that the protocol causes the delay?

Myrto

Στις Παρ, 15 Ιαν 2021 στις 12:50 μ.μ., ο/η Ste Butcher < notifications@github.com> έγραψε:

Are you able to provide a link to the stream?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/566#issuecomment-760847111, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH4PRZGSRR6UEANLNQCYWADS2AMVZANCNFSM4V5KPGIA .

Ste-RH commented 3 years ago

I would say 100% the delay you are seeing is the due to it being an RTSP stream. RTSP streams always seem to have a lot of inherent lag compared to HLS etc. If you google 'rtsp delay start' you might find some tricks on server setup to minimise the delay.