[] Video Class web performance optimization optimization (Mu class network notes)

Advantages and disadvantages of video tags

Advantages: no need to download additional resources 

(Example: flash players need to download swf auxiliary plug.), Simple and effective control more complete api

Cons: Appearance is not the same in every browser

advantages and disadvantages of flash player

Pros: Good compatibility, as long as the players have flash player plug-in, can play

Disadvantages:

  1. The need to download additional swf file player can play, browser must have flash player plug-in

  Fragmentation 2.flashplayer version

  3.UI need to write custom as

flash + htll5 want to combine

Good case

Custom Player

https://gitee.com/chenchenjoke/imooc/tree/master/public

 

 The first time it is loaded video

1. The order of execution of the initialization code of the player in advance

2. resource when the player is needed to play in advance

 

Popular players

1, videojs official website: https: //videojs.com/getting-started/

2, flowplayer official website: http://flowplayer.org/

The browser will load the multimedia resources placed at the end, as

 

 After improvement using stylesheet link form

 

 

 

 

 

304 (not modified) that is obtained from the browser memory

 

Guess you like

Origin www.cnblogs.com/websmile/p/11419067.html