We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
i use plyr@3.7.8 in nextjs13.4, the player not work,but the same code in reactjs,it work, why? here is the code
`"use client" import React, { useRef, useEffect } from 'react'; import Plyr from 'plyr'; import "plyr/dist/plyr.css"; const Player = ({ videoSrc, videoType }) => { const videoRef = useRef();
useEffect(() => { if(!videoRef.current) return; const playerInstance = new Plyr(videoRef.current); return () => { playerInstance.destroy(); } }, []); return ( <video ref={videoRef} controls playsInline> {/* <source src={videoSrc} type={videoType || 'video/mp4'} /> */} </video> ); } export default Player;`
Project Info: Next.JS: 13.4 Plyr: 3.7.8
The text was updated successfully, but these errors were encountered:
No branches or pull requests
i use plyr@3.7.8 in nextjs13.4, the player not work,but the same code in reactjs,it work, why?
here is the code
`"use client"
import React, { useRef, useEffect } from 'react';
import Plyr from 'plyr';
import "plyr/dist/plyr.css";
const Player = ({ videoSrc, videoType }) => {
const videoRef = useRef();
Expected behaviour
Actual behaviour
Steps to reproduce
Environment
Additional context
Project Info:
Next.JS: 13.4
Plyr: 3.7.8
The text was updated successfully, but these errors were encountered: