Mp3

Discussion in 'HTML & Website Design' started by ahmedsaid, Feb 24, 2014.

  1. #1
    I want this file at my site to be played by any visitor withou needing to install windows media player plugin on their explorer

    http://sma1.byethost11.com/telawat_show-7.html
     
    Solved! View solution.
    ahmedsaid, Feb 24, 2014 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,814
    Likes Received:
    4,535
    Best Answers:
    123
    Trophy Points:
    665
    #2
    You may need to convert it to a different format.

    What else have you tried?
     
    sarahk, Feb 24, 2014 IP
  3. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #3
    If you want to provide mp3 without your visitors needing plugins, you will need to use the html5 audio element. Older browsers won't support it. So you will need to have a fail-through method. See Mozilla Developer Network for usage examples.

    Here is a minimal test case:
    
    <!DOCTYPE HTML>
    
    <html>
    <head>
      <meta content="text/html; charset=utf-8"
      http-equiv="Content-Type">
    
      <title>Test Doc</title>
      <style type="text/css">
    /*<![CDATA[*/
    
      body {
      font: normal 100%/1.25 sans-serif;
      margin: 0;
      padding: 1.25em;
      }
    
      /*]]>*/
      </style>
    </head>
    
    <body>
      <h1>audio element test</h1>
    
      <p><audio controls
              loop
              src=
      "https://ia600805.us.archive.org/31/items/sma10_outlook_002_201402/002.mp3"></audio></p>
    </body>
    </html>
    Code (markup):
    cheers,

    gary
     
    kk5st, Feb 24, 2014 IP
  4. skible

    skible Member

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    41
    #4
    You could try to implement this: http://playlist.me/w/i.php should be cross browsing compitable and easy to install.
     
    skible, Feb 25, 2014 IP
  5. ahmedsaid

    ahmedsaid Greenhorn

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #5
    Hello skible , kk5st , sarahk

    Thank you for your answers,
    i really appreciate it

    the problem is
    im not creating html pages by my self

    im using a script which create it for me

    i mean

    i press at the script admin page > add new mp3 file > then i select the path for it > done > it creates a page as in the link up

    i think i need to edit a code in the script files so that it creates new pages with html5 without media player plugin

    there is a link for the script
    if any one could search in it and tell me how

    i would really appreciate it..

    and also if you didn't, thank you for trying to help me skible , kk5st , sarahk
     
    ahmedsaid, Feb 25, 2014 IP
  6. John Michael

    John Michael Member

    Messages:
    154
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #6
    You need to add html5 new features audio . You can learn more about this feature here http://www.w3schools.com/html/html5_audio.asp. I also learn from this website. You can use video control also.
     
    John Michael, Feb 25, 2014 IP
  7. ahmedsaid

    ahmedsaid Greenhorn

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #7
    im not creating html pages by my self

    im using a script which create it for me

    i mean

    i press at the script admin page > add new mp3 file > then i select the path for it > done > it creates a page as in the link up

    i think i need to edit a code in the script files so that it creates new pages with html5 without media player plugin

    there is a link for the script
    http://sma1.byethost11.com/script.zip
    if any one could search in it and tell me how

    i would really appreciate it..
     
    ahmedsaid, Feb 26, 2014 IP
  8. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #8
    Why are you concerned about using plugins? As far as I know, all the modern browsers automagically point to a download site for any uninstalled plugin that is needed for a site's media content. This is basic stuff for the web.

    For all (present) practical purposes, there is no advantage to using the audio or video elements over plugins.

    Please tell us your reasons for this issue, because I'd rather not dig into someone else's code to suss out the best correction, nor provide that correction to someone who, due to ignorance of programming, may really screw things up.

    cheers,

    gary
     
    kk5st, Feb 26, 2014 IP
  9. ahmedsaid

    ahmedsaid Greenhorn

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #9
    Hello Gary
    Thank you for your answer

    i don't wan't windows media player plugin because

    1- it annoys the visitor that he need to install new plugin to listen the sound
    2- not every visitor would install the plugin to listen the sound
    3-in google chrome you need to download the plugin first then drag it to extensions manually and not all visitors would do this

    the script is open source code

    i would be really happy if you searched in the code and tell me how to change it

    i wish i could do it by my self but im not a programmer

    i think the change would be in the file named func_sound
     

    Attached Files:

    ahmedsaid, Feb 26, 2014 IP
  10. #10
    hi ahmedsaid,

    I did a quick look into the file. The file you are suggesting is not right. You should look into function.php line 564. Change this:
    <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="'.$width.'" height="'.$height.'" src="'.$url.'" autostart="true" designtimesp="5311" loop="true">
          </EMBED>
    Code (markup):
    if you change the "puluginpage=" with an other url it will work. You only need to find a x-mplayer2 which supports the embedding. Change the url and done.

    Besides,I, myself, am not really a fan of how the scripts have been made / sorted. But that's an other story...
     
    skible, Feb 27, 2014 IP
  11. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #11
    It is my experience that anyone who has listened to audio or wants to listen to audio has the plugins already installed. It is simply not an issue.

    As to point 2, perhaps they don't care to listen to the cantor chanting a two-hour liturgy.

    Re point 3, a red herring.

    Not using a plugin means that only the newest of browsers work. A very large number of people, especially those with older computers will not be able to listen at all. You are simply finding issues where none exist.

    Being open source does not imply and certainly does not guarantee clarity, especially as most people "programming" generic CMS scripts have no concept of separating logic from structure. Too, I have no way to test for a bug-free, robust fix. Further, it is my experience that those without coding skills can manage to find the most imaginative ways of screwing up the patch.
     
    kk5st, Feb 27, 2014 IP