alexa / alexa-skills-kit-sdk-for-nodejs

The Alexa Skills Kit SDK for Node.js helps you get a skill up and running quickly, letting you focus on skill logic instead of boilerplate code.
Apache License 2.0
3.12k stars 736 forks source link

playVideo fn in responseBuilder.js does not react to metadata presence #204

Closed dothework closed 6 years ago

dothework commented 6 years ago

https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/blob/master/lib/responseBuilder.js#L305

line 305 is currently > if (playVideoDirective.videoItem.metadata) {

it should be if (metadata) {

as it exists now it tests the object for a property that does not exist. it should, and I've tested this, test the param named metadata.

tianrenz commented 6 years ago

Hi, Thank you for pointing this out! This bug is addressed in the latest release 1.0.16. Please feel free to reopen this issue if problem persists

Regards