pub struct VideoServiceClient<T>(/* private fields */);
Expand description
The video service manages videos and video metadata.
Implementations§
Source§impl<T> VideoServiceClient<T>where
T: Client,
impl<T> VideoServiceClient<T>where
T: Client,
Sourcepub fn get(
&self,
auth_: &BearerToken,
video_rid: &VideoRid,
) -> Result<Video, Error>
pub fn get( &self, auth_: &BearerToken, video_rid: &VideoRid, ) -> Result<Video, Error>
Returns video metadata associated with a video rid.
Sourcepub fn batch_get(
&self,
auth_: &BearerToken,
request: &GetVideosRequest,
) -> Result<GetVideosResponse, Error>
pub fn batch_get( &self, auth_: &BearerToken, request: &GetVideosRequest, ) -> Result<GetVideosResponse, Error>
Returns video metadata about each video given a set of video rids.
Sourcepub fn search(
&self,
auth_: &BearerToken,
request: &SearchVideosRequest,
) -> Result<SearchVideosResponse, Error>
pub fn search( &self, auth_: &BearerToken, request: &SearchVideosRequest, ) -> Result<SearchVideosResponse, Error>
Returns metadata about videos that match a given query.
Sourcepub fn create(
&self,
auth_: &BearerToken,
request: &CreateVideoRequest,
) -> Result<Video, Error>
pub fn create( &self, auth_: &BearerToken, request: &CreateVideoRequest, ) -> Result<Video, Error>
Creates and persists a video entity with the given metadata.
Sourcepub fn update_metadata(
&self,
auth_: &BearerToken,
video_rid: &VideoRid,
request: &UpdateVideoMetadataRequest,
) -> Result<Video, Error>
pub 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 fn update_ingest_status( &self, auth_: &BearerToken, video_rid: &VideoRid, request: &UpdateIngestStatus, ) -> Result<(), Error>
pub fn get_ingest_status( &self, auth_: &BearerToken, video_rid: &VideoRid, ) -> Result<DetailedIngestStatus, Error>
pub fn batch_get_ingest_status( &self, auth_: &BearerToken, video_rids: &BTreeSet<VideoRid>, ) -> Result<BTreeMap<VideoRid, DetailedIngestStatus>, Error>
pub fn get_enriched_ingest_status( &self, auth_: &BearerToken, request: &GetEnrichedVideoIngestStatusRequest, ) -> Result<Option<EnrichedVideoIngestStatus>, Error>
Sourcepub fn archive(
&self,
auth_: &BearerToken,
video_rid: &VideoRid,
) -> Result<(), Error>
pub 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 fn unarchive(
&self,
auth_: &BearerToken,
video_rid: &VideoRid,
) -> Result<(), Error>
pub fn unarchive( &self, auth_: &BearerToken, video_rid: &VideoRid, ) -> Result<(), Error>
Unarchives a previously archived video.
Sourcepub fn get_playlist(
&self,
auth_: &BearerToken,
video_rid: &VideoRid,
) -> Result<T::ResponseBody, Error>
👎Deprecated: Replaced by getPlaylistInBounds. Will be removed after April 15th.
pub 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 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 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 fn get_playlist_in_bounds(
&self,
auth_: &BearerToken,
video_rid: &VideoRid,
request: &GetPlaylistInBoundsRequest,
) -> Result<T::ResponseBody, Error>
pub 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 fn get_segment_summaries_in_bounds(
&self,
auth_: &BearerToken,
video_rid: &VideoRid,
request: &GetSegmentSummariesInBoundsRequest,
) -> Result<Vec<SegmentSummary>, Error>
pub 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 fn get_file_summaries(
&self,
auth_: &BearerToken,
video_rid: &VideoRid,
request: &GetFileSummariesRequest,
) -> Result<GetFileSummariesResponse, Error>
pub 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: Clone> Clone for VideoServiceClient<T>
impl<T: Clone> Clone for VideoServiceClient<T>
Source§fn clone(&self) -> VideoServiceClient<T>
fn clone(&self) -> VideoServiceClient<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<T: Debug> Debug for VideoServiceClient<T>
impl<T: Debug> Debug for VideoServiceClient<T>
Auto Trait Implementations§
impl<T> Freeze for VideoServiceClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for VideoServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for VideoServiceClient<T>where
T: Send,
impl<T> Sync for VideoServiceClient<T>where
T: Sync,
impl<T> Unpin for VideoServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for VideoServiceClient<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