Search Bar in amplitudejs player


How to add a search bar to search for a file name of the music in amplitudejs


Hi @Jk ,

You’d have to get the current config of songs with Amplitude.getSongs(). You could then run a search on the fields returned and hide the irrelevant songs in your display.

Hope that helps!

Can you please kindly share me a code for it? I want to do the following

  1. make the player as response
  2. add a search bar to search for the file name
  3. add sort of the columns - serial number, title or by minutes etc
  4. add a notes field and a year or date field as well.