chest_play_video


Overview

The chest_play_video example is a Raya application that plays a YouTube video (a timer) on the robot’s chest display.

Execution

To execute the example, use the following command:

python3 chest_play_video/ --auto-run

This will start the video playback on the chest display.

Behavior

  • The application plays a YouTube video on the chest screen.

  • The user watches the video without interaction.

  • When the video ends, the chest component closes automatically.

  • If a high-level component is active on the chest, the video does not play, and an error message is logged.

Inputs

  • No user input is required to execute the script.

  • The application automatically plays the video upon execution.

Outputs

  • The chest screen displays the YouTube video.

  • The console logs messages indicating video playback status.

Example Output

When the script is running, the following output appears on the robot’s chest display:

Output displayed on the robot's chest screen

During execution, the output logs may resemble:

[INFO] [1743469067.542395115] [pyraya.chest_play_video]: Auto running the app
[WARNING] [1743469072.088123083] [pyraya.chest_play_video]: Playing video...
[WARNING] [1743469094.899983883] [pyraya.chest_play_video]: Video finished