Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 1.28 KB

README.md

File metadata and controls

14 lines (9 loc) · 1.28 KB

Switch Tube usage examples

Usage examples of the Switch Tube web service API and the Switch Tube JavaScript embed library.

Web service API

  • download-channel.py is a Python script that illustrates basic usage of the web service. It allows you to downloading all video from a given channel using an access token from your Switch Tube profile.
  • list-channels.py list channels you can contribute to.
  • upload.py allows you to upload a video to a channel you can contribute to.

JavaScript embed library

  • Add and control player shows how to use the embed library to add a video player inside an existing container element on your page, and how to control playback. This is the preferred way to use the embed library from your JavaScript code. You can also view a live demo of this example.
  • Control existing iframe uses the embed library to control playback for a video embedded using the HTML embed code from a Switch Tube video page. You can also view a live demo of this example.