INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Inserting an image on Track Info based on a metadata variable  (Read 2022 times)

mvandyke

  • World Citizen
  • ***
  • Posts: 157
Inserting an image on Track Info based on a metadata variable
« on: November 11, 2021, 07:34:40 am »

I've been working extensive on a modified Track Info plug in and have almost everything working but one item.

I'm trying to insert an image file based on the type of codec (flac, mp3, wav, aiff, etc.).  I can get the image to work properly but would like it to pull the image file (audio-flac.png,audio-mp3.png,audio-wav.png, audio-aiff.png) based on the metadata in the CODEC field or File Type field.

Here is the code that I'm using to hard code it in:    <td><img src="img/audio-flac.png" width="70" height="25" border="0"> </td>

I've tried <td><img src="img/audio-(codec).png" width="70" height="25" border="0"> </td>  but no sucess.  Additionally I've tried using TrackInfo_insert(Codec) but can't figure out a way to get it to include a file name.

Below is a sample of the first screen with hard coded data installed.  Additionally I've attached my index.html file (renamed to index.txt in order to post) for review.

Any help would be appreciated.   I couldn't have done this project with out English Tigers support and the extensive use of MCUilt's and Mike's (Mr.C's) assistance.

Thanks in advance for all of your help

Matt
Logged

mvandyke

  • World Citizen
  • ***
  • Posts: 157
Re: Inserting an image on Track Info based on a metadata variable
« Reply #1 on: November 12, 2021, 10:59:12 am »

I got it figured out - after much trial and error:

<div class="bitrate">
                  Track:   TrackInfo_Insert(Track #) of TrackInfo_Insert(Total Tracks #)  •
                  Duration: TRACKINFO_INSERT_DURATION   •
                  Bitrate:  TRACKINFO_INSERT_BITRATE     •   
                   <td><img src="TrackInfo_Insert(FILE TYPE).png" width="50" height="25" border="0"> </td>
                   <td><img src="TrackInfo_Insert(BIT DEPTH).png" width="50" height="25" border="0"> </td>
               </div>

The original picture that I attached did not show the other screens that are available - here are some additional pictures:

Thanks for the expertise on the forum.  I know a little but with help was able to create a great interface for me for audio music.
Logged
Pages: [1]   Go Up