AsyncVideoSegmentService

Trait AsyncVideoSegmentService 

Source
pub trait AsyncVideoSegmentService {
    // Required methods
    fn create_segments(
        &self,
        auth_: BearerToken,
        video_rid: VideoRid,
        request: CreateSegmentsRequest,
    ) -> impl Future<Output = Result<(), Error>> + Send;
    fn create_video_file_segments(
        &self,
        auth_: BearerToken,
        video_rid: VideoRid,
        video_file_rid: VideoFileRid,
        request: CreateSegmentsRequest,
    ) -> impl Future<Output = Result<CreateSegmentsResponse, Error>> + Send;
    fn get_segment_by_timestamp(
        &self,
        auth_: BearerToken,
        video_rid: VideoRid,
        request: GetSegmentByTimestampRequest,
    ) -> impl Future<Output = Result<Option<Segment>, Error>> + Send;
}
Expand description

Upon ingestion, every video is split into smaller segments. The Video Segment Service manages operations on videos at the segment-level.

Required Methods§

Source

fn create_segments( &self, auth_: BearerToken, video_rid: VideoRid, request: CreateSegmentsRequest, ) -> impl Future<Output = Result<(), Error>> + Send

Source

fn create_video_file_segments( &self, auth_: BearerToken, video_rid: VideoRid, video_file_rid: VideoFileRid, request: CreateSegmentsRequest, ) -> impl Future<Output = Result<CreateSegmentsResponse, Error>> + Send

Source

fn get_segment_by_timestamp( &self, auth_: BearerToken, video_rid: VideoRid, request: GetSegmentByTimestampRequest, ) -> impl Future<Output = Result<Option<Segment>, Error>> + Send

Returns metadata for the segment within a video containing the requested absolute timestamp.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§