javascript - Play music file with Rails -
I want the user to give me a URL that ends with the MP3 extension and played in the I use scaffolding to create a new page for submitting a URL, and in the show page, I want this URL to run the associated media file: < pre> If this was a normal HMTL page, then I would use it: So I need something like this: Use this: show Is Page
& lt; P & gt; & Lt; Strong & gt; Music URL: & lt; / strong> & lt;% = @ profile_music.music_url% & gt; & Lt; / P & gt;
& amp; the lift; Embed SRC = "url.mp3" width = "360" height = "165" hidden = false AUTOSTART = true loop = "false" volume = "60" & gt;
& lt; Embed SRC = @ profile_music.music_url width = "360" height = "165" HID = false AUTOSTART = true loop = "false" volume = "60" & gt;
& lt; Embed SRC = "& lt;% = @ profile_music.music_url%> & gt; Width = "360" height = "165" hidden = false AUTOSTART = true loop = "false" volume = "60" & gt;
& lt;% = @ profile_music.music_url% & gt; will be interpreted by ARB with the actual content.
Comments
Post a Comment