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 at sometimes in android or ios #3.0.3 #1908

Closed DreamYao closed 3 days ago

DreamYao commented 1 week ago

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Describe the issue A clear and concise description of what the issue is. not reproduce every time, but the frequency is very high https://github.com/RenderHeads/UnityPlugin-AVProVideo/assets/11754273/dac922e8-7fb2-4ac3-8ce3-f9e0821e700b

Your Setup (please complete the following information):

To Reproduce

  1. just play

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

DreamYao commented 1 week ago

here is code: mediaPlayer.Loop = false; mediaPlayer.OpenMedia(new MediaPath("speak_03.mp4", MediaPathType.RelativeToStreamingAssetsFolder), autoPlay: true); When the issue is reproduced, the video is playing with loop

Chris-RH commented 1 week ago

There is no FinishedPlaying event when the video is looped. See documentation.

DreamYao commented 1 week ago

mediaPlayer.Loop = false; My mediaPlayer loop is false

Chris-RH commented 1 week ago

You've just said "When the issue is reproduced, the video is playing with loop", so are you saying that it is set to not loop, but does loop sometimes?

DreamYao commented 1 week ago

You've just said "When the issue is reproduced, the video is playing with loop", so are you saying that it is set to not loop, but does loop sometimes?

yes

DreamYao commented 1 week ago

mediaPlayer.Loop = true; mediaPlayer.OpenMedia("01.mp4", autoPlay: false); mediaPlayer.Pause();

// then wait a few minutes mediaPlayer.Loop = false; mediaPlayer.OpenMedia("02.mp4", autoPlay: false);

02.mp4 play loop

MorrisRH commented 1 week ago

Android:

iOS:

Chris-RH commented 1 week ago

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