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

MediaPlayer.Control.GetProgramDateTime() returns 01/01/2001 on android #1831

Open flogavel opened 2 months ago

flogavel commented 2 months ago

Describe the issue GetProgramDateTime always returns 01/01/2001 on android devices after update to V3.0.0. I'm sending a sample project to reproduce the issue. It is just the 3D Unity project template with a MediaPlayer reading a file from an url, with auto open & play enabled, and a script showing the result of GetProgramDateTime at each frame on a Text (top left corner).

Your Setup (please complete the following information):

To Reproduce

  1. Open the project sent to unitysupport@renderheads.com (mail object is "Bug Report GetProgramDateTime"
  2. Switch to android
  3. Build and run (you can also use the Apk from "Builds Folder"

Logs

Screenshots

Videos

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Email object "Bug Report GetProgramDateTime"

Chris-RH commented 2 months ago

Thanks for your email, we'll have a look at that shortly. I just wanted to clarify.. You said "after update to 3.0.0", so do you mean that it worked in 2.9.3 and now no longer works in the same project after updating to version 3?

flogavel commented 2 months ago

I'm not sur what version we were using but it was pretty recent, maybe 2.9.3 yes (minimum 2.8.x). Anyway we've been working with your product for a long time and this method worked on many different versions but not in since the update to version 3.0.0.

Thanks for the quick update

Le lun. 22 avr. 2024 à 14:59, Chris-RH @.***> a écrit :

Thanks for your email, we'll have a look at that shortly. I just wanted to clarify.. You said "after update to 3.0.0", so do you mean that it worked in 2.9.3 and now no longer works in the same project after updating to version 3?

— Reply to this email directly, view it on GitHub https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/1831#issuecomment-2069346181, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXM3PT32TH3DNCGBF3XP6LY6UCUZAVCNFSM6AAAAABGSXEHZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRZGM2DMMJYGE . You are receiving this because you authored the thread.Message ID: @.***>

flogavel commented 2 months ago

Hello,

I'll be on holiday starting tonight, so I'm adding Kilian @.***) to this conversation in case you have any question / solutions to share.

Thanks, Florian Gavel

Le lun. 22 avr. 2024 à 15:08, Florian Gavel @.***> a écrit :

I'm not sur what version we were using but it was pretty recent, maybe 2.9.3 yes (minimum 2.8.x). Anyway we've been working with your product for a long time and this method worked on many different versions but not in since the update to version 3.0.0.

Thanks for the quick update

Le lun. 22 avr. 2024 à 14:59, Chris-RH @.***> a écrit :

Thanks for your email, we'll have a look at that shortly. I just wanted to clarify.. You said "after update to 3.0.0", so do you mean that it worked in 2.9.3 and now no longer works in the same project after updating to version 3?

— Reply to this email directly, view it on GitHub https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/1831#issuecomment-2069346181, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXM3PT32TH3DNCGBF3XP6LY6UCUZAVCNFSM6AAAAABGSXEHZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRZGM2DMMJYGE . You are receiving this because you authored the thread.Message ID: @.***>

KikiLebrun commented 2 months ago

Hi, We were wondering if there is any news on this topic ? thanks!

Chris-RH commented 1 month ago

I believe GetProgramDateTime will only be valid for LIVE streams

KikiLebrun commented 1 month ago

Hello, thank you for your answer, but we use the GetProgramDateTime on HLS stream, and this method is working on all other platform, including visionOS, iOS, or windows. I was wondering if we need to test something to give you some hints on the issue, if yes don't hesitate to tell us

KikiLebrun commented 1 month ago

Hello ! Do you have any news on this ? We cannot use your last version on our products, but we would like to be able to do it because we want to support our app on vision OS

Ste-RH commented 3 weeks ago

This is something that was changed from exoplayer -> media3 (exoplayer). We are looking into finding a work around for the issue.

Ste-RH commented 3 weeks ago

This should be fixed in v3.0.2 (penciled in for release by the end of the week)

Chris-RH commented 3 weeks ago

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

NicolasDebeurme commented 1 week ago

Hi @Chris-RH @Ste-RH, Nicolas here member of the team that created this issue, I just tested the fix with latest version (V3.0.4) of AVPro-Video. I can indeed see that GetProgramDateTime() do return a value now that is perfectly right in a case of an ended HLS Stream, but when the stream is LIVE the value received from the method veries depending on the platform. With every platform tested (IOS/MACOS/ANDROID/WINDOWS), I can tell that only the Android Platform returns an incorrect value when we Log the timestamp at the exact same time in the stream. I have also seen that the gap increase has the stream gets longer.

I'm available if you have any question or need more informations on the issue.