Skip to content
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

fix: Simulate a device that supports video #37

Merged
merged 3 commits into from Feb 27, 2023
Merged

Conversation

clara-jr
Copy link
Contributor

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:

@clara-jr clara-jr changed the title Simulate a device that supports video fix: Simulate a device that supports video Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants