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

No finishedPlaying event when i seek to the end in android #3.0.3 #1909

Open DreamYao opened 1 week ago

DreamYao commented 1 week ago

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Describe the issue When I seek to the end, finishedbuffering event is triggered, but no finishedPlaying event android #3.0.3

Your Setup (please complete the following information):

To Reproduce

  1. play the video from url
  2. before finished bufferring, seek to the end, it will trigger the event finishedBuffering, then show the end frame of the video,but no finishedPlaying event

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

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

Videos any one video

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Instead email the link to us unitysupport@renderheads.com

Chris-RH commented 1 week ago

Is looping enabled or disabled?

DreamYao commented 1 week ago

disabled

Chris-RH commented 1 week ago

We've not been able to reproduce this.

  1. Are you able to reproduce it in a new project, running only the AVPro Video demo scenes?
  2. Is it only streaming or is it local files too?
  3. Have you tested it on different Android OS versions and does it occur on them?
  4. Can you provide a full logcat in txt form?
Chris-RH commented 5 days ago

We've not been able to reproduce this.

Are you able to reproduce it in a new project, running only the AVPro Video demo scenes? Is it only streaming or is it local files too? Have you tested it on different Android OS versions and does it occur on them? Can you provide a full logcat in txt form?

Chris-RH commented 2 days ago

We've not been able to reproduce this.

Are you able to reproduce it in a new project, running only the AVPro Video demo scenes? Is it only streaming or is it local files too? Have you tested it on different Android OS versions and does it occur on them? Can you provide a full logcat in txt form?

DreamYao commented 3 hours ago

Sorry, i have upgrade to 3.0.4. And i avoid the bug. case MediaPlayerEvent.EventType.FinishedBuffering: if ((int)mediaPlayer.Info.GetDuration() == (int)mediaPlayer.Control.GetCurrentTime()) { // 直接seek到最后一秒,按照完成处理 HandleFinishedPlaying(); break; } ..... case MediaPlayerEvent.EventType.FinishedSeeking: if ((int)mediaPlayer.Info.GetDuration() == (int)mediaPlayer.Control.GetCurrentTime()) { // 直接seek到最后一秒,按照完成处理 HandleFinishedPlaying(); break; } .....