You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Classes/TranscodingTask.php
+31-5
Original file line number
Diff line number
Diff line change
@@ -57,20 +57,43 @@ public function __construct($api, $task_token) {
57
57
$this->subtitles = null;
58
58
}
59
59
60
+
private$stitchVideoItems;
61
+
/**
62
+
* Adds a video for stitching
63
+
* @param string $url Source video URI. Can be http(s) url or tus uri
64
+
* @return StitchVideoItem
65
+
*/
66
+
publicfunctionAddStitchVideoItem($url) {
67
+
$item = newStitchVideoItem();
68
+
if ($this->stitchVideoItems == undefined) {
69
+
$this->stitchVideoItems = [];
70
+
}
71
+
$item->url = $url;
72
+
$this->stitchVideoItems[] = $item;
73
+
return$item;
74
+
}
75
+
60
76
/**
61
77
* Starts transcoding job using specified transcoding profile or list of profiles
62
78
* @param string|array $transcodingProfiles One or several transcoding profile identifiers. Can be comma-separated string or an array
63
-
* @param string $uri a link to input video or TUS uri
79
+
* @param string $uri a link to input video or TUS uri (ignored in case of stitching)
64
80
* @param string $transferMethod Transfer method identifier
65
81
* @param string $payload Any string data of 1000 characters max length. E.g. you could pass id of your site user uploading the video or any json object.
0 commit comments