PlayYoutubeVideo

Description

Plays the specified Youtube video in a separate window above your app. For Android you must enable the Youtube Data API v3 in the Google Cloud Console for your app, and create an API key for it in the credentials section. You can create a key specifically for use with the Youtube API, or you can use an unrestricted key that can be used by multiple APIs. The videoID is the string that follows the ?v= part of a Youtube URL, e.g. "eLIgxYHCgWA". You can also specify a start time to start playing the video from part way through instead of starting from the beginning. The time is specified in seconds and accepts decimal values to represent fractions of a second.

On Windows and Mac this command will open the default browser to play the Youtube video. The developer key field is only required on Android.

Definition

PlayYoutubeVideo( developerKey, videoID, startTime )

Parameters