Comments (15)
@pandalion here is my hack for getting this working in the meantime. I've created an event listener for "ready" that re-assigns the vimeo player instance:
<template>
<vue-vimeo-player ref="player" video-url="..." :options="..." @ready="onReady" />
</template>
<script setup>
import { vueVimeoPlayer } from 'vue-vimeo-player';
const player = ref(null);
const onReady = (_playerInstance) => {
player.value.player = _playerInstance;
}
</script>
from vue-vimeo-player.
I am extremely sorry, I totally forgot.... I will release this night.
from vue-vimeo-player.
Hi @dobromir-hristov - I have tried the new version and when I am logging this.$refs.vimeo.player
I am still getting undefined
for the player.
this.$refs.vimeo.pause()
is working fine, and the rest of the player, but my problem is still when trying to use setCurrentTime()
.
Please could you advise if this is something I am doing wrong on my end? Does 1.1.2 work now for you @JamieNuom ?
Thank you :)
from vue-vimeo-player.
Published, sorry all. Try the latest next
- 1.1.2
from vue-vimeo-player.
Also experiencing this with the composition API (using Vue 3 with 1.1.2
):
<template>
<vue-vimeo-player ref="player" video-url="..." :options="..." />
</template>
<script setup>
import { vueVimeoPlayer } from 'vue-vimeo-player';
const player = ref(null);
// Works
player.value.play();
player.value.pause();
// Is undefined
player.value.player;
</script>
from vue-vimeo-player.
@timmyomahony thank you so much for that!
from vue-vimeo-player.
Hey, sorry for the long wait. Did you manage to figure it out?
from vue-vimeo-player.
Just chiming in to say that I'm experiencing the same issue with accessing the player and calling setCurrentTime().
from vue-vimeo-player.
I know why. We need to return the player from the setup function.
Anyone want to do a PR?
from vue-vimeo-player.
from vue-vimeo-player.
Could this also be a reason why I don't see on
method here:
When I try to access it (same way I access play
which works fine) it throws an error that on
is not a function.
from vue-vimeo-player.
Do you know when this will be released to npm please? I also need to access the player
object to call setCurrentTime
from vue-vimeo-player.
I am also waiting on this, can you update when released? Thanks!
from vue-vimeo-player.
Thank you @dobromir-hristov !
from vue-vimeo-player.
const onReady = (_playerInstance) => {
player.value.player = _playerInstance;
}
you saved me man ;)
from vue-vimeo-player.
Related Issues (20)
- Customizing player like double click, speed control.
- SetCurrentTime not working
- How to set the current time ?. The method setCurrentTime showing error "setCurrentTime is not a function" HOT 2
- Use vue-demi HOT 1
- vendor has been deprecated due to webpack4 optimization HOT 1
- Options not working HOT 6
- Controls bar is frozen and don't show current video status after controls prop change until user will interact with play button or timeline
- .getDuration() "message": "player.getDuration is not a function", "statusCode": 500 HOT 2
- Events don't fire reliably within a modal component HOT 1
- videoId and videoUrl properties should not be required (both)
- It is possible to update the video with the new options? HOT 2
- Playing another video after the first is finished HOT 1
- Local import and Lazy loading ? HOT 2
- Preconnected; got sound but no display: Beacon API cannot load HOT 2
- player does not render HOT 10
- Runing with Nuxt - Missing Jquery? HOT 4
- Fullscreen ? HOT 3
- Axios is not working inside timeupdate event HOT 1
- Compile warnings HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-vimeo-player.