videojs / videojs-errors Goto Github PK
View Code? Open in Web Editor NEWA video.js plugin that displays error messages to video viewers.
License: Other
A video.js plugin that displays error messages to video viewers.
License: Other
Briefly describe the issue.
The newest release throws a webpack error. The result is a non uglified js file so its much larger in file size.
ERROR in p_videojs.js from UglifyJs
Unexpected token: name (monitor) [p_videojs.js:49757,6]
"./node_modules/.bin/webpack -p --config webpack.config.js"
the -p flag is important. Make sure not using any extra uglifer plugin. See package.json below.
"devDependencies": {
"babel-core": "^6.24.1",
"babel-loader": "^6.4.1",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-assign": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-react-inline-elements": "^6.22.0",
"babel-preset-env": "^1.6.1",
"babel-preset-es2016": "^6.24.1",
"babel-preset-react": "^6.22.0",
"classnames": "^2.2.5",
"css-loader": "^0.28.4",
"extract-text-webpack-plugin": "^2.1.2",
"node-sass": "^4.7.2",
"promise-polyfill": "6.0.2",
"sass-loader": "^6.0.6",
"style-loader": "^0.18.2",
"url-loader": "^0.6.2",
"webpack": "^3.10.0"
},
"dependencies": {
"can-autoplay": "^3.0.0",
"es6-promise": "^4.1.1",
"global": "^4.3.2",
"ie-array-find-polyfill": "^1.1.0",
"is-empty": "^1.2.0",
"query-string": "^5.1.0",
"react": "^15.4.2",
"react-dom": "^15.6.2",
"video.js": "^6.9.0",
"videojs-contrib-ads": "^6.2.0",
"videojs-contrib-hls": "^5.14.1",
"videojs-errors": "4.1.0",
"videojs-flash": "^2.1.0",
"videojs-hotkeys": "^0.2.21",
"videojs-ima": "^1.3.0"
}
Webpack config:
var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
context: __dirname + "/src",
entry: "./index.js",
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader?presets[]=es2016,presets[]=react'
},
{
test: /\.scss$/,
loader: ExtractTextPlugin.extract({
fallback: 'style-loader', // The backup style loader
use: 'css-loader?sourceMap!sass-loader?sourceMap'
})
},
{
test: /\.(png|jpg|gif|svg)$/,
loader: 'url-loader'
}
],
},
output: {
filename: "p_videojs.js",
path: __dirname + "/dist",
},
plugins: [
new ExtractTextPlugin('p_videojs.css')
],
}
babel.rc
{
"compact": true,
"presets": [
["env", {
"targets": {
"browsers": ["last 2 versions", "safari >= 7"]
}
}]
],
"plugins": [
"transform-object-assign",
"transform-class-properties",
"transform-react-inline-elements",
"transform-object-rest-spread"
]
}
Would compile and uglifiy as normal.
Throws error.
Briefly describe the issue.
When we cast our stream (chromecast).
If we have included the errors plugin, the timeout is not satisfied for live HLS content.
The plugin is calling triggerReady(). Thats call seems to cause the problem if we pause on a break before that, the timeout is not started.
Looking to know how I could prevent thet timeout, reset it, or satisfy it.
Explain in detail the exact steps necessary to reproduce the issue.
Video cast as normal: 'vjs-is-waiting' or stall to stop.
Videois casts and pauses after 45 seconds.
If there are any errors at all, please include them here.
Please include any additional information necessary here. Including the following:
what version of videojs does this occur with?
"version": "6.12.1",
Can reproduce here: https://dev.pac-12.com/live/pac-12-live-press-conferences
it don't work with the latest version of video.js (5.0+), please support it
I'm trying to set custom message for this video.js error and have no success:
VIDEOJS: ERROR: (CODE:0 MEDIA_ERR_CUSTOM) FLASH: rtmpconnectfailure
video.errors({
errors: {
0: {
headline: 'This is an override for the generic MEDIA_ERR_DECODE',
message: 'This is a custom error message'
}
}
});
0.67.3
to 0.67.4
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Hello,
I m interested to use this plugin but I don't know how to built the error.css and error.js files.
Could it be possible to ship the ready made files in the zip?
thanks
1.18.0
to 1.19.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 6 commits.
9af119d
1.19.0
b3f361c
Update changelog
456f4d2
Avoid variable from empty module name be empty (#3026)
17eaa43
Use id of last module in chunk as name base for auto-generated chunks (#3025)
871bfa0
Switch to a code-splitting build and update dependencies (#3020)
2443783
Unified file emission api (#2999)
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Would require some styling to work.
hi
<script src='videojs.errors.js'></script>and the corresponding css file arent included in the master.
I would like to use your plugin (v3.0.3) but after downloading the zip and opening it, I could not find the js/css files to include in the page. How can I get the latest files of this great plugin?
1.9.2
to 1.9.3
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
2019-04-10
The new version differs by 3 commits.
516a06d
1.9.3
a5526ea
Update changelog
c3d73ff
Handle out-of-order binding of identifiers to improve tree-shaking (#2803)
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Cannot use 'in' operator to search for 'default' in undefined
. How to fix it?
v4.1.1 is not transpiling es6 syntax correctly. Specifically, arrow functions are not being transpiled. Not an issue in v4.1.0
Explain in detail the exact steps necessary to reproduce the issue.
git clone [email protected]:brightcove/videojs-errors.git
cd videojs-errors
npm i
npm run build
grep "=>" ./dist/videojs-errors.es.js
Observe that there are remaining arrow functions.
git fetch --all --tags --prune
git checkout tags/v4.1.0 -b v410
npm i
npm build
grep "=>" ./dist/videojs-errors.es.js
Observe that there no are remaining arrow functions.
Expected to see es5 friendly syntax.
Expected to see es6 syntax, specifically arrow functions.
If there are any errors at all, please include them here.
Please include any additional information necessary here. Including the following:
^6.8.0 || ^7.0.0
what browser are affected?
cli only.
what platforms (operating systems and devices) are affected?
OSX 10.13.3
are any videojs plugins being used on the page? If so, please list them below.
No.
The videojs-errors plugin is not registered correctly when using with videojs 6 and npm.
The reason is the package json: "video.js": "^5.19.2"
.
This leads npm to download an own videojs dependency for this plugin that is be used.
So videojs 5 gets imported too and videojs 6 doesn't know the errors plugin.
just try:
import videojs from 'video.js';
import errors from 'videojs-errors';
videojs.getPlugin('errors') //undefined
plugin works properly.
videojs-errors is not registered as a plugin and videojs 5 get additionally added to bundle.
videojs: 6.8.0
videojs-error: 3.1.0
Hello!
My videos that use geoblock return a 403 error, however, with 'mediaerror' it always gets in error 4. I would like it to get into the PLAYER_ERR_GEO_RESTRICTED error. How could I do that?
v7.7.5
videojs-errors
v4.3.2
plugin initializing with video js options is not working.
just do:
import videojs from 'video.js';
import 'videojs-errors';
const options = {
plugins: {
errors: {
errors: {
FOO: {
headline: 'headline',
message: 'This is a custom error message'
}
}
}
}
};
const player = videojs(element, options, () => {
setTimeout(() => {
console.log(player.errors.getAll()); // contains FOO error
player.error({code: 'FOO'}); // empty error screen appears
},2000);
});
custom error should be visible
error screen appears empty (except a white X)
6.8
4.1
3.1.1
to 3.1.2
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
karma is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 11 commits.
7d4d347
chore: release v3.1.2
5077c18
chore: update contributors
fb05fb1
fix(server): use flatted for json.stringify (#3220)
2682bff
feat(docs): callout the key debug strategies. (#3219)
4e87902
fix(changelog): remove release which does not exist (#3214)
30ff73b
fix(browser): report errors to console during singleRun=false (#3209)
5334d1a
fix(file-list): do not preprocess up-to-date files (#3196)
dc5f5de
fix(deps): upgrade sinon-chai 2.x -> 3.x (#3207)
d38f344
fix(package): bump lodash version (#3203)
ffb41f9
refactor(browser): log state transitions in debug (#3202)
240209f
fix(dep): Bump useragent to fix HeadlessChrome version (#3201)
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
See the question - do I need to include it myself - or does videojs magically include it itself, and if so, what path should it have ?
2.0.5
to 2.0.7
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
conventional-changelog-cli is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
1.27.6
to 1.27.7
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
2019-12-01
The new version differs by 4 commits.
c753a7f
1.27.7
1b8a3de
Update changelog
d5651be
Fix incomplete computed property deoptimization (#3267)
d7e3993
Update changelog
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
I'm working on a plugin that allows you to record audio/video using video.js. When the user requests access to the system's microphone using getUserMedia
there's a chance he denies access and this throws an error message. I'd like to use your plugin for this but running into a problem;
when loading the plugin it immediately shows a PLAYER_ERR_NO_SRC
error. This is expected because you're working without a source when recording locally. Is there a way to disable this error message (or all of them)?
if I try to import a language file I got ReferenceError: videojs is not defined
so any lang file should have an import statement befor videojs to fix this.
besides that, a work around could be to provide the pure json files in videojs build.
this also would be great to extend a language during project build.
just do
import videojs from 'video.js';
import 'videojs-errors';
import 'videojs-errors/dist/lang/de';
should work as expected
it breaks
videojs: 6.8.0
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.