pub struct VideoServiceAsyncClient<T>(/* private fields */);
Expand description
The video service manages videos and video metadata.
Implementations§
Source§impl<T> VideoServiceAsyncClient<T>where
T: AsyncClient,
impl<T> VideoServiceAsyncClient<T>where
T: AsyncClient,
Sourcepub async fn get(
&self,
auth_: &BearerToken,
video_rid: &VideoRid,
) -> Result<Video, Error>
pub async fn get( &self, auth_: &BearerToken, video_rid: &VideoRid, ) -> Result<Video, Error>
Returns video metadata associated with a video rid.
Sourcepub async fn batch_get(
&self,
auth_: &BearerToken,
request: &GetVideosRequest,
) -> Result<GetVideosResponse, Error>
pub async fn batch_get( &self, auth_: &BearerToken, request: &GetVideosRequest, ) -> Result<GetVideosResponse, Error>
Returns video metadata about each video given a set of video rids.
Sourcepub async fn search(
&self,
auth_: &BearerToken,
request: &SearchVideosRequest,
) -> Result<SearchVideosResponse, Error>
pub async fn search( &self, auth_: &BearerToken, request: &SearchVideosRequest, ) -> Result<SearchVideosResponse, Error>
Returns metadata about videos that match a given query.
Sourcepub async fn create(
&self,
auth_: &BearerToken,
request: &CreateVideoRequest,
) -> Result<Video, Error>
pub async fn create( &self, auth_: &BearerToken, request: &CreateVideoRequest, ) -> Result<Video, Error>
Creates and persists a video entity with the given metadata.
Sourcepub async fn update_metadata(
&self,
auth_: &BearerToken,
video_rid: &VideoRid,
request: &UpdateVideoMetadataRequest,
) -> Result<Video, Error>
pub async fn update_metadata( &self, auth_: &BearerToken, video_rid: &VideoRid, request: &UpdateVideoMetadataRequest, ) -> Result<Video, Error>
Updates the metadata for a video associated with the given video rid.
pub async fn update_ingest_status( &self, auth_: &BearerToken, video_rid: &VideoRid, request: &UpdateIngestStatus, ) -> Result<(), Error>
pub async fn get_ingest_status( &self, auth_: &BearerToken, video_rid: &VideoRid, ) -> Result<DetailedIngestStatus, Error>
pub async fn batch_get_ingest_status( &self, auth_: &BearerToken, video_rids: &BTreeSet<VideoRid>, ) -> Result<BTreeMap<VideoRid, DetailedIngestStatus>, Error>
pub async fn get_enriched_ingest_status( &self, auth_: &BearerToken, request: &GetEnrichedVideoIngestStatusRequest, ) -> Result<Option<EnrichedVideoIngestStatus>, Error>
Sourcepub async fn archive(
&self,
auth_: &BearerToken,
video_rid: &VideoRid,
) -> Result<(), Error>
pub async fn archive( &self, auth_: &BearerToken, video_rid: &VideoRid, ) -> Result<(), Error>
Archives a video, which excludes it from search and hides it from being publicly visible, but does not permanently delete it. Archived videos can be unarchived.
Sourcepub async fn unarchive(
&self,
auth_: &BearerToken,
video_rid: &VideoRid,
) -> Result<(), Error>
pub async fn unarchive( &self, auth_: &BearerToken, video_rid: &VideoRid, ) -> Result<(), Error>
Unarchives a previously archived video.
Sourcepub async fn get_playlist(
&self,
auth_: &BearerToken,
video_rid: &VideoRid,
) -> Result<T::ResponseBody, Error>
👎Deprecated: Replaced by getPlaylistInBounds. Will be removed after April 15th.
pub async fn get_playlist( &self, auth_: &BearerToken, video_rid: &VideoRid, ) -> Result<T::ResponseBody, Error>
Generates an HLS playlist for a video with the given video rid to enable playback. The HLS playlist will contain links to all of the segments in the video in sequential order.
Sourcepub async fn get_segment_summaries(
&self,
auth_: &BearerToken,
video_rid: &VideoRid,
) -> Result<Vec<SegmentSummary>, Error>
👎Deprecated: Replaced by getSegmentSummariesInBounds. Will be removed after April 15th.
pub async fn get_segment_summaries( &self, auth_: &BearerToken, video_rid: &VideoRid, ) -> Result<Vec<SegmentSummary>, Error>
Returns the min and max absolute and media timestamps for each segment in a video. To be used during frame-timestamp mapping.
Sourcepub async fn get_playlist_in_bounds(
&self,
auth_: &BearerToken,
video_rid: &VideoRid,
request: &GetPlaylistInBoundsRequest,
) -> Result<T::ResponseBody, Error>
pub async fn get_playlist_in_bounds( &self, auth_: &BearerToken, video_rid: &VideoRid, request: &GetPlaylistInBoundsRequest, ) -> Result<T::ResponseBody, Error>
Generates an HLS playlist for a video with the given video rid to enable playback within an optional set of bounds. The HLS playlist will contain links to all of the segments in the video that overlap with the given bounds. playlist will be limited to the given bounds.
Sourcepub async fn get_segment_summaries_in_bounds(
&self,
auth_: &BearerToken,
video_rid: &VideoRid,
request: &GetSegmentSummariesInBoundsRequest,
) -> Result<Vec<SegmentSummary>, Error>
pub async fn get_segment_summaries_in_bounds( &self, auth_: &BearerToken, video_rid: &VideoRid, request: &GetSegmentSummariesInBoundsRequest, ) -> Result<Vec<SegmentSummary>, Error>
Returns the min and max absolute and media timestamps for each segment in a video that overlap with an optional set of bounds.
Sourcepub async fn get_file_summaries(
&self,
auth_: &BearerToken,
video_rid: &VideoRid,
request: &GetFileSummariesRequest,
) -> Result<GetFileSummariesResponse, Error>
pub async fn get_file_summaries( &self, auth_: &BearerToken, video_rid: &VideoRid, request: &GetFileSummariesRequest, ) -> Result<GetFileSummariesResponse, Error>
Returns the min and max absolute timestamps from non-archived video files associated with a given video that overlap with an optional set of bounds. The files on the edges of the bounds will be truncated to segments that are inside or overlap with the bounds.
Trait Implementations§
Source§impl<T> AsyncService<T> for VideoServiceAsyncClient<T>where
T: AsyncClient,
impl<T> AsyncService<T> for VideoServiceAsyncClient<T>where
T: AsyncClient,
Source§impl<T: Clone> Clone for VideoServiceAsyncClient<T>
impl<T: Clone> Clone for VideoServiceAsyncClient<T>
Source§fn clone(&self) -> VideoServiceAsyncClient<T>
fn clone(&self) -> VideoServiceAsyncClient<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> Freeze for VideoServiceAsyncClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for VideoServiceAsyncClient<T>where
T: RefUnwindSafe,
impl<T> Send for VideoServiceAsyncClient<T>where
T: Send,
impl<T> Sync for VideoServiceAsyncClient<T>where
T: Sync,
impl<T> Unpin for VideoServiceAsyncClient<T>where
T: Unpin,
impl<T> UnwindSafe for VideoServiceAsyncClient<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request