Reviews class
代表 Reviews 的類別。
建構函式
Reviews(Content |
建立評論。 |
方法
建構函式詳細資料
Reviews(ContentModeratorClientContext)
建立評論。
new Reviews(client: ContentModeratorClientContext)
參數
服務客戶端的參考。
方法詳細資料
addVideoFrame(string, string, ReviewsAddVideoFrameOptionalParams)
為小組的檢閱者顯示所建立的評論。 當檢閱者完成檢閱時,檢閱的結果會是指定 CallBackEndpoint 上的 POSTED(亦即 HTTP POST)。
CallBack 架構
檢閱完成回呼範例
{
“ReviewId”: ”
function addVideoFrame(teamName: string, reviewId: string, options?: ReviewsAddVideoFrameOptionalParams): Promise<RestResponse>
參數
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
選擇性參數
傳回
Promise<RestResponse>
Promise<msRest.RestResponse>
addVideoFrame(string, string, ReviewsAddVideoFrameOptionalParams, ServiceCallback<void>)
function addVideoFrame(teamName: string, reviewId: string, options: ReviewsAddVideoFrameOptionalParams, callback: ServiceCallback<void>)
參數
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
選擇性參數
- callback
-
ServiceCallback<void>
回呼
addVideoFrame(string, string, ServiceCallback<void>)
function addVideoFrame(teamName: string, reviewId: string, callback: ServiceCallback<void>)
參數
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
- callback
-
ServiceCallback<void>
回呼
addVideoFrameStream(string, string, string, HttpRequestBody, string, ReviewsAddVideoFrameStreamOptionalParams)
使用此方法可新增影片檢閱的畫面格。時幅:此參數是用來將框架上的時間戳轉換成毫秒的因數。 時幅是在 Azure 媒體服務平臺上 Content Moderator 視訊媒體處理器的輸出中提供。視訊仲裁輸出中的時幅為 Ticks/Second。
function addVideoFrameStream(contentType: string, teamName: string, reviewId: string, frameImageZip: HttpRequestBody, frameMetadata: string, options?: ReviewsAddVideoFrameStreamOptionalParams): Promise<RestResponse>
參數
- contentType
-
string
內容類型。
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
- frameImageZip
- HttpRequestBody
包含框架影像的 Zip 檔案。
- frameMetadata
-
string
框架的元數據。
選擇性參數
傳回
Promise<RestResponse>
Promise<msRest.RestResponse>
addVideoFrameStream(string, string, string, HttpRequestBody, string, ReviewsAddVideoFrameStreamOptionalParams, ServiceCallback<void>)
function addVideoFrameStream(contentType: string, teamName: string, reviewId: string, frameImageZip: HttpRequestBody, frameMetadata: string, options: ReviewsAddVideoFrameStreamOptionalParams, callback: ServiceCallback<void>)
參數
- contentType
-
string
內容類型。
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
- frameImageZip
- HttpRequestBody
包含框架影像的 Zip 檔案。
- frameMetadata
-
string
框架的元數據。
選擇性參數
- callback
-
ServiceCallback<void>
回呼
addVideoFrameStream(string, string, string, HttpRequestBody, string, ServiceCallback<void>)
function addVideoFrameStream(contentType: string, teamName: string, reviewId: string, frameImageZip: HttpRequestBody, frameMetadata: string, callback: ServiceCallback<void>)
參數
- contentType
-
string
內容類型。
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
- frameImageZip
- HttpRequestBody
包含框架影像的 Zip 檔案。
- frameMetadata
-
string
框架的元數據。
- callback
-
ServiceCallback<void>
回呼
addVideoFrameUrl(string, string, string, VideoFrameBodyItem[], ReviewsAddVideoFrameUrlOptionalParams)
使用此方法可新增影片檢閱的畫面格。時幅:此參數是用來將框架上的時間戳轉換成毫秒的因數。 時幅是在 Azure 媒體服務平臺上 Content Moderator 視訊媒體處理器的輸出中提供。視訊仲裁輸出中的時幅為 Ticks/Second。
function addVideoFrameUrl(contentType: string, teamName: string, reviewId: string, videoFrameBody: VideoFrameBodyItem[], options?: ReviewsAddVideoFrameUrlOptionalParams): Promise<RestResponse>
參數
- contentType
-
string
內容類型。
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
- videoFrameBody
新增視訊畫面 API 的本文
選擇性參數
傳回
Promise<RestResponse>
Promise<msRest.RestResponse>
addVideoFrameUrl(string, string, string, VideoFrameBodyItem[], ReviewsAddVideoFrameUrlOptionalParams, ServiceCallback<void>)
function addVideoFrameUrl(contentType: string, teamName: string, reviewId: string, videoFrameBody: VideoFrameBodyItem[], options: ReviewsAddVideoFrameUrlOptionalParams, callback: ServiceCallback<void>)
參數
- contentType
-
string
內容類型。
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
- videoFrameBody
新增視訊畫面 API 的本文
選擇性參數
- callback
-
ServiceCallback<void>
回呼
addVideoFrameUrl(string, string, string, VideoFrameBodyItem[], ServiceCallback<void>)
function addVideoFrameUrl(contentType: string, teamName: string, reviewId: string, videoFrameBody: VideoFrameBodyItem[], callback: ServiceCallback<void>)
參數
- contentType
-
string
內容類型。
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
- videoFrameBody
新增視訊畫面 API 的本文
- callback
-
ServiceCallback<void>
回呼
addVideoTranscript(string, string, HttpRequestBody, RequestOptionsBase)
此 API 會將文字記錄檔(影片中說出的所有文字的文字版本)新增至影片檢閱。 檔案應該是有效的 WebVTT 格式。
function addVideoTranscript(teamName: string, reviewId: string, vTTfile: HttpRequestBody, options?: RequestOptionsBase): Promise<RestResponse>
參數
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
- vTTfile
- HttpRequestBody
影片的文字記錄檔。
- options
- RequestOptionsBase
選擇性參數
傳回
Promise<RestResponse>
Promise<msRest.RestResponse>
addVideoTranscript(string, string, HttpRequestBody, RequestOptionsBase, ServiceCallback<void>)
function addVideoTranscript(teamName: string, reviewId: string, vTTfile: HttpRequestBody, options: RequestOptionsBase, callback: ServiceCallback<void>)
參數
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
- vTTfile
- HttpRequestBody
影片的文字記錄檔。
- options
- RequestOptionsBase
選擇性參數
- callback
-
ServiceCallback<void>
回呼
addVideoTranscript(string, string, HttpRequestBody, ServiceCallback<void>)
function addVideoTranscript(teamName: string, reviewId: string, vTTfile: HttpRequestBody, callback: ServiceCallback<void>)
參數
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
- vTTfile
- HttpRequestBody
影片的文字記錄檔。
- callback
-
ServiceCallback<void>
回呼
addVideoTranscriptModerationResult(string, string, string, TranscriptModerationBodyItem[], RequestOptionsBase)
此 API 會新增文字記錄畫面文字結果檔案以供影片檢閱。 文字記錄畫面文字結果檔案是螢幕文字 API 的結果。 若要產生文字記錄畫面文字結果檔,必須使用螢幕文字 API 來篩選文字記錄檔的粗話。
function addVideoTranscriptModerationResult(contentType: string, teamName: string, reviewId: string, transcriptModerationBody: TranscriptModerationBodyItem[], options?: RequestOptionsBase): Promise<RestResponse>
參數
- contentType
-
string
內容類型。
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
- transcriptModerationBody
用於新增影片文字記錄審核結果 API 的本文
- options
- RequestOptionsBase
選擇性參數
傳回
Promise<RestResponse>
Promise<msRest.RestResponse>
addVideoTranscriptModerationResult(string, string, string, TranscriptModerationBodyItem[], RequestOptionsBase, ServiceCallback<void>)
function addVideoTranscriptModerationResult(contentType: string, teamName: string, reviewId: string, transcriptModerationBody: TranscriptModerationBodyItem[], options: RequestOptionsBase, callback: ServiceCallback<void>)
參數
- contentType
-
string
內容類型。
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
- transcriptModerationBody
用於新增影片文字記錄審核結果 API 的本文
- options
- RequestOptionsBase
選擇性參數
- callback
-
ServiceCallback<void>
回呼
addVideoTranscriptModerationResult(string, string, string, TranscriptModerationBodyItem[], ServiceCallback<void>)
function addVideoTranscriptModerationResult(contentType: string, teamName: string, reviewId: string, transcriptModerationBody: TranscriptModerationBodyItem[], callback: ServiceCallback<void>)
參數
- contentType
-
string
內容類型。
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
- transcriptModerationBody
用於新增影片文字記錄審核結果 API 的本文
- callback
-
ServiceCallback<void>
回呼
createJob(string, ContentType, string, string, JobContentType, Content, ReviewsCreateJobOptionalParams)
系統會針對在此端點上張貼的內容傳回作業標識碼。
一旦根據工作流程評估內容,前提是檢閱會根據工作流程表達式建立或忽略。
CallBack 架構
作業完成回呼範例
{
“JobId”: “,
“ReviewId”: “<檢閱標識符,如果作業導致建立檢閱>”,
“WorkFlowId”: “default”,
“Status”: “<這會是 [完成]、[輸入]、[錯誤]>”,
“ContentType”: “Image”,
“ContentId”: “”,
“CallBackType”: “Job”,
“Metadata”: {
“成人核心”: “0.xxx”,
“a”: “False”,
“racyscore”: “0.xxx”,
“r”: “True”
}
}
檢閱完成回呼範例
{ “ReviewId”: “”,
“ModifiedOn”: “2016-10-11T22:36:32.9934851Z”,
“ModifiedBy”: “”,
“CallBackType”: “Review”,
“ContentId”: “”,
“Metadata”: {
“adultscore”: “0.xxx”, “a”: “False”,
“racyscore”: “0.xxx”,
“r”: “True”
},
“ReviewerResultTags”: {
“a”: “False”,
“r”: “True”
}
}
function createJob(teamName: string, contentType: ContentType, contentId: string, workflowName: string, jobContentType: JobContentType, content: Content, options?: ReviewsCreateJobOptionalParams): Promise<ReviewsCreateJobResponse>
參數
- teamName
-
string
您的小組名稱。
- contentType
- ContentType
影像、文字或視訊。 可能的值包括:'Image'、'Text'、'Video'
- contentId
-
string
識別送出內容的識別碼/名稱。
- workflowName
-
string
您要叫用的工作流程名稱。
- jobContentType
- JobContentType
內容類型。 可能的值包括:'application/json'、'image/jpeg'
- content
- Content
要評估的內容。
- options
- ReviewsCreateJobOptionalParams
選擇性參數
傳回
Promise<ReviewsCreateJobResponse>
Promise<Models.ReviewsCreateJobResponse>
createJob(string, ContentType, string, string, JobContentType, Content, ReviewsCreateJobOptionalParams, ServiceCallback<JobId>)
function createJob(teamName: string, contentType: ContentType, contentId: string, workflowName: string, jobContentType: JobContentType, content: Content, options: ReviewsCreateJobOptionalParams, callback: ServiceCallback<JobId>)
參數
- teamName
-
string
您的小組名稱。
- contentType
- ContentType
影像、文字或視訊。 可能的值包括:'Image'、'Text'、'Video'
- contentId
-
string
識別送出內容的識別碼/名稱。
- workflowName
-
string
您要叫用的工作流程名稱。
- jobContentType
- JobContentType
內容類型。 可能的值包括:'application/json'、'image/jpeg'
- content
- Content
要評估的內容。
- options
- ReviewsCreateJobOptionalParams
選擇性參數
- callback
回呼
createJob(string, ContentType, string, string, JobContentType, Content, ServiceCallback<JobId>)
function createJob(teamName: string, contentType: ContentType, contentId: string, workflowName: string, jobContentType: JobContentType, content: Content, callback: ServiceCallback<JobId>)
參數
- teamName
-
string
您的小組名稱。
- contentType
- ContentType
影像、文字或視訊。 可能的值包括:'Image'、'Text'、'Video'
- contentId
-
string
識別送出內容的識別碼/名稱。
- workflowName
-
string
您要叫用的工作流程名稱。
- jobContentType
- JobContentType
內容類型。 可能的值包括:'application/json'、'image/jpeg'
- content
- Content
要評估的內容。
- callback
回呼
createReviews(string, string, CreateReviewBodyItem[], ReviewsCreateReviewsOptionalParams)
為小組的檢閱者顯示所建立的評論。 當檢閱者完成檢閱時,檢閱的結果會是指定 CallBackEndpoint 上的 POSTED(亦即 HTTP POST)。
CallBack 架構
檢閱完成回呼範例
{
“ReviewId”: ”
function createReviews(urlContentType: string, teamName: string, createReviewBody: CreateReviewBodyItem[], options?: ReviewsCreateReviewsOptionalParams): Promise<ReviewsCreateReviewsResponse>
參數
- urlContentType
-
string
內容類型。
- teamName
-
string
您的小組名稱。
- createReviewBody
建立評論 API 的本文
選擇性參數
傳回
Promise<ReviewsCreateReviewsResponse>
Promise<Models.ReviewsCreateReviewsResponse>
createReviews(string, string, CreateReviewBodyItem[], ReviewsCreateReviewsOptionalParams, ServiceCallback<string[]>)
function createReviews(urlContentType: string, teamName: string, createReviewBody: CreateReviewBodyItem[], options: ReviewsCreateReviewsOptionalParams, callback: ServiceCallback<string[]>)
參數
- urlContentType
-
string
內容類型。
- teamName
-
string
您的小組名稱。
- createReviewBody
建立評論 API 的本文
選擇性參數
- callback
-
ServiceCallback<string[]>
回呼
createReviews(string, string, CreateReviewBodyItem[], ServiceCallback<string[]>)
function createReviews(urlContentType: string, teamName: string, createReviewBody: CreateReviewBodyItem[], callback: ServiceCallback<string[]>)
參數
- urlContentType
-
string
內容類型。
- teamName
-
string
您的小組名稱。
- createReviewBody
建立評論 API 的本文
- callback
-
ServiceCallback<string[]>
回呼
createVideoReviews(string, string, CreateVideoReviewsBodyItem[], ReviewsCreateVideoReviewsOptionalParams)
為小組的檢閱者顯示所建立的評論。 當檢閱者完成檢閱時,檢閱的結果會是指定 CallBackEndpoint 上的 POSTED(亦即 HTTP POST)。
CallBack 架構
檢閱完成回呼範例
{
“ReviewId”: ”
function createVideoReviews(contentType: string, teamName: string, createVideoReviewsBody: CreateVideoReviewsBodyItem[], options?: ReviewsCreateVideoReviewsOptionalParams): Promise<ReviewsCreateVideoReviewsResponse>
參數
- contentType
-
string
內容類型。
- teamName
-
string
您的小組名稱。
- createVideoReviewsBody
建立評論 API 的本文
選擇性參數
傳回
Promise<ReviewsCreateVideoReviewsResponse>
Promise<Models.ReviewsCreateVideoReviewsResponse>
createVideoReviews(string, string, CreateVideoReviewsBodyItem[], ReviewsCreateVideoReviewsOptionalParams, ServiceCallback<string[]>)
function createVideoReviews(contentType: string, teamName: string, createVideoReviewsBody: CreateVideoReviewsBodyItem[], options: ReviewsCreateVideoReviewsOptionalParams, callback: ServiceCallback<string[]>)
參數
- contentType
-
string
內容類型。
- teamName
-
string
您的小組名稱。
- createVideoReviewsBody
建立評論 API 的本文
選擇性參數
- callback
-
ServiceCallback<string[]>
回呼
createVideoReviews(string, string, CreateVideoReviewsBodyItem[], ServiceCallback<string[]>)
function createVideoReviews(contentType: string, teamName: string, createVideoReviewsBody: CreateVideoReviewsBodyItem[], callback: ServiceCallback<string[]>)
參數
- contentType
-
string
內容類型。
- teamName
-
string
您的小組名稱。
- createVideoReviewsBody
建立評論 API 的本文
- callback
-
ServiceCallback<string[]>
回呼
getJobDetails(string, string, RequestOptionsBase)
取得作業標識碼的作業詳細數據。
function getJobDetails(teamName: string, jobId: string, options?: RequestOptionsBase): Promise<ReviewsGetJobDetailsResponse>
參數
- teamName
-
string
您的小組名稱。
- jobId
-
string
作業的標識碼。
- options
- RequestOptionsBase
選擇性參數
傳回
Promise<ReviewsGetJobDetailsResponse>
Promise<Models.ReviewsGetJobDetailsResponse>
getJobDetails(string, string, RequestOptionsBase, ServiceCallback<Job>)
function getJobDetails(teamName: string, jobId: string, options: RequestOptionsBase, callback: ServiceCallback<Job>)
參數
- teamName
-
string
您的小組名稱。
- jobId
-
string
作業的標識碼。
- options
- RequestOptionsBase
選擇性參數
- callback
回呼
getJobDetails(string, string, ServiceCallback<Job>)
function getJobDetails(teamName: string, jobId: string, callback: ServiceCallback<Job>)
參數
- teamName
-
string
您的小組名稱。
- jobId
-
string
作業的標識碼。
- callback
回呼
getReview(string, string, RequestOptionsBase)
傳回通過之檢閱標識碼的檢閱詳細數據。
function getReview(teamName: string, reviewId: string, options?: RequestOptionsBase): Promise<ReviewsGetReviewResponse>
參數
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
- options
- RequestOptionsBase
選擇性參數
傳回
Promise<ReviewsGetReviewResponse>
Promise<Models.ReviewsGetReviewResponse>
getReview(string, string, RequestOptionsBase, ServiceCallback<Review>)
function getReview(teamName: string, reviewId: string, options: RequestOptionsBase, callback: ServiceCallback<Review>)
參數
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
- options
- RequestOptionsBase
選擇性參數
- callback
回呼
getReview(string, string, ServiceCallback<Review>)
function getReview(teamName: string, reviewId: string, callback: ServiceCallback<Review>)
參數
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
- callback
回呼
getVideoFrames(string, string, ReviewsGetVideoFramesOptionalParams)
為小組的檢閱者顯示所建立的評論。 當檢閱者完成檢閱時,檢閱的結果會是指定 CallBackEndpoint 上的 POSTED(亦即 HTTP POST)。
CallBack 架構
檢閱完成回呼範例
{
“ReviewId”: ”
function getVideoFrames(teamName: string, reviewId: string, options?: ReviewsGetVideoFramesOptionalParams): Promise<ReviewsGetVideoFramesResponse>
參數
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
選擇性參數
傳回
Promise<ReviewsGetVideoFramesResponse>
Promise<Models.ReviewsGetVideoFramesResponse>
getVideoFrames(string, string, ReviewsGetVideoFramesOptionalParams, ServiceCallback<Frames>)
function getVideoFrames(teamName: string, reviewId: string, options: ReviewsGetVideoFramesOptionalParams, callback: ServiceCallback<Frames>)
參數
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
選擇性參數
- callback
回呼
getVideoFrames(string, string, ServiceCallback<Frames>)
function getVideoFrames(teamName: string, reviewId: string, callback: ServiceCallback<Frames>)
參數
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
- callback
回呼
publishVideoReview(string, string, RequestOptionsBase)
發佈影片檢閱,使其可供檢閱。
function publishVideoReview(teamName: string, reviewId: string, options?: RequestOptionsBase): Promise<RestResponse>
參數
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
- options
- RequestOptionsBase
選擇性參數
傳回
Promise<RestResponse>
Promise<msRest.RestResponse>
publishVideoReview(string, string, RequestOptionsBase, ServiceCallback<void>)
function publishVideoReview(teamName: string, reviewId: string, options: RequestOptionsBase, callback: ServiceCallback<void>)
參數
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
- options
- RequestOptionsBase
選擇性參數
- callback
-
ServiceCallback<void>
回呼
publishVideoReview(string, string, ServiceCallback<void>)
function publishVideoReview(teamName: string, reviewId: string, callback: ServiceCallback<void>)
參數
- teamName
-
string
您的小組名稱。
- reviewId
-
string
檢閱的標識碼。
- callback
-
ServiceCallback<void>
回呼