Use vue-video-player, to switch video sources in full-screen state, appear to jump out of full-screen and videojs reports an error

recently, I am working on a live broadcast project, and there is a need to switch definition, that is, to switch video sources.
the video source can be switched normally in the non-full screen state, but there is a problem. If you switch the video source in the full screen state, the video will automatically jump out of the full screen and become the original small screen. At the same time, the console videojs reports an error.
the goal is to maintain full screen after switching video sources in full screen mode. How to deal with this situation? The following is a screenshot of the source code

Mar.21,2021

has found a solution because the method for switching video sources is incorrect and should be this.$refs.videoPlayer.player.src ('rtmp address to be switched').


how do I default to full screen?


excuse me, do you need to add the button to switch definition? Is there still a setting, or in sources [], if you write a few corresponding ones, the button to toggle clarity will automatically appear?

Menu