關閉導覽列 Close Menu
數位文創
English
吳統雄
數位美學
電子書
數位視覺
優化網站
微電影
數位文創管理
大學青年網誌
研究目錄
教學課程頁
討論區目錄
站務與協助
☰
More
社群地圖
社群新聞
│吳統雄
履歷
研究
教學
服務
榮譽
│社科
第1類知識
第2類知識
第3類知識
研究方法
統計/多變項分析
投票行為與選舉預測
53237 選民結構
人類取用行為新典範
取用行為國際研究團隊
│資管
管理學‧經濟學
貨幣主義
數位貨幣‧投資行為
資訊系統開發
電子商務
網路教育
數位電視
產學合作
就業進修‧甄選必勝
│文創
數位美學/數位文創導論
數位出版/電子書
視覺設計
優化網站
數位視訊/微電影
數位文創管理
大學青年‧網路雜誌
│電音
統雄 數位音樂作品選
我,被禁唱的民歌手
數位音樂創作教學
統雄的音樂知識美學
歡迎聽歌.點歌.下載樂譜
│人文
公共評論
法律評論
社會評論
教育文化傳媒評論
科技科普評論
美語樂學
文學創作
萬象現代(NBA)
資訊社會
幽默人生
統雄樂水
Web Multimedia 網站 多媒體設計

Web Audio and Web Radio Design
網路音訊與網路收音機

The origin of multimedia was slide show. As the IT development, it includes text, image, music, animation, video and interactivity.

網路多媒體除了靜態的文字、圖像之外,還包括動態的影音應用:動畫、視訊、數位音樂、與網路互動-即網路資料庫應用。數位音樂的播放,又有背景式與外掛收音機式。可使用播放清單,製作編排影音節目。網路收音機的應用,則牽涉與瀏覽器、媒體播放器(網路收音機圖示)的搭配。


網路音訊與網路收音機應用

網路音訊通常以背景音樂,或網路收音機播放。我不建議設背景音樂,而應設計網路收音機,由使用者控制。

網路收音機不是背景音樂,因為使用者無法控制背景音樂,如果不聽,只能關硬體喇叭,而關硬體喇叭不是正格的使用網路音訊的方法。

當前網站設計中有網路收音機的相對較少,一則打字、貼圖容易,但各網站能夠自製音樂的很少;二則網路收音機的程式設計較繁複,在YouTube 興起後,各網站的影音物件,經常直接抓YouTube 嵌入程式,即使只有音樂,也佔用一個沒作用的大螢幕。

網路收音機位置

因為網路收音機的圖示相對較少見,有些使用者沒有用過,不知道在那裡,甚至發生「視而不見」的現象。

網路收音機的位置,通常在首頁右上。

網路收音機位置


Html5 Coding of Web Radio

使用Html5 <audio>設計網路收音機

 

5 大瀏覽器共用程式

<audio style="width:240px" controls>
<source src="../Music/Going Away-Dm-Voice.mp3" type="audio/mpeg">
<source src="../Music/Going Away-Dm-Voice.wav" type="audio/wav">
<source src="../Music/Going Away-Dm-Voice.ogg" type="audio/ogg">
Your browser does not support the audio element. 你的瀏覽器不支援 Html5 音訊。
</audio>

<audio>標籤

<audio></audio>音訊設定。

controls

設定出現收音機。

style

以 css 設計收音機形式,此為寬 240px。

設計網路收音機注意:只能設定寬度,不宜設定高度;高度為各瀏覽器預設值,如果設定高度,若低於預設值,收音機會消失不見,如少於 40px,則 Firefox 的收音機會消失;若高於預設值,只會增加收音機的上下空白。

source

音訊位址。

建議將音樂集中放在/Music資料夾中。

設計網路收音機注意:IE 只能使用絕對位址;亦即,如果使用相對位址,必須上傳伺服器後,才能夠播放

type

指定音訊格式,譬如:

type="audio/mpeg" 是一個MIME類型,type="audio/mpeg"  表示類型為 audio:子類別型為: mpeg,指定音訊格式為 mp3。

如果音訊格式只有1種,則僅須列1個<source>,省略另外2個。

如果音訊格式3種都有,則會以順序優先播放。

autoplay

自動播放,通常只用在首頁,所以本例沒有使用。

如果要使用,就加在 controls 之後。

如果一頁有2個以上收音機,絕不能使用,避免相互干擾。

代替出現文字

如果使用者的瀏覽器不支援 Html5 音訊,就會出現以下代替文字:

「Your browser does not support the audio element. 你的瀏覽器不支援 Html5 音訊。」

設計結果

Your browser does not support the audio element.

Html5 <audio>進階設計

自動播放

如果希望出現網頁時,自動播放「1次」,則加 autoplay 屬性如下。

<audio style="width:240px" controls autoplay>
<source src="../Music/Going Away-Dm-Voice.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>

其他可用屬性

accesskey - this specifies a keyboard shortcut for a given element
class - this specifies a classname for a given element, to be used in conjunction with a style sheet
contenteditable - specifies whether a user is allowed to edit the content
contextmenu - specifies the context menu for a given element
dir - specifies the direction of the text for content in a given element
draggable - specifies if a user is allowed to drag a given element
dropzone - specifies the event that occurs when an item or data is dragged and dropped into a given element
hidden - specifies if a given element is hidden or not
id - specifies a unique identification for a given element
lang - specifies a language code for the content in a given element
spellcheck - specifies if a specific element will need to be subjected to a spelling and grammar check
style - defines an inline style for a specific element
tabindex - specifies the tab order of a specific element
title - specifies a title for a specific element

自訂播放器自訂播放器

自訂播放器的程式設計如下:

<audio id="player" src="../Music/Going Away-Dm-Voice.mp3"></audio>
<div>
<button onclick="document.getElementById('player').play()">Play</button>
<button onclick="document.getElementById('player').pause()">Pause</button>
<button onclick="document.getElementById('player').volume += 0.1">Vol+ </button>
<button onclick="document.getElementById('player').volume -= 0.1">Vol- </button>
</div>

結果顯示如下:


Html5 <audio>限制

Html5 <audio>雖然好用,但當前只支援 3 種音訊格式:MP3, Wav, Ogg。

且除了MP3外,其他2種格式,5 大瀏覽器不一定全部支援。

所以,若要播放當前所有的音訊格式,必須考慮改用各 html 通用的<embed>。

網路收音機應用右鍵下載練習示範曲 Going Away-Dm-Voice.mp3
網路收音機應用選擇更多免費音樂 

Background Audio 背景音樂設計

Playlist 播放清單設計

Special Topics in Digital Music Zone 數位音樂特區

We have a specific part to discuss audio, music and MIDI.

回頁首 Up to page head 至相關主題 Go to related pages
上一頁 Back to previous page 回頁首 Up to page head 下一頁 Go to nex page
請點這裡看所有留言分類 Please click here to view categories of comments
同類別內相關主題

上層主題
Web: 什麼是Web?Web虛擬世界的實體環境與虛擬環境 Web: Fundamentals
IIS: 什麼是 IIS?網站部署與IIS基礎應用 IIS: Fundamentals
Web的設計與管理模式 Web Design and Management Models
網路內容的製作與呈現類型 Internet Contents Presentation Types
Web Design Tools 網站開發工具
How to Expression Web/SharePoint Designer 微軟網站開發軟體應用快訣與其機巧
A Quick Canon for Expression Web 網站設計:Expression Web 簡捷建站功法
A Quick Canon for SharePoint 網站設計:SharePoint 簡捷建站功法
How to Html 超文件標註語言的結構、功能、應用快訣與其機巧
網頁語言 HTML5 簡介 HTML5: An Introduction
Web Analysis Framework and Its Formation Elements 網站/網群創作分析架構與建構元素
Web Design: Community Structure 網群結構
Website Structure_Navigation Design/ 網站虛擬結構:Extension Web 導覽設計
Website Structure_Navigation Design/ 網站虛擬結構:SharePoint 導覽設計
Web Design: Website Structure_Folders Design/網站實體結構:資料夾設計
Basics and Borders Method of Web Page Layout 網頁平面設計基礎與邊框法
Table Method of Web Page Layout 網頁平面設計表格法
Frames Method of Web Page Layout 網頁平面設計框架法
CSS Method of Web Page Layout 網頁平面設計CSS法
Web Design: Context- Presentation 意涵-文字視覺設計:字碼‧字型‧字體與字的性格
Web Design: Context- Presentation 意涵-文字視覺設計:字級‧字大小‧字重要性
Web Design: Context- Presentation 意涵-文字視覺設計:其他字特徵的呈現與配樣式
Web Design: Context- CSS 網站/網頁設計:意涵/文字-什麼是CSS
Web Design: Context- CSS Practice 網站/網頁設計:意涵/文字-CSS 實作
CSS Practice Advanced 層疊樣式表 CSS 進階實作_網站/網頁設計:意涵/文字
Web Design: Theme 網站布景主題設計
布景主題個人化 Personalized Theme
Web Design: Blocks- Pictures 網站/網頁設計:圖文框-圖片/影象處理
Web Design: Blocks- Tables 網站/網頁設計:圖文框-表格多元應用
Web Design: Blocks- Tables 網站/網頁設計:圖文框-表格與邊框設計
Web Design: Blocks- Tables 網站/網頁設計:圖文框-表格進階應用
Web Design: Blocks- Objects 網站/網頁設計:圖文框-非圖表物件
Webpage Layers Design 圖文層設計‧網頁圖層應用
Web Design: Automations-Links 網站/網頁設計:自動化與互動-超連結與導覽
Various Hyperlinks_Automations and Interactivity 各種超連結_自動化與互動
Navigation Bar Design 導覽列設計/微軟網路機器人 Webbot 法
Navigation Bar Design 導覽列設計/互動式按鈕設計法
Navigation Bar Design 導覽列設計/自訂 Java 法
Navigation Bar Design 導覽列設計/Html5 CSS 法
Navigation Bar Design 導覽列設計/下拉選單與樹狀導覽法
Navigation Bar Design 導覽列設計/雙導覽列_多導覽列法
Navigation Bar Design 導覽列設計/固定位置導覽列法
Information Map Design_Web Design 資訊地圖設計
Web Design: Automations-Webbot 網站/網頁設計:自動化與互動-網站機器人
Web Design: Automations- Advanced 網站/網頁設計:自動化與互動-雲端元件
Web Design: Multimedia 網站/網頁設計:多媒體影音應用
Web Design: Multimedia 網站/網頁設計:網路音訊與網路收音機設計
Web Design: Multimedia 網站/網頁設計:嵌入影音播放器標籤
網頁內嵌多媒體當機‧整體優解 QuickTime Plug-ins 7.7.4 has crashed
Web Design: Multimedia 網站/網頁設計:播放清單檔設計
網頁視訊與媒體播放器
在網頁插入微軟視窗媒體播放器
Insert Adobe Flash Player 插入Adobe Flash 播放器
Embed YouTube Player and iframe Tag 嵌入YouTube播放器與遠端影音之標籤
HTML5 Video: A Morning Glare Battlefield/ HTML5 媒體播放器:旭光戰場
Video and Media Player 播放器進階與視訊小工具
Web Design: Dynamic Templates 網站動態範本設計
Web Design: Dynamic Templates 網站動態範本應用
目錄管理與遠端編輯


內容網站:提供與分享各種知識、資訊、作品。互動群組:社員可以討論、展示、交流、企畫、分工、管理、投票決策。合作群組:Web2.0的民主自治精神,社員可以參與決定群組的內容與表現形式。

吳統雄的音樂-Sean TX Wu's Music  笑話中學美語-Humor and American English Learning   私人來信-Write a private mail to Sean TX Wu  留言與討論 Leave Comments/ Forum 吳統雄的相簿-Sean TX Wu's Album

只在「統雄社群」內查詢以下主題 Search in TXCommunity

統雄網群的Google排行本站Google排行榜‧全球冠軍