我尝试了几个插件,因此,有些是非常老(视频js 4),目前我一直在测试视频js 5,但至今没有一个工作。
我试过也试过
这个最初是在中被问到的,我没有找到这个文件中的一些,我在其中一个答案上使用了示例代码。但是,我得到了以下错误:
[videojs-vast-vpaid] AD ERROR: VAST Error: on VASTClient.requestVastXML, HTTP request error with status '-1'
Object { message: "VAST Error: on VASTClient.requestVastXML, H
我试图添加使用组件的自定义按钮。
试着在播放器上显示公司标志。定义选项对象并调用组件,但不获取组件函数中的值。
(function(window, videojs) {
var options = {"logo": "<https://brightcovelogo.png>"};
// inti player
var player = videojs.getPlayer('brightcoveplayer');
var ContentLogo= videojs.extend(Component, {
是Video.js的自定义插件。
MediaCmsVjsPlugin.js源文件以以下开头:
import { version as VERSION } from '../package.json';
import 'mediacms-vjs-plugin-font-icons/dist/mediacms-vjs-icons.css';
import './styles.scss';
可以看出,没有import of videojs。但是,所有代码都使用videojs,如下所示:
function generatePlugin() {
我试图在Vuejs组件中使用,它是我通过npm安装的。得到了一个错误:
TypeError: videojs is not a function
at VueComponent.mounted (VR.vue?d2da:23)
at callHook (vue.esm.js?65d7:2701)
at Object.insert (vue.esm.js?65d7:3588)
at invokeInsertHook (vue.esm.js?65d7:5541)
at VueComponent.patch [as __patch__] (vue.esm.js?65d7:5744)
at VueCo
我正在react JS页面中嵌入一个.m3u8流。我正在使用video.js,并且有一些不需要的文本显示,我就是不能删除!文本在两行上显示"Video Player is loading“,然后是"This is a modal window”。如下图所示(蓝色方框包含视频)。 一旦加载了视频,文本就不会消失,我无法弄清楚它为什么会出现在第一个地方。如果有人知道如何删除这篇文章,那就太棒了。谢谢。 请在下面找到我的代码。它基本上是从文档中复制和粘贴的:https://docs.videojs.com/tutorial-react.html ? import React
在我的ember应用程序中,我使用npm install --save-dev video.js bower install video.js安装了videojs
在我的hbs代码中是:
To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video
javascript代码为: v
所以我决定使用videojs.wavesurfer,我在控制台上看不到任何错误信息,我的屏幕上也看不到任何东西,下面的代码能帮我读一下avi文件吗?或者,如果我们不能在videojswavesurfer中阅读avi,请让我知道。
import WaveSurfer from '../../../../node_modules/wavesurfer.js'
import TimelinePlug from '../../../../node_modules/wavesurfer.js/dist/plugin/wavesurfer.timeline.min.js'
我试图让来自video.js的任何插件工作,但我不断得到错误,因为它与videojs('video_example_1)有关,说videojs没有定义。我从最近的一个插件复制了代码,只是为了看看我是不是做错了什么。我得到的确切错误是:
TypeError: vjs is undefined
var video = videojs('video_example_1'); (line 41)
ReferenceError: videojs is not defined
有人能帮帮忙吗?下面粘贴了一些代码:
<link href="//vjs.zencdn.ne
最近,我一直在为视频of的组件而挣扎。我用ReactJS钩子实现了我的视频播放器,现在我必须添加一些自定义的SVG图标。
但是当我声明VideoJS的新组件时,我不知道如何添加我的自定义图标,而且文档在这个主题上非常糟糕。
下面是我在其中初始化的useEffect钩子代码:
useEffect(() => {
// Make sure Video.js player is only initialized once
if (!playerRef.current) {
const videoElement = videoRef.current;
if (!videoElement
我试图用视频录制视频,我的应用程序是角7,我跟踪了他们的wiki。下面是下面的链接,但这对我不起作用。
这是我所得到的错误
ERROR in ./node_modules/videojs-record/dist/videojs.record.js
Module not found: Error: Can't resolve 'RecordRTC' in '/path/to/project/root/node_modules/videojs-record/dist'
ERROR in ./node_modules/videojs-record/dist/v
我正在使用videoJs播放器播放视频,我想知道在videoJS中是否支持mpeg-dash?..I引用了这个链接来播放mpeg-dash视频。
在代码中
videojs(this.get('element')); //here this.get('element') refers to video object
var url= .mpd manifest file
var context = new Dash.di.DashContext();
var player = new MediaPlayer(context);
player.startu