zcuric / plyrue Goto Github PK
View Code? Open in Web Editor NEWVue.js plugin for Plyr.io
License: MIT License
Vue.js plugin for Plyr.io
License: MIT License
tested with nuxtjs, yarn dev appears to show fullscreen toggle but yarn build + yarn start does not work.
Is your feature request related to a problem? Please describe.
Right now, no TypeScript definitions are provided and therefore, Plyrue does not support typing.
Describe the solution you'd like
Add Typescript definitions to the project.
Describe the bug
When building an app using Webpack 4.35.0 to build an app using Vue 2.6.10 and Plyrue 2.0.4, Webpack throws a Module not found error:
ERROR in ./node_modules/plyrue/dist/plyrue.js
Module not found: Error: Can't resolve 'vue-runtime-helpers/dist/normalize-component.js' in '/Users/julien/projects/ideation6/front/node_modules/plyrue/dist'
@ ./node_modules/plyrue/dist/plyrue.js 5:40-98
@ ./src/main.js
To Reproduce
npm i plyrue
import App from './App.vue';
import Plyrue from 'plyrue';
import Vue from 'vue';
Vue.use(Plyrue);
new Vue({
render: h => h(App),
}).$mount('#app');
npx webpack --progress
Expected behavior
The Webpack build completes successfully.
Desktop:
Additional context
The issue also appears when running the Webpack dev server.
I can't get the poster to work at all, just black player until video plays
Describe the bug
// player.vue
<template>
plyrue(
id="player"
type="video"
ref="plyrue"
:poster="data.thumbnail"
:src="data.stream_url"
:emit="['loadedmetadata', 'timeupdate', 'playing', 'pause', 'ended']"
:options="options"
@loadedmetadata="setMetadata()"
@playing="setStatus('playing')"
@pause="setStatus('pause')"
@ended="setStatus('ended')"
@timeupdate="setCurrentTime(player.currentTime)"
crossorigin
autoplay
)
...
To Reproduce
Steps to reproduce the behavior:
this.media is null
and doesn't work anymoreExpected behavior
Is the event being cleared correctly?
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Using vue-router, Laravel 6 with latest packages.
even adding config to the plugin does not solve it, seems only speed works.
I managed to make it work with SSR just using the basic main.js -> plugin and editing nuxt.config.js to include the plugin. (+css)
the problem I have is it works on yarn dev, but not on production server and can't pinpoint why, I also noticed, even without it working on production, it only works on iOS, not chrome
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
At the moment I've simple disabled the Plyr controls and using a component with a z-index hack on top of the video instance.
Describe the solution you'd like
A clear and concise description of what you want to happen.
It would be great if one could inject a Vue component as customization would be a lot easier.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Current workaround works fine. I'm using a bus to handle events and the 'Controls' component simple sends them back to the player.
Additional context
Add any other context or screenshots about the feature request here.
Custom controls are possible, but I don't believe with Vue components. Please correct me when I'm wrong and if possible show me how it's done. :)
Thanks for your work!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.