stashapp / stash

An organizer for your porn, written in Go. Documentation: https://docs.stashapp.cc
https://stashapp.cc/
GNU Affero General Public License v3.0
8.82k stars 780 forks source link

[Feature] Theme Music #413

Open GernBlanston12 opened 4 years ago

GernBlanston12 commented 4 years ago

No, I'm serious. You know how in Plex, when you browse to a given TV series, it shows the banner/background image for that series, and plays the theme music in the background? Would love it if you could link either a song or an interview .mp3 to play when browsing a given Performer's page.

UncleRoger33 commented 2 years ago

(Just an idea and i don't know if this is doable or not)

Is it possible to embed a piece of "HTML5 Audio" code into Performers.tsx?

<!-- audio attributes can be changed -->
 <audio controls autoplay loop>
  <source src="mp3folder/model name.ogg" type="audio/ogg">
  <source src="mp3folder/model name.mp3" type="audio/mpeg">
  <source src="mp3folder/model name.wav" type="audio/wav">
Your browser does not support the audio element.
</audio> 

https://www.w3schools.com/tags/tag_audio.asp

I made a quick & dirty mockup here with the loop attribute (ignore the loading icon, just hit the play button) --> https://uncleroger33.github.io/stash_music_test/index.html


If this is possible,

read_from_stashDB_performers