Difference between revisions of "Html Audio"

From KOP KB
Jump to: navigation, search
Line 7: Line 7:
 
Windows media Player
 
Windows media Player
 
<syntaxhighlight lang="html4strict">
 
<syntaxhighlight lang="html4strict">
<object id="MediaPlayer1" width="690" height="500" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft&reg; Windows&reg; Media Player components..." type="application/x-oleobject"> <param name="FileName" value="&lt;%= http://domain.com/audio.mp3() %&gt;"></param> <param name="AutoStart" value="True"></param> <param name="DefaultFrame" value="mainFrame"></param> <param name="ShowStatusBar" value="0"></param> <param name="ShowPositionControls" value="0"></param> <param name="showcontrols" value="0"></param> <param name="ShowAudioControls" value="0"></param> <param name="ShowTracker" value="0"></param> <param name="EnablePositionControls" value="0"></param>  
+
<object id="MediaPlayer1" width="690" height="500" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft&reg; Windows&reg; Media Player components..." type="application/x-oleobject">  
  <!-- BEGIN PLUG-IN HTML FOR FIREFOX--> <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="&lt;%= http://domain.com/audio.mp3() %&gt;" align="middle" width="600" height="500" defaultframe="rightFrame" id="MediaPlayer2" /></object>
+
<param name="FileName" value="&lt;%= http://domain.com/audio.mp3() %&gt;"></param>  
 +
<param name="AutoStart" value="True"></param> <param name="DefaultFrame" value="mainFrame"></param>  
 +
<param name="ShowStatusBar" value="0"></param> <param name="ShowPositionControls" value="0"></param>  
 +
<param name="showcontrols" value="0"></param> <param name="ShowAudioControls" value="0"></param>  
 +
<param name="ShowTracker" value="0"></param> <param name="EnablePositionControls" value="0"></param>  
 +
  <!-- BEGIN PLUG-IN HTML FOR FIREFOX-->  
 +
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="&lt;%= http://domain.com/audio.mp3() %&gt;" align="middle" width="600" height="500" defaultframe="rightFrame" id="MediaPlayer2" />
 +
</object>
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 14: Line 21:
  
 
<syntaxhighlight lang="html4strict">
 
<syntaxhighlight lang="html4strict">
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" height="240" codebase="http://www.apple.com/qtactivex/qtplugin.cab"><param name="src" value=" http://domain.com/audio.mp3"></param><param name="autoplay" value="true"></param><param name="controller" value="false"></param><param name="loop" value="false"></param><embed src="http://domain.com/audio.mp3" width="320" height="240" autoplay="true" controller="false" loop="false" bgcolor="#000000" pluginspage="http://www.apple.com/quicktime/download/" /></object>
+
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" height="240" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
 +
<param name="src" value=" http://domain.com/audio.mp3"></param>
 +
<param name="autoplay" value="true"></param><param name="controller" value="false"></param>
 +
<param name="loop" value="false"></param>
 +
<embed src="http://domain.com/audio.mp3" width="320" height="240" autoplay="true" controller="false" loop="false" bgcolor="#000000" pluginspage="http://www.apple.com/quicktime/download/" />
 +
</object>
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 18:39, 4 September 2014

Guide to adding audio

Upload the audio file via ftp

Log into builder and add the following code changing the text http://domain.com/audio.mp3 to the address of the audio file

Windows media Player

<object id="MediaPlayer1" width="690" height="500" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft&reg; Windows&reg; Media Player components..." type="application/x-oleobject"> 
<param name="FileName" value="&lt;%= http://domain.com/audio.mp3() %&gt;"></param> 
<param name="AutoStart" value="True"></param> <param name="DefaultFrame" value="mainFrame"></param> 
<param name="ShowStatusBar" value="0"></param> <param name="ShowPositionControls" value="0"></param> 
<param name="showcontrols" value="0"></param> <param name="ShowAudioControls" value="0"></param> 
<param name="ShowTracker" value="0"></param> <param name="EnablePositionControls" value="0"></param> 
 <!-- BEGIN PLUG-IN HTML FOR FIREFOX--> 
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="&lt;%= http://domain.com/audio.mp3() %&gt;" align="middle" width="600" height="500" defaultframe="rightFrame" id="MediaPlayer2" />
</object>

Quicktime

<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" height="240" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value=" http://domain.com/audio.mp3"></param>
<param name="autoplay" value="true"></param><param name="controller" value="false"></param>
<param name="loop" value="false"></param>
<embed src="http://domain.com/audio.mp3" width="320" height="240" autoplay="true" controller="false" loop="false" bgcolor="#000000" pluginspage="http://www.apple.com/quicktime/download/" />
</object>