Digital Inspiration Technology Blog
Digital Inspiration is an award-winning how-to tech blog around all things related to computer software, web applications, mobile and personal productivity.
Embed YouTube as an Audio Player
http://www.labnol.org/internet/youtube-audio-player/26740/
Nov 19th 2012, 09:03
How do you embed only the audio portion of a YouTube video in your web pages. →A popular option would be that you extract the audio portion of that YouTube video and then use the Google MP3 player to embed that MP3 fil into your website. This will work but YouTube is very likely to have a problem with your approach.The other approach could be CSS based where you embed the regular YouTube video player and then use the magic of CSS styles to hide the video inside the embedded player. See demo:
This internally renders the YouTube player using the IFRAME player and should therefore work on both desktop (Flash) and mobile (HTML5) browsers.Without boring you with the technical details, here's the little HTML code that turn the YouTube video player into an audio player. Simply replace the youtubeID with the ID of your YouTube video and you are done.
<div style="position:relative;width:267px;height:25px;overflow:hidden;">
<div style="position:absolute;top:-276px;left:-5px">
<iframe width="300" height="300"
src="https://www.youtube.com/embed/youtubeID?rel=0">
</iframe>
</div>
</div>
The YouTube logo inside then player, when clicked, will transport you to the original video hosted on the YouTube website. This story, Embed YouTube as an Audio Player, was originally published at Digital Inspiration on 19/11/2012 under Embed, YouTube, Internet.
You are receiving this email because you subscribed to this feed at http://blogtrottr.com
If you no longer wish to receive these emails, you can unsubscribe here:
http://blogtrottr.com/unsubscribe/crB/ZwM84m
Subscribe to:
Post Comments (Atom)
Newest Items :
-
▼
2012
(500)
-
▼
November
(156)
- FileHippo.com: FileZilla 3.6.0.2
- FileHippo.com: FrostWire 5.5.0
- FileHippo.com: Google Chrome 23.0.1271.95
- FileHippo.com: HTC Sync 3.3.17
- FileHippo.com: Debut Video Capture 1.69 Beta
- FileHippo.com: Steam (Package 2026/2026)
- FileHippo.com: Maxthon 3.5.2.1000
- FileHippo.com: iTunes 11.0 (32-bit)
- FileHippo.com: Comodo Dragon Internet Browser 23.1
- FileHippo.com: IsoBuster 3.1 Beta
- FileHippo.com: Thunderbird 18.0 Beta 1
- FileHippo.com: Wireshark 1.8.4 (32-bit)
- FileHippo.com: AIMP 3.20.1163
- FileHippo.com: Speccy 1.19.411
- FileHippo.com: Firefox 18.0 Beta 2
- FileHippo.com: Download Accelerator Plus 10.0.4.8
- FileHippo.com: UltraVNC 1.1.8.0
- FileHippo.com: Alkohol 52% 2.0.2.4713
- FileHippo.com: ACDSee 15.1.197
- FileHippo.com: Google Chrome 25.0.1337.0 Dev
- FileHippo.com: Alcohol 120% 2.0.2.4713
- FileHippo.com: Adobe Air 3.5.0.840 Beta
- FileHippo.com: Flash Player 11.5.502.131 Beta (Non...
- FileHippo.com: Macrium Reflect 5.1.5396
- FileHippo.com: Flash Player 11.5.502.131 Beta (IE)
- FileHippo.com: SeaMonkey 2.15 Beta 1
- FileHippo.com: Windows 7 Codecs 3.9.0
- FileHippo.com: Google Chrome 23.0.1271.91
- FileHippo.com: AntiVir Personal 13.0.0.2832
- FileHippo.com: K-Lite Codec Pack 9.55 (Full)
- FileHippo.com: K-Lite Mega Codec Pack 9.55
- FileHippo.com: AbiWord 2.9.4 Beta
- FileHippo.com: CCleaner 3.25.1872
- FileHippo.com: TopStyle 5.0.0.80
- FileHippo.com: PhraseExpress 9.0.146d
- FileHippo.com: Foobar2000 1.1.18
- FileHippo.com: PeaZip 4.8.0
- FileHippo.com: Google Drive 1.6.3837.2778
- FileHippo.com: Ares 2.1.9
- Digital Inspiration Technology Blog: Track the Bro...
- Digital Inspiration Technology Blog: Geotag your T...
- Digital Inspiration Technology Blog: Download the ...
- Digital Inspiration Technology Blog: Play any YouT...
- FileHippo.com: SpiderOak 4.8.0000
- FileHippo.com: PDFCreator 1.6.0
- FileHippo.com: Firefox 18.0 Beta 1
- FileHippo.com: Internet Download Manager 6.12 Buil...
- FileHippo.com: Ad-Aware Free Antivirus+ 10.4.43.4155
- FileHippo.com: Recuva 1.44.778
- FileHippo.com: uTorrent 3.2.2 Build 28595
- FileHippo.com: ICQ 8.0.5880
- FileHippo.com: SMPlayer 0.8.2
- FileHippo.com: Firefox 17.0
- FileHippo.com: Vista Codec Package 6.4.1
- FileHippo.com: Spybot Search & Destroy 2.0
- FileHippo.com: Thunderbird 17.0
- FileHippo.com: Opera 12.11
- FileHippo.com: SeaMonkey 2.14
- FileHippo.com: XBMC Media Center 12.0 Beta 1
- FileHippo.com: Rainlendar 2.11 Beta 126
- FileHippo.com: SUPER v2012 build 54
- FileHippo.com: Notepad++ 6.2.2
- Digital Inspiration Technology Blog: Run the iOS S...
- Digital Inspiration Technology Blog: SEO Tip for B...
- FileHippo.com: Fences 2.01
- FileHippo.com: ToDoList 6.5
- FileHippo.com: Hamachi 2.1.0.274
- FileHippo.com: SkyDrive Build 17.0.2003.1112
- FileHippo.com: Dropbox 1.6.0
- FileHippo.com: DivX Play 9.0.0
- FileHippo.com: AIMP 3.20.1155
- FileHippo.com: Wuala (Colmar)
- FileHippo.com: Gladinet Cloud Desktop 4.0.982
- Digital Inspiration Technology Blog: Embed YouTube...
- FileHippo.com: Flash Player 11.5.502.118 Beta (IE)
- FileHippo.com: Foxit Reader 5.4.4.1023
- FileHippo.com: K-Lite Mega Codec Pack 9.50
- FileHippo.com: Comodo Dragon Internet Browser 23.0
- FileHippo.com: Adobe Air 3.5.0.690 Beta
- FileHippo.com: Flash Player 11.5.502.118 Beta (Non...
- FileHippo.com: phpMyAdmin 3.5.4
- FileHippo.com: LibreOffice 3.6.4 RC 1
- FileHippo.com: K-Lite Codec Pack 9.50 (Full)
- FileHippo.com: Skype 6.0.0.126
- FileHippo.com: AxCrypt 1.7.2976.0
- FileHippo.com: Foobar2000 1.1.17
- FileHippo.com: Google Chrome 24.0.1312.14 Beta
- FileHippo.com: Thunderbird 17.0 Beta 3
- FileHippo.com: MediaMonkey 4.0.7.1511
- FileHippo.com: ZoneAlarm Free 11.0.000.018
- FileHippo.com: SeaMonkey 2.14 Beta 5
- FileHippo.com: AntiVir Personal 13.0.0.2761
- FileHippo.com: FlashGet 3.7.0.1218
- FileHippo.com: Windows 7 Codecs 3.8.7
- FileHippo.com: Firefox 17.0 Beta 6
- FileHippo.com: FastPictureViewer 1.9 Build 278 (32...
- Digital Inspiration Technology Blog: Google+ Shows...
- FileHippo.com: Internet Download Manager 6.12 Buil...
- FileHippo.com: Google Chrome 25.0.1323.1 Dev
- FileHippo.com: FileZilla 3.6.0
-
▼
November
(156)
0 comments:
Post a Comment