What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

Play section of sound file?

giomach

New member
In a webpage I'm using the audio tag to play a sound file from a remote server. <audio controls autoplay><source src="https://www. ........ .mp3" type="audio/mpeg"></audio>

But in some cases I don't want to play the whole of the remote file, just a part of it. If the audio tag had start and end attributes, and the controls showed the data relevant to the chosen section, that would be perfect, but it seems it isn't possible.

What would be the best way to go about this?

It would be easy to capture the sound file and extract the bit I want to a local file, but I think the copyright will not allow this.
 
Back
Top