HTML5 Video poster attribute in Safari and Chrome

后端 未结 3 1033
情书的邮戳
情书的邮戳 2021-02-13 10:20

In Firefox the image specified by the poster attribute of the VIDEO tag remains on screen until the play button is pressed. However in the Webkit browsers (Safari a

3条回答
  •  别跟我提以往
    2021-02-13 11:16

    If you can get away with not preloading the video you can set preload="none" on the video element. In Safari this results in the poster being displayed.

    Safari on iOS probably sets preload="none" as the default to save bandwidth, while the desktop version preloads unless you explicitly tell it not to.

提交回复
热议问题