UnityPlugin-AVProVideo
UnityPlugin-AVProVideo copied to clipboard
MediaPlayer.Control.GetProgramDateTime() returns 01/01/2001 on android
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):
- Unity version: 2022.3.11
- AVPro Video version (number and edition (trial/core/ultra/enterprise)): 3.0.0 ultra
- Operating system version: Android
- Device model: All
- Video specs (resolution, frame-rate, codec, file size): All
To Reproduce
- Open the project sent to [email protected] (mail object is "Bug Report GetProgramDateTime"
- Switch to android
- 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"
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?
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: @.***>
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: @.***>
Hi, We were wondering if there is any news on this topic ? thanks!
I believe GetProgramDateTime will only be valid for LIVE streams
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
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
This is something that was changed from exoplayer -> media3 (exoplayer). We are looking into finding a work around for the issue.
This should be fixed in v3.0.2 (penciled in for release by the end of the week)
AVPro Video version 3.0.2 has been released. Please let us know if it has not fixed your issue.
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.
Hello ! Do you have any news on this ? We would love to migrate our product to AVProVideo V3.0.0+ but we are stuck because of this bug. We really need this feature to work.
Hello @MorrisRH @Ste-RH @Chris-RH, any update on that ? Thank you !
Hi @NicolasDebeurme,
The dev team is on annual leave at the moment. They should be back in the office from Tuesday of next week.
Kind regards, Chris
@NicolasDebeurme do you have a test stream that shows this issue? Everything stream I have tried, that gives back a time, just returns 'current UTC time'. I have also left it an hour and noticed no drift.
Hello ! We just discovered 3 days ago that we has errors in encoding the video that made this issue. So it was from our side, we tried with our new stream and now everything work well ! Thank you very much for your help ! So you can close the issue
Thanks for letting us know @KikiLebrun . Really glad it's all sorted for you.
If you have a few moments free, it would really help us (and the asset) out if you could leave an honest review of AVPro Video (and the support offered) on the Unity Asset Store. No worries if you don't have time. We know how slammed developers time gets!