You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need help with videojs-resolution-switcher plugin in react.js
I have installed videojs-resolution-switcher, when I am giving plugin parameter the compiler is not detecting videojs-resolution-switcher.
import React from 'react';
import videojs from "video.js";
import videoPath from '../../assets/tryDjango.mp4'
import videoJsResolutionSwitcher from 'videojs-resolution-switcher'
This plugin does not have a default export, so you need to do require("videojs-resolution-switcher"); to include it in the global scope. Also make sure to assign window.videojs = videojs for the plugin to work.
Hello Everyone.
Need help with videojs-resolution-switcher plugin in react.js
I have installed videojs-resolution-switcher, when I am giving plugin parameter the compiler is not detecting videojs-resolution-switcher.
import React from 'react';
import videojs from "video.js";
import videoPath from '../../assets/tryDjango.mp4'
import videoJsResolutionSwitcher from 'videojs-resolution-switcher'
export default class VideoPlayer extends React.Component {
componentDidMount() {
// instantiate Video.js
this.player = videojs(this.videoNode, {
}
getting the below error
Error: plugin "videoJsResolutionSwitcher" does not exist
any idea ?
I can use the video with out plugin but not able to use plugin.
Reagrds,
Jasham
The text was updated successfully, but these errors were encountered: