javascript - Show loading image when video buffer next frames -


i' using html5 video. need show loading image when video buffering next frame youtube when video stop , downloading next frames youtube show loading image circle gif image , when video download enough frame start loading image disappear.

i'm not asking first time video start.
know can use poster while video not starting or can use event loadstart , canplay.

these things work fine when video starting first time. problem want loading image when video stop while playing due buffering next frame.

so, event use or how can this.

thanks.

to achieve this, may want listen corresponding events video element. list of available events can found @ w3schools.com.

the 2 events of interest goal stalled , waiting, once fired can display loading animation.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -