vimeo / laravel

A Vimeo bridge for Laravel
https://developer.vimeo.com
Apache License 2.0
401 stars 88 forks source link

Domain Level Privacy is very very confusing #54

Closed rebootcode closed 5 years ago

rebootcode commented 5 years ago

How does someone restrict video with domain level embed privacy? I am trying to upload video like this:-

$vimeo = Vimeo\Laravel\Facades\Vimeo::upload($video, [
        'name' => 'Temporary Video',
        'privacy' => [
            'view' => 'anybody',
            'download' => "false",
            'embed' => 'whitelist',
            'comments' => 'nobody',
        ],

and I make second request as below :-

dd(Vimeo\Laravel\Facades\Vimeo::connection('main')->request($vimeo.'/privacy/domains/{Domain.com}', [], 'PUT'));

Now, first I get an error as below:-

array:3 [▼
  "body" => null
  "status" => 204
  "headers" => array:17 [▶]

That is no content received with status code 204 and request complete.

I want to make the video available only when it is embedded in my domain and can not be seen anywhere else, nor anyone should be able to download it. So, My Question is:

  1. Will privacy.view remain "anybody" or "nobody" or "private" for displaying video only on an embed with the whitelisted domain?
  2. How do I verify, if a video is "domain locked" only?
rebootcode commented 5 years ago

Documentation is available here - https://developer.vimeo.com/api/guides/videos/interact#set-off-site-privacy

tommypenner commented 5 years ago

@rebootcode I recommend also checking out the on-site privacy docs here: https://vimeo.zendesk.com/hc/en-us/articles/224817847-Privacy-settings-overview