T
T
teleomoon2013-12-11 22:22:03
Bookmarks
teleomoon, 2013-12-11 22:22:03

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

2 answer(s)
N
Nikolai Vasilchuk, 2013-12-12
@Anonym

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);

Demo jsfiddle.net/Anonym/235ck

T
teleomoon, 2013-12-12
@teleomoon

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 question

Ask a Question

731 491 924 answers to any question