AudioPlayer functionality #88
Conversation
wschaeferiii
added
some commits
Nov 3, 2016
wschaeferiii
closed this
Nov 14, 2016
coveralls
commented
Nov 14, 2016
wschaeferiii
reopened this
Nov 14, 2016
wschaeferiii
changed the title from
merge working code to AudioPlayer functionality
Nov 14, 2016
coveralls
commented
Nov 14, 2016
coveralls
commented
Nov 22, 2016
coveralls
commented
Nov 22, 2016
coveralls
commented
Nov 22, 2016
coveralls
commented
Nov 23, 2016
wschaeferiii
commented
Nov 23, 2016
|
Alright, sorry for all the failed merges / coverage issues. |
chrisdeely
commented
Dec 10, 2016
|
@wschaeferiii Nice work here, exactly what I needed. You mentioned being able to play "long form audio", but I noticed that Alexa will continually loop a single section of an HLS live playlist instead of retrieving new segments. Have you experienced this? Are there additional flags to be set and/or intents to handle refreshing a live stream? |
wschaeferiii
commented
Dec 11, 2016
|
@chrisdeely Have you tried listening on the request with type |
|
This looks good. It needs a README and CHANGELOG update, please. |
dblock
referenced
this pull request
Dec 16, 2016
Closed
How do you add a context object to the request to enable audioplayer? #81
|
@wschaeferiii Thank you for working on this! AudioPlayer interface is really useful! What about adding a method like I imagine the code would be similar to |
|
@fremail I think that would be better. Want to try an alternate implementation? |
fremail
referenced
this pull request
Dec 19, 2016
Closed
Error when uploading alexa-app to aws lamba #78
|
@wschaeferiii Using code from your branch I got an error. I have an app uploaded to Lambda. The error is caused on getting
I logged the
Though I think code from master has the same error. |
|
It seems the problem is in this:
|
fremail
referenced
this pull request
Dec 19, 2016
Merged
Fix "Cannot read property 'new' of undefined" init error #91
fremail
referenced
this pull request
Dec 23, 2016
Merged
AudioPlayer functionality (Continue PR #88) #92
dblock
added a commit
that referenced
this pull request
Dec 26, 2016
|
|
fremail + dblock |
cb4023f
|
|
Closed via matt-kruse#92, thanks @fremail for finishing this! |
wschaeferiii commentedNov 14, 2016
•
edited
Added Audioplayer functionality to the alexa-app library.
Simply write
response.audioPlayerPlay(url, token, playBehavior, offsetInMilliseconds, expectedPreviousToken)and you can play long form audio URL requests with a given url and token.playBehaviordefaults to"ENQUEUE_ALL", andoffsetInMillisecondsdefaults to 0, andexpectedPreviousTokendefaults toundefined.Also, added is
response.audioPlayerStop()andresponse.audioPlayerClearQueue(clearBehavior)whereclearBehaviordefaults to"CLEAR_ALL".The request's
contextobject is required in long form audio requests since the session object is not included once the player begins playing, but is copied from the request'ssessionobject.