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

判斷捲軸的位置

判斷捲軸的位置

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

PDO連接Mysql方式 MVC上應用

PDO連接Mysql方式 M...

pexelsphoto5 將連結資料庫的方式加入model function connect() {...

地圖故事

地圖故事

map 一切都從第一張畫布開始... Innstory裡原先已有寫故事的功能,接著我把故事裡頭的照片...

Recommended reading

Other stories happened at this address

喔熊又來了

喔熊又來了

face 好吧,我得承認大多數人都看不出來喔熊的身份是台灣黑熊.... 為此,我很慎重的給了牠【臉】...

你是不是像我就算受了冷漠,也不放棄自己想要的生活。

你是不是像我就算受了冷漠,也...

累了就該充電一下,聽首好歌... 好歌總能激勵人心。 不寫,就會就永遠寫不完......寫了,遲早有...

紙娃娃

紙娃娃

flower 紙娃娃其實是我給這個專案的名稱.... 因為做這功能時讓我想起來小時候看鄰居家小女孩玩...

馬來西亞-薩騎馬?

馬來西亞-薩騎馬?

想事情的時候,喜歡在嘴裡咬東西...餅乾、糖果。 但最近家裡缺糧...沒有補貨。剛好想到前些日子布萊...

蘑菇醬麵

蘑菇醬麵

據我所知...老婆大人在嫁給我之前是顯少進廚房的 上個星期天....老婆說想煮蘑菇醬麵 於是.......

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

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

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

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