Answer the question
In order to leave comments, you need to log in
Is there any way to place text labels (bookmarks) inside an mp3 file and navigate to them using regular links?
Is there any way to place text labels (bookmarks) inside an mp3 file and navigate to them using regular links?
For example, in the file <file1.mp3> put the label <label1> at 00:45 and then follow the link: http://******.ru/file1.mp3#<label1>.
Thank you.
Answer the question
In order to leave comments, you need to log in
This can be implemented not in the file, but in the player.
Let 's look here .
var startTime = 45;
var audio = document.createElement('audio');
audio.preload = 'auto';
audio.autoplay = false;
audio.src = '/path/to/song.mp3'
document.body.appendChild(audio);
audio.addEventListener('canplaythrough', function() {
this.currentTime = startTime;
this.play();
}, false);
Thank you very much, Anonymous, I will definitely try it. By the way, if your professional exchange of remarks with Nc_Soft has come to something, then please let me know in a simple, understandable language. If there are any other ideas, I'll be happy to hear them.
Let me explain what I want to do. There are a number of recordings of lectures in audio and video formats (several hundred pieces). Entries are cut by academic hours, not thematically. There is a desire to create some kind of shell or page on the site, where the user would have the opportunity to read the lecture plan and click on the desired link to go directly to the desired fragment (usually located somewhere in the middle of the file). And ideally, do the same by searching for keywords and getting a choice of several links to go to.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question