1/4/2024 0 Comments Vlc media player repeat video![]() ![]() I believe I am close to something that works by I am seeing MediaPlayerEventListener.positionChanged() only get called one time during the life time of the video playback with a position of about 0.26 (this particular video is less than a second long). It does not look like the 99% position approach will work. In short, put the minimal amount of stuff in the submit(). It's going to take a bit of empirical tweaking to get it just right. I know this is approach is not ideal and a little tricksy, but you can probably get something workable out of it. You should try playing the next player before the submit too (it should be OK on this thread because its a different media player, I don't know for sure tough). The only thing that should be in the submit is the stuff that performs media player operations, on the media player that raised the current event. And also maybe don't switch to the card pane until you get a "ready" event, this guarantees the position is > 0 before you show the video at the expense of maybe missing a frame or two of video. ![]() You may need to do some tweaking, such as swapping playback on 99% position rather than waiting for a finished event. In your latest example, move the invokeLater to be outside and before the submit call. So yep, that means changing the card pane, invalidating layouts and so on. Any method invocation that affects UI state must be made on the appropriate toolkit thread. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |