From 999417328bde0e60cd59318fc1c18672356254ce Mon Sep 17 00:00:00 2001 From: William Lahti Date: Tue, 10 Jul 2018 08:47:56 -0700 Subject: Ability to programmatically control embeds (#776) * first stab at jschannel based player api * semicolon purge * more method-level docs; consolidate definitions * missing definitions * better match peertube's class conventions * styling for embed tester * basic docs * add `getVolume` * document the test-embed feature --- support/doc/api/embeds.md | 122 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 support/doc/api/embeds.md (limited to 'support/doc/api') diff --git a/support/doc/api/embeds.md b/support/doc/api/embeds.md new file mode 100644 index 000000000..3a35a539c --- /dev/null +++ b/support/doc/api/embeds.md @@ -0,0 +1,122 @@ +# PeerTube Embed API + +PeerTube lets you embed videos and programmatically control their playback. This documentation covers how to interact with the PeerTube Embed API. + +## Playground + +Any PeerTube embed URL (ie `https://my-instance.example.com/videos/embed/52a10666-3a18-4e73-93da-e8d3c12c305a`) can be viewed as an embedding playground which +allows you to test various aspects of PeerTube embeds. Simply replace `/embed` with `/test-embed` and visit the URL in a browser. +For instance, the playground URL for the above embed URL is `https://my-instance.example.com/videos/test-embed/52a10666-3a18-4e73-93da-e8d3c12c305a`. + +## Quick Start + +Given an existing PeerTube embed `