Skip to content
Peter Gusev edited this page May 2, 2015 · 1 revision

Description

This component can be used to stream video from Youtube identified by its' youtube URL (aka service URL).

youtube component

Requirements

Interface

Inputs

  • serviceUrl (DAT) - DAT Text input which contains service URL of Youtube video.
  • pause (CHOP) - CHOP input; if value gets greater than 0.5, video playback is paused.
  • loop (CHOP) - CHOP input; if value gets greater than 0.5, whenever video playback is over, it starts again.
  • seek (CHOP) - CHOP input; the value specifies seeking position in the video on a scale from 0 to 1.
  • switchOnCue (CHOP) - CHOP input; if the value is below or equal 0.5, new video will start to play only after it'll be pre-buffered (so called "seamless video switching"); otherwise - video switching is triggered by switchCue input.
  • switchCue (CHOP) - CHOP input; active only when switchOnCue is enabled - whenever value of this input changes, pre-buffered video starts to play; switchCue can be triggered in advance (i.e. while video is still pre-buffering), in this case, new video will start to play automatically as soon as pre-buffering is over.

Outputs

  • info - contains useful status information in a DAT Table. Table has two columns, the first column defines indicator name, second column defines indicator value. Besides YouTubeTOP's output, table contains following rows:

Implementation

This components combines Video URL Parser Component, YoutubeTOP Library and some default TouchDesigner nodes in order to provide simple interface to a user. An example of how this component might be used together with Channel Videos Fetcher Component, can be found in sample1.toe file:

youtube sample

Clone this wiki locally