Giter Club home page Giter Club logo

Comments (21)

seguce92 avatar seguce92 commented on May 27, 2024 5

@19peaches I managed to use the component and play private videos using the api, something like that
<vimeo-player ref="player" :options="options" video-url="https://player.vimeo.com/video/{video_id}" :video-id="null" :autoplay="false" :player-height="320" :player-width="640"> </vimeo-player>

You get the url by clicking on the video > insert code.

from vue-vimeo-player.

mesaglam avatar mesaglam commented on May 27, 2024 1

@19peaches If you want to play domain protected videos at outside, you have to build a proxy script in your allowed domain.

You can build a player page in your domain; then you may call that page inside an iframe from wherever you want...

There is no way else...

from vue-vimeo-player.

dobromir-hristov avatar dobromir-hristov commented on May 27, 2024

from vue-vimeo-player.

dobromir-hristov avatar dobromir-hristov commented on May 27, 2024

Could you tell me what error you are getting? I think this is an overall issue with vimeo/player.js, at least from what I saw on their GitHub repo.

from vue-vimeo-player.

 avatar commented on May 27, 2024

I'm just getting a 404 nothing else.

from vue-vimeo-player.

vycoder avatar vycoder commented on May 27, 2024

Hi @19peaches, how were you able to go about doing so? There's a whitelisting feature in vimeo. I'm assuming that vimeo will take care of everything. Just curious if you've encountered a certain problem.

from vue-vimeo-player.

 avatar commented on May 27, 2024

@josephharveyangeles

I wasn't able to. I switched to a different package and player.

from vue-vimeo-player.

dobromir-hristov avatar dobromir-hristov commented on May 27, 2024

@19peaches are you still using vimeo? You can share a link to what you chose for future users.

from vue-vimeo-player.

 avatar commented on May 27, 2024

@dobromir-hristov yes I'm still using Vimeo via the Plyr package here: https://github.com/sampotts/plyr

I'm not entirely happy with it, but it works pretty well.

from vue-vimeo-player.

vycoder avatar vycoder commented on May 27, 2024

Also, won't the whitelisting work out of the box? Just add the domain on the whitelist. Oh, but yeah you won't be able to see it on localhost...

from vue-vimeo-player.

 avatar commented on May 27, 2024

Whitelisting the domain did not work for me, hence the reason I switched players.

from vue-vimeo-player.

dobromir-hristov avatar dobromir-hristov commented on May 27, 2024

Yes, they use a different player, not the vimeo official one. Sad vimeo dont fix their own stuff... This package uses the official player from Vimeo, so nothing I can do guys, sorry.

from vue-vimeo-player.

vycoder avatar vycoder commented on May 27, 2024

@19peaches can you share what particular issue you encountered about the whitelisting? I just finished embedding videos on my app. Was about to upgrade to vimeo pro tomorrow.

from vue-vimeo-player.

 avatar commented on May 27, 2024

@josephharveyangeles

I already answered this earlier, I received a 404 not found when attempting to embed a private video. This includes domain protected videos. Nothing further to add really.

from vue-vimeo-player.

vycoder avatar vycoder commented on May 27, 2024

Oh okay thanks, I thought it was only on localhost. I'll keep this in mind when i started working on the private videos. Thanks @19peaches

from vue-vimeo-player.

DiAvisoo avatar DiAvisoo commented on May 27, 2024

The problem is that unlisted videos have an additional STRING element in the identifier:

"NOTE: When you want to embed a video with the unlisted privacy setting, be sure to send the entire URL, not just the portion with the video ID. The URL of an unlisted video contains an additional string of characters that you must include with your GET request to receive embed data of any kind."

from vue-vimeo-player.

CHEWX avatar CHEWX commented on May 27, 2024

I'm missing the issue here, you just add your local domain to the domain exclusion list? Definitely not an issue with this package as I'm using this exact setup with no issue, if I remove my local domain, then the video 404's as you've mentioned.

Try a proxy.

from vue-vimeo-player.

pongstylin avatar pongstylin commented on May 27, 2024

@dobromir-hristov
There's a bug in the implementation of it, it appears. The Vimeo API expects a video ID or a video URL. Not both. When I pass both, I get a 404 error. When I only pass the URL, it works - but I get a nasty warning in the console saying that the ID is required. Either don't make the ID property required, or don't pass the ID to the vimeo player when passing the URL.

from vue-vimeo-player.

dobromir-hristov avatar dobromir-hristov commented on May 27, 2024

Great find, care to make a PR? I am not using the package anymore so such things might happen.

from vue-vimeo-player.

pongstylin avatar pongstylin commented on May 27, 2024

I don't think I can put the level of TCL that would be required with the change. I see that you have branches for vue2 and vue3 and the change would need to be applied and tested in both. But I'm just working with vue2 right now. Also, the recent pull request that fixes the "update" method to support options needs to be taken into consideration as well to ensure both ID and URL based configuration works appropriately.

from vue-vimeo-player.

rangermeier avatar rangermeier commented on May 27, 2024

For reference:
This has been fixed in v1.0.4.
It's now possible to pass only a video-url in the props which works with unlisted (private) videos:

<vimeo-player video-url="https://vimeo.com/video/{video_id}/{hash}" />

from vue-vimeo-player.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.