Here is video with testing after your changes:https://youtu.be/dcEurLpuWV0Testing began after windows restart. As you can see:1st launch after restart: - rmOpenGL does not work, every video is embedded2nd and other launches - rmOpenGL works until m4b file is opened for the second time (no other testing file caused this) - rmEmbedding works well in my opinion
You are right. I think it doesn't work because when we init mpv, we embed it using the handle of our component, when we change the BorderStyle, the handle changes, then mpv fails/crash, so we would have to restart mpv.
I tested your last commit:https://github.com/URUWorks/UW_MPVPlayer/commit/a7d2dc1c29c01be0c50dab3a30e6e81fca2bfddfand the situation is the same. rmOpenGL works embedded for all tested files (mp4, mp3) only if m4b file is loaded twice.
I tried putting MPV on a TPanel but same thing. And restarting MPV might be an option when playing a file from disk but in case of files from the web it will take too long.
Quote from: zbyna on January 05, 2024, 07:08:35 pmI tested your last commit:https://github.com/URUWorks/UW_MPVPlayer/commit/a7d2dc1c29c01be0c50dab3a30e6e81fca2bfddfand the situation is the same. rmOpenGL works embedded for all tested files (mp4, mp3) only if m4b file is loaded twice.I can't reproduce the failure on my system, but added "RenderFailAction" with two options, rfSwitchToEmbedding or rfNone.I wouldn't know if it works either