SevenOutman / vue-aplayer

:cake: Easy-to-use music player for Vue 2.x
https://vue-aplayer.js.org
MIT License
1.32k stars 200 forks source link

Is it possible to retrieve source url only when user starts to play track? #103

Closed DTX-92 closed 6 years ago

DTX-92 commented 6 years ago

I have array of audios:

[
  {id: 1, 'Title1', 'Artist1'},
  {id: 2, 'Title2', 'Artist2'},
  {id: 3, 'Title3', 'Artist3'},
]

And i can only get temporary url by passing id to server. So can i use this plugin for these purposes?

SevenOutman commented 6 years ago

@DTX-92 Render <aplayer> after you've already got the urls, using v-if or any other approach.