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
- Live Stream Creation: Easily set up live events through the API.
- Automatic Recording: Option to automatically record live streams for on-demand viewing.
- Multiple Quality Options: Support for various stream qualities to cater to different audience needs.
- Real-time Monitoring: Ability to check stream status and health.
- Interactive Elements: Support for features like live chat (if available).
Live Stream Lifecycle
- Creation: Use the API to create a new live stream event.
- Configuration: Set parameters like title, description, privacy settings, and recording options.
- Streaming: Use the provided stream key with your broadcasting software.
- Monitoring: Track the stream's status and performance in real-time.
- 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 streamPATCH /videos/live/{id}
: Update an existing live streamGET /videos/{id}
: Retrieve live stream detailsGET /videos?type=vod
: List recorded videos after streaming
Best Practices
- Always test your stream setup before going live.
- Monitor your stream's health throughout the broadcast.
- Manage stream interruptions carefully to control recording segments.
- 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.