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

在手機上如何建立網址到手機桌面中並且使用圖示

在手機上如何建立網址到手機桌...

上回做專案時,客戶說了手機桌面上的網站捷徑太醜,想要美化。 這回索性也幫Innstory美化一下,順...

Responsive Web Design使用CSS3的Media Queries進行自適應網頁設計

Responsive Web...

智慧型手持裝置(手機、平板)已是非常普及的日常生活必需品。 所以現在,在開發系統時客戶都會詢問是否支...

行事曆功能導入

行事曆功能導入

cc55 Innstory有行事曆囉! 我試著把Innstory當作是我的筆記本,將生活發生的故事紀...

Recommended reading

Other stories happened at this address

義大利麵

義大利麵

Mandy 喜歡吃麵食... 而最近她喜愛的麵食是義大利麵...一有機會就一直在我耳邊說著想吃......

愛情無全順

愛情無全順

我覺得還蠻好笑的... 我好像也是宅男一族厚....其實感情這種事真的是說不準的.... 天想到.....

判斷捲軸的位置

判斷捲軸的位置

當捲軸往下移動時,判段目前移動到哪個位置... Javascript部份 $(function(){...

Mysql 查詢時間區間是否包含特定日期

Mysql 查詢時間區間是否...

這其實只是一個簡單的問題,以前並不常用... 但這陣子寫的案子比較偏系統面,這樣的查詢問題變多了@@...

行事曆功能導入

行事曆功能導入

cc Innstory有行事曆囉! 我試著把Innstory當作是我的筆記本,將生活發生的故事紀錄下...

意外的客人

意外的客人

今晚,我的水族箱裡來了一位嬌客,【豆娘】... s 我想,牠應該是前幾天去水族店買黑殼蝦時偷渡來的....

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