問(wèn)題描述
我知道 Google Chrome 有一項(xiàng)自動(dòng)播放政策,即無(wú)法自動(dòng)播放帶音頻的視頻.像 YouTube 和 Twich 這樣的網(wǎng)站怎么能繞過(guò)這個(gè)?他們?nèi)绾巫詣?dòng)播放帶音頻的視頻?
I know that Google Chrome has an autoplay policy where videos with audio cannot be autoplayed. How come websites like YouTube and Twich are able to bypass this? How can they autoplay videos with audio?
推薦答案
看起來(lái)他們被特別列入白名單.
It looks like they're specially white-listed.
Chrome 通過(guò)了解您的偏好來(lái)做到這一點(diǎn).如果你沒(méi)有瀏覽歷史記錄,Chrome 允許自動(dòng)播放超過(guò) 1,000 個(gè)網(wǎng)站看到最高比例的訪問(wèn)者播放有聲媒體.作為您瀏覽網(wǎng)絡(luò)時(shí),該列表會(huì)隨著 Chrome 的學(xué)習(xí)和啟用而改變?cè)谀蟛糠謺r(shí)間播放有聲媒體的網(wǎng)站上自動(dòng)播放訪問(wèn),并在您不訪問(wèn)的網(wǎng)站上禁用它.這樣,Chrome為您提供個(gè)性化、可預(yù)測(cè)的瀏覽體驗(yàn).
Chrome does this by learning your preferences. If you don’t have browsing history, Chrome allows autoplay for over 1,000 sites where we see that the highest percentage of visitors play media with sound. As you browse the web, that list changes as Chrome learns and enables autoplay on sites where you play media with sound during most of your visits, and disables it on sites where you don’t. This way, Chrome gives you a personalized, predictable browsing experience.
來(lái)源:https://blog.google/products/chrome/improving-autoplay-chrome/
這篇關(guān)于YouTube 和 Twitch 如何覆蓋帶音頻視頻的自動(dòng)播放策略?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!