i want to know please what is the easiest way to play just the audio of a youtube video in an html page.
Ive tried to take for example a link https://www.youtube.com/embed/fJ9rUzIMcZQ and to put it in some audio formats but i kinda got stucked and didnt really know what should i do.
For example i tried this format:
<audio controls>
<source src="https://www.youtube.com/embed/fJ9rUzIMcZQ" type="audio/ogg">
</audio>
Related
I need your help.
I want to put a link of the music into the audio tag and it seems like this:
<audio controls autoplay>
<source src="http://www.boxca.com/lctj4xdqkhjr/Evgeny_Grinko_-_Вальс_.mp3.html" type="audio/mpeg">
<source src="http://pressplayaudio.com/?artist=Evgeny-Grinko&track=Field.ogg" type="audio/ogg">
Your browser does not support the audio element.
</audio>
But, it doesn't work and I don't know what's the problem.
you're trying to link an html website with some audio player on it, instead of referencing real audio files. This wont work.
You need to provide a reference to a physical file that you host somewhere
I have a background video which plays offline as it's expected but it's not playing online.
this is the html code:
<video autoplay poster="vid/TD.jpg" id="bgVid" loop>
<source src="vid/TD.mp4" type="video/mp4">
</source>
</video>
this is the actual website itself if you want to see it so for your self.
Well, your markup looks correct, but the video is coming through as a 404. Double check your path to the video and the capitalization of the file name, too. Resolve that, and I bet your video starts working.
I am trying to embed a html5 audio tag in my web page here is the code.
<audio controls>
<source src="http://thearabiclab.com/wp-content/uploads/2015/07/arabic-word-meeting.ogg" type="audio/ogg">
<source src="http://thearabiclab.com/wp-content/uploads/2015/07/arabic-word-meeting.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
path of both the files mp3 and ogg are correct, the issue is when the page loads first time it will display the player correctly but suddenly it will transform into something like the image below.
https://www.dropbox.com/s/xkjrql4vzr3pkrh/Screenshot%202015-07-05%2015.12.56.png?dl=0
Please help to resolve this issue.
thanks
You mentioned code working fine for me..
What you can do to debug it first make a separate HTML file copy and paste the code, check if it working or not. It's looking sure... some conflict with your Js or jQuery.
I am using the audio element of html in my website. It is working fine, but when I pause the player and go to another page, it restart from the beginning which I do not want. How can I use the common control of audio player for the website? I am new in html multimedia operations, and can not figure this out.
Html code is as follows:
<audio controls>
<source src="lotus_feet.ogg" type="audio/ogg">
<source src="lotus_feet.mp3" type="audio/mpeg">
</audio>
Any ideas would be much appreciated.
Thanks in advance.
I am using html5 video tag to play a video file, i am using below code to play my videos,
<video src="../Videos/File1.mp4" type="video/mp4" class="video1" controls="controls">
<p>Your browser does not support the video.</p>
</video>
here, when i run this code in my Ipad, I am able to see the video playing, but i am unable to get the sound,
any help why the sound is not playing..
thanks in advance.