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: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,15 @@ If you are developing a web application and would like to have the users upload
81
81
6. When the user comes back to the redirect_url, you will have an additional query param (to any you may have included) called `video_uri`. This can be used to load and edit the newly created clip via the standard API methods.
82
82
7.
83
83
84
+
#### Replacing video source file
85
+
86
+
If you want to replace the video source file of an existing video, you should follow these steps:
87
+
88
+
1. Initialize a `Vimeo` class to interact with the server with the proper credentials. \*
89
+
2. With the path to your file and video uri, call `$vimeo->replace($video_uri, $file_name);`.
90
+
3. The response from that function will contain a `Location` header with the URI to the newly created resource. You can call that to set metadata such as the title or check on the transcode status.
91
+
92
+
84
93
#### Uploading an image
85
94
Uploading an image can only occur by PUTing the file to the Vimeo servers
@@ -269,20 +270,62 @@ public function buildAuthorizationEndpoint ($redirect_uri, $scope = 'public', $s
269
270
* This should be used to upload a local file. If you want a form for your site to upload direct to Vimeo, you should look at the POST /me/videos endpoint.
270
271
*
271
272
* @param string $file_path Path to the video file to upload.
273
+
* @param boolean $upgrade_to_1080 Should we automatically upgrade the video file to 1080p
0 commit comments