alexa-samples / skill-sample-nodejs-audio-player

An Alexa Skill Sample showing how to play long form audio in 3P-skills
Other
470 stars 319 forks source link

Adding additional streams to template #133

Closed PMR1158 closed 1 year ago

PMR1158 commented 5 years ago

Was hoping someone could offer some guidance on how to add additional streams to the template. Unfortunately, I don't know much about code but I'm trying to learn. I tried adding more links to the audio assets list but apparently it's not that simple. I can change the two podcast URL's to mp3's I have stored in an S3 bucket and they play just fine. But I can't figure out how to increase the number of streams the skill will play beyond two. I think it's because the code won't recognize additional streams until tokens have been assigned but that's just a guess and if that is the problem, I'm not sure how it's done. Thanks in advance for any guidance you're willing to offer!

armonnaeini commented 5 years ago

Hi, this got closed, but what is your solution? I am just now trying to learn how to develop skills, and I am trying to use multiple audio files that are stored on a server.

PMR1158 commented 5 years ago

It's been a while but I believe the solution was to add all the new stream url's to the lambda/src/constants.js file BEFORE initially deploying the skill. That way when the DynamoDB table is first created upon skill deployment it sets up the play order list with the right number of tokens which in my case was 12. DynamoDB

aszk commented 1 year ago

Please refer https://github.com/alexa-samples/skill-sample-nodejs-multistream-audio-player for multiple stream.