html5 - How does the YouTube mobile site prevent skipping video on iOS? -


when go m.youtube.com on iphone (chrome) watch videos, assume youtube using html5 <video> tag display them.

however, when watch video commercial, dragging seek button makes jump it's original position before seek. in other words, impossible control position in commercial.

it feels violation of divide between browser content , browser. isn't native app, website. how ios video control elements being manipulated html? seems should impossible, should impossible webpage access phone's photos or switch applications.

if it's running inline in browser, site have full script access controls - , it's standard nowadays prevent skipping/changing playhead during ads. rid of controls completely.

though html5 video native browser function, it's still subject javascript hooks. 1 has add return false onchangeplayhead event lock controls down. it's when remove video inline web , bring native ios app becomes untouchable scripts.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -