简体   繁体   中英

how to get data from an mp3 file and put it on html automatically?

Does anyone know how to get specific data from an mp3 file and also automatically putting it in HTML ?

For example this data:

在此处输入图像描述

And let's say that I want all that data to be placed in a HTML table like this:

<table class="pl5 lh1-4"><tr>
    <td>Artist/Band:</td>
    <td>PLACEHOLDER</td>
  </tr><tr>
    <td>Album:</td>
    <td>PLACEHOLDER</td>
  </tr><tr>
    <td>Gerne:</td>
    <td>PLACEHOLDER</td>
  </tr><tr>
    <td>Duration:</td>
    <td>PLACEHOLDER</td>
  </tr><tr>
    <td>Release date:</td>
    <td>PLACEHOLDER</td>
  </tr><tr>
    <td>Size:</td>
    <td>PLACEHOLDER</td>
  </tr></table>
<table class="pl5 lh1-4"><tr><td>
 1. PLACEHOLDER<br>
 2. PLACEHOLDER<br>
 3. PLACEHOLDER<br>
 4. PLACEHOLDER<br>
</td></tr></table>

https://github.com/aadsm/jsmediatags

I found this library, never tried it myself so you have to thinker with it

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM