Vielen Dank für deinen Besuch. Diese Seite ist nur in Englisch verfügbar.

Reference Video Skill Overview and Requirements

Alexa Video Multimodal Reference Software is a modular project for developing Alexa video skills on Echo Show devices. Video skills refer to Alexa skills that can play movies, television, or episodic content. Multimodal is a term for Echo Show devices which offer both voice and screen-based experiences. Setting up the reference project provides the fastest route to get started with developing Alexa video skills on Echo Show devices. Follow the guides under this section to install, build, deploy this reference video skill, and learn about how it works. In this way, you will be able to use the reference software as a basis for your own projects.

Alexa Video Multimodal Reference Software

The main components of a video skill include a lambda function, a web player, and a skill manifest. Similar to other Alexa skills, the lambda functionacts as the skill's backend. The web player acts as the skill's front end, and runs on an Echo Show device. It renders video as well as shows UI controls such as a play and a pause button. Similar to other Alexa skills, the video skill manifest is a JSON file that describes your skill.

This project contains a web player, a lambda, and, also, the Alexa Video Infrastructure CLI Tool.

The CLI tool automates the processes of creating and updating video skills using the reference web player and the lambda. Although you can build and manage your own web player and lambda without using the CLI tool, this process is highly recommended for users who want to quickly have a fully functional video skill.

Command-line Interface (CLI) Tool

The reference video skill is an open source project with various components. Most importantly, it includes the command-line interface (CLI) tool which runs on your macOS terminal or Windows PowerShell. The CLI tool uses AWS CloudFormation to provision a collection of AWS resources, so that you spend less time managing these resources, and more time focusing on developing your video skill. To get started, you have to manually prepare your Amazon developer accounts (AWS, Alexa and Login with Amazon services) for setting up a new video skill, and then use the CLI tool to input instances of the data related to your settings.

By using the CLI tool, most parts of the installation, build, and deploy processes of the reference video skill are automated, so you don't need to worry about setting up every resource and service. However, at this point, you might want to revisit this glossary to follow along.

Requirements

Before you proceed, your computer environment must have the following:

  • Node.js 10.x
  • npm (prebuilt in Node.js)
  • Python 2.7 or later (required by some installation packages)
  • Firefox

  • PowerShell (Windows) or terminal (macOS)


You also need access to the following:

Other Dependencies

Check your computer environment against the configurations listed here.

Windows users: Through an elevated PowerShell or CMD.exe (run as Administrator), you must install all the required tools and configurations using Microsoft windows-build-tools with this command:

npm install --global --production windows-build-tools

macOS users: You might need to install Xcode and the Xcode Command Line Tools by running xcode-select --install on a terminal.

CloudFormation Stack Structure

The CLI tool builds two stacks: the Artifact CloudFormation Stack and the Lambda CloudFormation Stack.

Reference video skill components and used services
Artifact CloudFormation Stack

It contains an S3 bucket that hosts the following:

  • Built lambda (as a zip file)
  • Sample video content
  • Built web player (as a website)

When the AWS Lambda is provisioned as part of the Lambda CloudFormation stack, its source code originates from the lambda zip file located in the S3 bucket.

Lambda CloudFormation Stack

This stack creates the AWS Lambda, AWS Cognito resources used for account linking, and DynamoDB tables used to store nextTokens for pagination and tracking video progress by supporting "continue watching" functionality. It also provisions various IAM roles to support the skill.

The video skill itself is created using public REST APIs outside of the CloudFormation stacks.

How it Works

AWS Lambda source code originates from the lambda zip file in the S3 bucket. The skill is created using publicly available REST APIs.

Next Step

To install the reference video skill, you must first set up your Alexa and AWS developer accounts.