Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Domain Level Privacy is very very confusing #54

Closed
rebootcode opened this issue Apr 25, 2019 · 2 comments
Closed

Domain Level Privacy is very very confusing #54

rebootcode opened this issue Apr 25, 2019 · 2 comments

Comments

@rebootcode
Copy link

rebootcode commented Apr 25, 2019

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
Copy link
Author

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

@tommypenner
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants