Loading...

HTML5 影音手持裝置適應不良篇

Temperature: 0 °C

ChungChung
author_tools

這天下午跟客戶開完會...

客戶針對專案中手持裝置網站適應性做了需調整的說明..另外還包括影音檔播放

一開始也覺得很奇怪,在video的指令裡已經下了autoplay了,理論上來說應該可以自動播放...@@

HTML5不是就是為了手持裝置跟PC而存在的嘛!!

不大可能手持裝置要下不同指令吧...

所以又Google了...結果...

Apple has made the decision to disable the automatic playing of video on iOS devices, through both script and attribute implementations.
In Safari, on iOS (for all devices, including iPad), where the user may be on a cellular network and be charged per data unit, preload and auto-play are disabled. No data is loaded until the user initiates it. - Apple documentation.

...不是吧...接著不死心的針對Android做Google,結果..
Autoplay on most mobile platforms (Android, iOS) gets blocked to avoid poor user experiences - video should only play following a user action. You can usually work around it by triggering the play() on another event (eg the onloaded event)

所以,手持裝置不接受自動播放是吧...ㄟ害!!

HTML5 影音手持裝置適應不良篇
 

台北市松山區八德路四段650號 Go

https://innstory.com/story-HTML5_影音手持裝置適應不良篇-369
寫程式筆記

Prev
 檳城美食系列辣死你媽

Next
台南麻豆不一樣的碗仔粄阿蘭碗粿 

Nearby Attractions

台北市松山區八德路四段650號-Nearby Attractions

  • 白榕蔭堂墓園(白崇禧將軍墓)... Go
  • 立法院(原臺北州立第二高等女... Go
  • 臺北機廠 Go
  • 蔡瑞月舞蹈研究社 Go
  • 于右任墓 Go
  • 欽差行臺 Go

About the Author

Chung

我是chung
網路工作者
主業是網站系統開發建置
副業是做夢,寫故事
作品請參考/teme.biz
做夢請參考/innstory.com
聯絡/chung.teme@gmail.com

#有人用筆寫日記,有人用歲月寫日記,有人用照片寫日記,而我,用innstory寫日記。

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

CSS Radio Button

CSS Radio Butt...

寫系統的時候三不五時總會用到Radio Button 和 Checkboxes 目前就在寫這個部份@...

讓圖片上傳前先產生預覽

讓圖片上傳前先產生預覽

專案需要,上傳圖片至網站時先產生預覽圖~ 參考了stackoverflow.com裡討論的的方式

PHP網路爬蟲之抓取Open Graph(OG) Meta tags

PHP網路爬蟲之抓取Open...

用google爬了很多文章.... 最後終於找到一篇內容..... 只是測試了半天...感覺奇怪為何...

Recommended reading

Other stories happened at this address

熊出沒!

熊出沒!

前幾天,花了些時間重新設計了innstory裡的代表頭像... facechange 想說把一開始的...

該看看書了-Mr. Jamie 網路創業七堂課

該看看書了-Mr. Jami...

我愛看書? 其實也並不是。與其說我愛看書,倒不如說我愛買書,因為喜歡看書櫃上擺滿書的樣子... 只是...

用distinct在MySQL中查詢多條不重複記錄值

用distinct在MySQ...

select *, count(distinct name) from table group by...

最愛的藝術文宣

最愛的藝術文宣

每次看到這些藝文文宣, 總會讓我想起以前在廣告公司上班的日子, 工作壓力雖然很大, 可是卻是做著自己...

來一盤駱式海鮮義大利麵

來一盤駱式海鮮義大利麵

這天我跟客戶開會,晚了...沒趕得急下廚,所以就由Mandy大展身手... 問她需不需要幫忙做什麼,...

搞累我了,小蘋果。

搞累我了,小蘋果。

Mandy喜歡運動。 她喜歡跑步、爬山、跳韻律舞....我也偶爾會被抓去跟她一起爬山跟跑步。 爬山的...

Please select an option

error

Hi, thank you for your participation, but you cannot vote repeatedly~

Join innstory now and start recording your story.

"Innstory" is a place to store stories. We are committed to becoming a warm platform. Deepening the bonds between people is our direction.
We are convinced that the blockchain between people is not just a cold calculation. Join us now.

Wrong format