Full-screen code for web player

xiaoxiao2021-03-17  197

In MediaPlayer, the full screen function can only be implemented in the played state. If the audio file is played, the video area will be the dynamic pattern that came with the WMP itself, or full screen, but when the display is configured, it is easy to black. At this time, you have to wait, only to full screen dynamic graphics The appearance. This tells us that only the full screen effect is best when playing a real video media. There is another trick: When playing the WMP video media "Playing" status, no matter if you set the full screen function, you can implement full-screen playback, then double-click back, or press "ESC" to return .

The of the player has an ID.

JS code for full screen