New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simulate a device that supports video #31
Comments
Happy to change that. Could somebody please verify this or link to docs explaining this? I want to make sure that this will always be true |
I can share these links:
in which the |
Sorry for the delay. Sounds reasonable. Would you be able to provide a PR for this? |
Sure! Here it is: |
Using the condition `.withInterfaces({ video: true }).build()` to build a request does not make the `handlerInput.requestEnvelope.context.Viewport.video` to be _truthy_ in order to simulate a device that does support video. It only changes the value of `handlerInput.requestEnvelope.context.System.device.supportedInterfaces.VideoApp`. The `Viewport.video` property represents an object including an array of `codecs` that contains the available technologies for playing video on the device. If it does not support playing videos, the `Viewport.video` property is not present. To simulate a device that does support playing video it should be enough to make that property exist (or be _truthy_). In this PR, this property has been set to contain an array with all the possible `codecs` that the output device could support. Here's the related issue: - #31
Using the condition
.withInterfaces({ video: true }).build()
to build a request does not set thehandlerInput.requestEnvelope.context.Viewport.video
totrue
in order to simulate a device that does support video. It only changes the value ofhandlerInput.requestEnvelope.context.System.device.supportedInterfaces.VideoApp
.Do you think it's possible to add something like this in the
RequestBuilder
?The text was updated successfully, but these errors were encountered: