Libvlc media player end reached weird behavior

牧云@^-^@ 提交于 2019-12-11 04:26:22

问题


I'm using libvlc with Qt and I noticed that when the media player reaches the end of the video it doesn't respond anymore to window resizing or "play" to restart the video, it just stop working and that is it.

This is what happens if I try to resize when the media player reaches the end:

Behavior while playing:

Behavior after end reaches:

It doesn't happen in the regular Vlc only on the library. Is there any configuration I'm missing or they do something in that situation that I'm not aware of?


回答1:


SOLVED: I watched the VLC behavior to see how it works when the video reaches the end and I noticed that it just get ride of the video just like it's pressing stop so I managed to call stop on the event libvlc_MediaPlayerEndReached. It wasn't working before to me because I was using lambdas as the callback for the connections I just replaced them with real methods and it worked just fine.



来源:https://stackoverflow.com/questions/47361153/libvlc-media-player-end-reached-weird-behavior

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!