Skip to main content

Overview

Introduction

Teyuto's API provides robust capabilities for managing live video streams. This overview will give you a quick understanding of the key features and concepts related to live streaming on the Teyuto platform.

Key Features

  1. Live Stream Creation: Easily set up live events through the API.
  2. Automatic Recording: Option to automatically record live streams for on-demand viewing.
  3. Multiple Quality Options: Support for various stream qualities to cater to different audience needs.
  4. Real-time Monitoring: Ability to check stream status and health.
  5. Interactive Elements: Support for features like live chat (if available).

Live Stream Lifecycle

  1. Creation: Use the API to create a new live stream event.
  2. Configuration: Set parameters like title, description, privacy settings, and recording options.
  3. Streaming: Use the provided stream key with your broadcasting software.
  4. Monitoring: Track the stream's status and performance in real-time.
  5. Completion: End the stream, after which it can be automatically converted to an on-demand video.

Recording Functionality

  • Enable recording by setting record=true when creating or updating a live stream.
  • Recorded streams are automatically converted to on-demand videos.
  • Be aware of the 60-second rule when stopping and restarting streams.

API Endpoints

Key endpoints for managing live streams include:

  • POST /videos/live: Create a new live stream
  • PATCH /videos/live/{id}: Update an existing live stream
  • GET /videos/{id}: Retrieve live stream details
  • GET /videos?type=vod: List recorded videos after streaming

Best Practices

  1. Always test your stream setup before going live.
  2. Monitor your stream's health throughout the broadcast.
  3. Manage stream interruptions carefully to control recording segments.
  4. Regularly check and update metadata for recorded streams.

Considerations

  • Ensure sufficient bandwidth for the desired stream quality.
  • Be mindful of storage capacity for recorded streams.
  • Familiarize yourself with any limitations on stream duration or concurrent viewers.

Integration

Teyuto's live streaming API can be integrated into various applications, including:

  • Custom streaming platforms
  • Mobile apps with live video capabilities
  • Interactive websites featuring live content
  • Event management systems

By leveraging these features, developers can create rich, interactive live streaming experiences for their users on the Teyuto platform.