There are multiple videos on the web page, how to control multiple playback and stop using Baidu cyberplayer similar to videojs

question:
when playing a video, do not pause or stop, and then play another video. These two videos will be played at the same time.
how to pause or stop the previous video when playing the next video, and only keep the current video playback.

the problem has been resolved.

Mar.16,2021

this you need to record and process with some flags (this is relatively simple), otherwise you will traverse to get all video objects, stop all of them when playing one, and then start playing clicked (similar to tab switching)

Menu