Started working on custom track player

This commit is contained in:
2018-03-11 13:03:13 +01:00
parent ecea644b9d
commit 26703c467a
4 changed files with 11 additions and 3 deletions

View File

@ -16,7 +16,7 @@ component Track(track *arn.SoundTrack, user *arn.User)
if user != nil && media.Service == "Youtube" && track.File != ""
.buttons
button.action(data-action="playAudio", data-trigger="click", data-src="/audio/" + track.File)
button.action(data-action="playAudio", data-trigger="click", data-audio-src="/audio/" + track.File)
Icon("play")
span Play in background

View File

@ -17,6 +17,11 @@
iframe
width 100%
.soundtrack-image
object-fit cover
width 100%
height 200px
.sound-track-footer
text-align center
margin-bottom 1rem