Trogon.Cloud

For developers

Add Trogon.Cloud playback to your app

A short guide for the developer who builds your learning app or website. Your backend asks for a playback link; your app shows it. That's the whole integration.

How playback works

Four steps from a published video to a student watching

  1. Get an API keyThe account owner creates a key for a project in Studio. It's shown once; store it on your server.
  2. List videosYour server lists the project's published videos to show in your app's course pages.
  3. Ask for a linkWhen a student taps play, your server requests a short-lived playback link for that student and video.
  4. Show the playerYour app opens the link in a web view or iframe. The player handles quality, seeking and progress.

Playback links

One request per play

Create the link on your server so the API key never reaches the app. Pass your own student ID as viewer_ref to see analytics per student without sharing their personal details with us.

  • Short-lived and single-video: a link works for one video and expires.
  • Allowed domains: the player refuses to load on sites you haven't listed.
  • Keys stay private: stored only as a hash, and limited to one project.
Create a playback link
# From your server (never from the app itself)
POST https://play.trogon.cloud/api/v1/playback-tokens
Authorization: Bearer tv_live_••••••••
Content-Type: application/json

{
  "video": "vid_8f3k2m",
  "viewer_ref": "student-10482",
  "ttl_seconds": 3600
}

# 201 Created
{
  "embed_url": "https://play.trogon.cloud/embed/…",
  "token": "…",
  "expires_at": "2026-11-28T11:30:00Z"
}

Reference

API endpoints

Versioned under /api/v1 and authenticated with a project API key. Requests are rate limited per key.

MethodPathWhat it does
GET/api/v1/videosPublished videos in the key's project, paged and filterable by folder.
GET/api/v1/videos/{video}One video's title, duration, thumbnail and status.
POST/api/v1/playback-tokensA playback link for one video and one viewer. Body: video, viewer_ref, optional ttl_seconds.

Showing the player

The embed page works in an iframe on the web and in a WebView in Android, iOS and Flutter apps. It plays adaptive HLS, with native playback on Safari and iOS, and shows clear loading, error and expired states.

Upload through the API isn't part of the first release. Videos are uploaded in Studio.

Embed the player
<!-- On a web page -->
<iframe
  src="EMBED_URL_FROM_YOUR_SERVER"
  allow="autoplay; fullscreen; picture-in-picture"
  allowfullscreen
  style="width:100%;aspect-ratio:16/9;border:0">
</iframe>

// In a Flutter app (webview_flutter)
final controller = WebViewController()
  ..setJavaScriptMode(JavaScriptMode.unrestricted)
  ..loadRequest(Uri.parse(embedUrl));

WebViewWidget(controller: controller)

Need a hand with the integration?

Our engineers can walk your developer through it, or Trogon Media can build the app for you.