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

Linux底下Apache啟動、停止、重啟指令

Linux底下Apache啟...

a5 如果apache安裝成為linux的服務的話,可以用以下命令操作: service httpd...

將照片加入簽名檔

將照片加入簽名檔

我始終相信,科技來自於人性... 而我的人性則是來自於墮性.... 開發 innstory.com ...

CSS Radio Button

CSS Radio Butt...

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

Recommended reading

Other stories happened at this address

鍾姓三嘗祠堂

鍾姓三嘗祠堂

chung 接下這個專案時....其實心裡有些感觸...... 隨著年齡越來越大....對於血緣的部...

地圖故事

地圖故事

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

現在這個時候最幸福

現在這個時候最幸福

幸福是什麼? 中樂透頭獎時.....或是功成名就時? 我很少過自己的生日....在家裡..因為跟家姊...

PHP數字轉國字...

PHP數字轉國字...

什麼鬼...客戶系統的需求竟然有一個數字要轉成國字.... 數字轉國字...數字轉國字...就是要把...

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

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

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

今晚,來盤鯊魚(炒)芹菜。

今晚,來盤鯊魚(炒)芹菜。

已經忘了從什麼時候開始會煮菜的... 我煮的菜,叫不出什麼響亮的名字、外表樸實、味道是傳承小時候家裡...

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