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

Use component without video-id #24

Closed
shusharin opened this issue Oct 22, 2019 · 1 comment
Closed

Use component without video-id #24

shusharin opened this issue Oct 22, 2019 · 1 comment

Comments

@shusharin
Copy link

shusharin commented Oct 22, 2019

Hi! Some times, we need use player without video-id.

For example:
We have list of videos. When i click on image preview, player must:
update(videoId)
But, at this moment player not init, and we can't use
this.$refs.player.update(videoId)
this.$refs.player - is null.

Another case:
We have input for video-id. When user set ID, we must load & show video.

Maybe we can set video-id id not required prop?
Or, maybe we can add some prop like "empty-player" & video-id can be null?

@dobromir-hristov
Copy link
Owner

Just v-if when you have an id.

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