K
K
KiNDER2013-04-15 18:56:23
HTML
KiNDER, 2013-04-15 18:56:23

Playing an amr file on a website

Hello colleagues.

Task . On the site, it is necessary to give the user the opportunity to play two or more amr files on one page .

Digging on the Internet. Found this option. But this option works adequately only in IE.

<OBJECT id='mediaPlayer' width="250" height="250" 
      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 Windows Media Player components...' type='application/x-oleobject'>
      <param name='fileName' value="0cda61961a7e7a0dd0994046ddbdfc92.amr">
      <param name='animationatStart' value='true'>
      <param name='transparentatStart' value='true'>
      <param name='autoStart' value="true">
      <param name='showControls' value="true">
      <param name='loop' value="true">
      <EMBED type='application/x-mplayer2'
        pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
        id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1' 
        bgcolor='darkblue' showcontrols="true" showtracker='-1' 
        showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="250" height="250"
        src="0cda61961a7e7a0dd0994046ddbdfc92.amr" autostart="false" designtimesp='5311' loop="true">
      </EMBED>
</OBJECT>

Question : please advise a solution for cross-browser playback of an amr file on the site.

Thank you for your attention.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
egorinsk, 2013-04-15
@egorinsk

Convert the file to mp3 on the server (although in new browsers it is possible on the client, but slowly). Your option is not a fact that it will work everywhere, it depends on codecs and OS.

K
KiNDER, 2013-04-15
@KiNDER

Found what I need:
Here: www.w3schools.com/html/html_object.asp I
used this code:

<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="256" width="320"> 
  <param name="src" value="0cda61961a7e7a0dd0994046ddbdfc92.amr">
  <param name="autoplay" value="false">
  <param name="type" value="video/quicktime" height="16" width="105">
  <embed src="0cda61961a7e7a0dd0994046ddbdfc92.amr" height="16" width="105" autoplay="false" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed> 
</object>

You need QuickTime to work: www.apple.com/quicktime/download/
You can read about additional parameters here: support.apple.com/kb/ta26486#volume
Looks nice!

W
WEBIVAN, 2013-04-15
@WEBIVAN

IMHO, for cross-platform / cross-browser only recode.
If the minimum size is important, you can play with a flash, in particular, if you assume that amr has a voice (because it is primarily intended for voice), then you can encode in speex, which is also intended for voice and is played by flash player 10+

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question