Socket
Socket
Sign inDemoInstall

videojs-errors

Package Overview
Dependencies
Maintainers
127
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

videojs-errors - npm Package Compare versions

Comparing version 4.3.0 to 4.3.1

11

CHANGELOG.md

@@ -0,1 +1,12 @@

<a name="4.3.1"></a>
## [4.3.1](https://github.com/brightcove/videojs-errors/compare/v4.3.0...v4.3.1) (2020-02-08)
### Bug Fixes
* **lang:** Add missing Arabic translations ([#185](https://github.com/brightcove/videojs-errors/issues/185)) ([708b398](https://github.com/brightcove/videojs-errors/commit/708b398))
### Chores
* **package:** Update development dependencies ([#186](https://github.com/brightcove/videojs-errors/issues/186)) ([98ce727](https://github.com/brightcove/videojs-errors/commit/98ce727))
<a name="4.3.0"></a>

@@ -2,0 +13,0 @@ # [4.3.0](https://github.com/brightcove/videojs-errors/compare/v4.2.0...v4.3.0) (2019-08-06)

7

dist/lang/ar.js

@@ -11,3 +11,8 @@ videojs.addLanguage('ar', {

"The video you are trying to watch is encrypted and we do not know how to decrypt it": "تم تشفير الفيديو الذي تحاول مشاهدته و لا نعرف كيفية فك تشفيرها",
"An unanticipated problem was encountered, check back soon and try again": "نواجه مشكلة غير متوقعة، تحقق وحاول مرة أخرى بعد قليل"
"An unanticipated problem was encountered, check back soon and try again": "نواجه مشكلة غير متوقعة، تحقق وحاول مرة أخرى بعد قليل",
"This video is restricted from playing on your current domain": "يحظر تشغيل مقطع الفيديو هذا في نطاقك الحالي",
"This video is restricted at your current IP address": "يحظر تشغيل مقطع الفيديو هذا في عنوان IP الحالي الخاص بك",
"This video is restricted from playing in your current geographic region": "يحظر تشغيل مقطع الفيديو هذا في منطقتك الجغرافية الحالية",
"If you are using an older browser please try upgrading or installing Flash.": "إذا كنت تستخدم نسخة أقدم من المتصفح، يرجى محاولة تحديثه أو تثبيت Flash.",
"OK": "موافق"
});

@@ -11,3 +11,8 @@ {

"The video you are trying to watch is encrypted and we do not know how to decrypt it": "تم تشفير الفيديو الذي تحاول مشاهدته و لا نعرف كيفية فك تشفيرها",
"An unanticipated problem was encountered, check back soon and try again": "نواجه مشكلة غير متوقعة، تحقق وحاول مرة أخرى بعد قليل"
"An unanticipated problem was encountered, check back soon and try again": "نواجه مشكلة غير متوقعة، تحقق وحاول مرة أخرى بعد قليل",
"This video is restricted from playing on your current domain": "يحظر تشغيل مقطع الفيديو هذا في نطاقك الحالي",
"This video is restricted at your current IP address": "يحظر تشغيل مقطع الفيديو هذا في عنوان IP الحالي الخاص بك",
"This video is restricted from playing in your current geographic region": "يحظر تشغيل مقطع الفيديو هذا في منطقتك الجغرافية الحالية",
"If you are using an older browser please try upgrading or installing Flash.": "إذا كنت تستخدم نسخة أقدم من المتصفح، يرجى محاولة تحديثه أو تثبيت Flash.",
"OK": "موافق"
}

4

dist/videojs-errors.cjs.js

@@ -1,2 +0,2 @@

/*! @name videojs-errors @version 4.3.0 @license Apache-2.0 */
/*! @name videojs-errors @version 4.3.1 @license Apache-2.0 */
'use strict';

@@ -9,3 +9,3 @@

var version = "4.3.0";
var version = "4.3.1";

@@ -12,0 +12,0 @@ var FlashObj = videojs.getComponent('Flash');

@@ -1,6 +0,6 @@

/*! @name videojs-errors @version 4.3.0 @license Apache-2.0 */
/*! @name videojs-errors @version 4.3.1 @license Apache-2.0 */
import videojs from 'video.js';
import document from 'global/document';
var version = "4.3.0";
var version = "4.3.1";

@@ -7,0 +7,0 @@ var FlashObj = videojs.getComponent('Flash');

@@ -1,2 +0,2 @@

/*! @name videojs-errors @version 4.3.0 @license Apache-2.0 */
/*! @name videojs-errors @version 4.3.1 @license Apache-2.0 */
(function (global, factory) {

@@ -6,3 +6,3 @@ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('video.js'), require('global/document')) :

(global = global || self, global.videojsErrors = factory(global.videojs, global.document));
}(this, function (videojs, document) { 'use strict';
}(this, (function (videojs, document) { 'use strict';

@@ -12,3 +12,3 @@ videojs = videojs && videojs.hasOwnProperty('default') ? videojs['default'] : videojs;

var version = "4.3.0";
var version = "4.3.1";

@@ -333,2 +333,2 @@ var FlashObj = videojs.getComponent('Flash');

}));
})));

@@ -1,2 +0,2 @@

/*! @name videojs-errors @version 4.3.0 @license Apache-2.0 */
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("video.js"),require("global/document")):"function"==typeof define&&define.amd?define(["video.js","global/document"],r):(e=e||self).videojsErrors=r(e.videojs,e.document)}(this,function(e,r){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,r=r&&r.hasOwnProperty("default")?r.default:r;var o=e.getComponent("Flash"),n=!e.browser.IS_IPHONE,i=e.registerPlugin||e.plugin,t={header:"",code:"",message:"",timeout:45e3,dismiss:n,errors:{1:{type:"MEDIA_ERR_ABORTED",headline:"The video download was cancelled"},2:{type:"MEDIA_ERR_NETWORK",headline:"The video connection was lost, please confirm you are connected to the internet"},3:{type:"MEDIA_ERR_DECODE",headline:"The video is bad or in a format that cannot be played on your browser"},4:{type:"MEDIA_ERR_SRC_NOT_SUPPORTED",headline:"This video is either unavailable or not supported in this browser"},5:{type:"MEDIA_ERR_ENCRYPTED",headline:"The video you are trying to watch is encrypted and we do not know how to decrypt it"},unknown:{type:"MEDIA_ERR_UNKNOWN",headline:"An unanticipated problem was encountered, check back soon and try again"},"-1":{type:"PLAYER_ERR_NO_SRC",headline:"No video has been loaded"},"-2":{type:"PLAYER_ERR_TIMEOUT",headline:"Could not download the video"},PLAYER_ERR_DOMAIN_RESTRICTED:{headline:"This video is restricted from playing on your current domain"},PLAYER_ERR_IP_RESTRICTED:{headline:"This video is restricted at your current IP address"},PLAYER_ERR_GEO_RESTRICTED:{headline:"This video is restricted from playing in your current geographic region"},FLASHLS_ERR_CROSS_DOMAIN:{headline:"The video could not be loaded: crossdomain access denied."}}},s=function n(i,s){var a,d,l,c=[],u=function(r){s.errors=e.mergeOptions(s.errors,r),Object.keys(s.errors).forEach(function(e){var r=s.errors[e];r.type||(r.type=e)})};u();var f=function(){i.clearTimeout(d),l&&(l=!1,i.removeClass("vjs-waiting")),d=i.setTimeout(function(){i.error()||i.paused()||i.ended()||(l=!0,i.addClass("vjs-waiting"))},1e3),i.clearTimeout(a),a=i.setTimeout(function(){i.error()||i.paused()||i.ended()||i.error({code:-2,type:"PLAYER_ERR_TIMEOUT"})},s.timeout),i.error()&&-2===i.error().code&&i.error(null)},h=function(){for(var e;c.length;)e=c.shift(),i.off(e[0],e[1]);i.clearTimeout(a),i.clearTimeout(d)},p=function(){var e,r,o,n=0;h(),f(),e=["timeupdate","adtimeupdate"],r=function(){var e=i.currentTime();e!==n&&(n=e,f())},o=function(){if(!i.error()){var e=i.$(".vjs-tech");if(e&&"application/x-shockwave-flash"===e.type&&!e.vjs_getProperty)return void i.error({code:-2,type:"PLAYER_ERR_TIMEOUT"});if(i.paused())return f();if(i.ended())return f()}r.call(this)},i.on(e,o),c.push([e,o])},v=function(){i.currentSrc()||i.error({code:-1,type:"PLAYER_ERR_NO_SRC"})},E=function(){var n="",t=i.error(),a=r.createElement("div"),d="";if(t){if((t=e.mergeOptions(t,s.errors[t.code||t.type||0])).message&&(n='<div class="vjs-errors-details">'+i.localize("Technical details")+'\n : <div class="vjs-errors-message">'+i.localize(t.message)+"</div>\n </div>"),4===t.code&&o&&!o.isSupported())n+='<span class="vjs-errors-flashmessage">'+i.localize("If you are using an older browser please try upgrading or installing Flash.")+"</span>";var l=i.getChild("errorDisplay");if(a.className="vjs-errors-dialog",a.id="vjs-errors-dialog",d='<div class="vjs-errors-content-container">\n <h2 class="vjs-errors-headline">'+this.localize(t.headline)+'</h2>\n <div class="vjs-errors-code"><b>'+this.localize("Error Code")+":</b> "+(t.type||t.code)+"</div>\n "+n+"\n </div>",l.closeable(!("dismiss"in t)||t.dismiss)){d+='<div class="vjs-errors-ok-button-container">\n <button class="vjs-errors-ok-button">'+this.localize("OK")+"</button>\n </div>",a.innerHTML=d,l.fillWith(a),l.contentEl().firstChild.appendChild(l.getChild("closeButton").el());var c=l.el().querySelector(".vjs-errors-ok-button");i.on(c,"click",function(){l.close()})}else a.innerHTML=d,l.fillWith(a);(i.currentWidth()<=600||i.currentHeight()<=250)&&l.addClass("vjs-xs"),l.one("modalclose",function(){return i.error(null)})}},R=function e(){h(),i.removeClass("vjs-errors"),i.off("play",p),i.off("play",v),i.off("dispose",e),i.off(["aderror","error"],E)},m=function(r){R(),n(i,e.mergeOptions(t,r))};m.extend=function(e){return u(e)},m.getAll=function(){return e.mergeOptions(s.errors)},m.timeout=function(e){if(void 0===e)return s.timeout;e!==s.timeout&&(s.timeout=e,i.paused()||p())},m.disableProgress=function(){},i.on("play",p),i.on("play",v),i.on("dispose",R),i.on(["aderror","error"],E),i.ready(function(){i.addClass("vjs-errors")}),i.paused()||p(),m.VERSION="4.3.0",i.errors=m},a=function(r){s(this,e.mergeOptions(t,r))};return["extend","getAll"].forEach(function(r){a[r]=function(){e.log.warn("The errors."+r+"() method is not available until the plugin has been initialized!")}}),a.VERSION="4.3.0",i("errors",a),a});
/*! @name videojs-errors @version 4.3.1 @license Apache-2.0 */
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("video.js"),require("global/document")):"function"==typeof define&&define.amd?define(["video.js","global/document"],r):(e=e||self).videojsErrors=r(e.videojs,e.document)}(this,(function(e,r){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,r=r&&r.hasOwnProperty("default")?r.default:r;var o=e.getComponent("Flash"),n=!e.browser.IS_IPHONE,i=e.registerPlugin||e.plugin,t={header:"",code:"",message:"",timeout:45e3,dismiss:n,errors:{1:{type:"MEDIA_ERR_ABORTED",headline:"The video download was cancelled"},2:{type:"MEDIA_ERR_NETWORK",headline:"The video connection was lost, please confirm you are connected to the internet"},3:{type:"MEDIA_ERR_DECODE",headline:"The video is bad or in a format that cannot be played on your browser"},4:{type:"MEDIA_ERR_SRC_NOT_SUPPORTED",headline:"This video is either unavailable or not supported in this browser"},5:{type:"MEDIA_ERR_ENCRYPTED",headline:"The video you are trying to watch is encrypted and we do not know how to decrypt it"},unknown:{type:"MEDIA_ERR_UNKNOWN",headline:"An unanticipated problem was encountered, check back soon and try again"},"-1":{type:"PLAYER_ERR_NO_SRC",headline:"No video has been loaded"},"-2":{type:"PLAYER_ERR_TIMEOUT",headline:"Could not download the video"},PLAYER_ERR_DOMAIN_RESTRICTED:{headline:"This video is restricted from playing on your current domain"},PLAYER_ERR_IP_RESTRICTED:{headline:"This video is restricted at your current IP address"},PLAYER_ERR_GEO_RESTRICTED:{headline:"This video is restricted from playing in your current geographic region"},FLASHLS_ERR_CROSS_DOMAIN:{headline:"The video could not be loaded: crossdomain access denied."}}},s=function n(i,s){var a,d,l,c=[],u=function(r){s.errors=e.mergeOptions(s.errors,r),Object.keys(s.errors).forEach((function(e){var r=s.errors[e];r.type||(r.type=e)}))};u();var f=function(){i.clearTimeout(d),l&&(l=!1,i.removeClass("vjs-waiting")),d=i.setTimeout((function(){i.error()||i.paused()||i.ended()||(l=!0,i.addClass("vjs-waiting"))}),1e3),i.clearTimeout(a),a=i.setTimeout((function(){i.error()||i.paused()||i.ended()||i.error({code:-2,type:"PLAYER_ERR_TIMEOUT"})}),s.timeout),i.error()&&-2===i.error().code&&i.error(null)},h=function(){for(var e;c.length;)e=c.shift(),i.off(e[0],e[1]);i.clearTimeout(a),i.clearTimeout(d)},p=function(){var e,r,o,n=0;h(),f(),e=["timeupdate","adtimeupdate"],r=function(){var e=i.currentTime();e!==n&&(n=e,f())},o=function(){if(!i.error()){var e=i.$(".vjs-tech");if(e&&"application/x-shockwave-flash"===e.type&&!e.vjs_getProperty)return void i.error({code:-2,type:"PLAYER_ERR_TIMEOUT"});if(i.paused())return f();if(i.ended())return f()}r.call(this)},i.on(e,o),c.push([e,o])},v=function(){i.currentSrc()||i.error({code:-1,type:"PLAYER_ERR_NO_SRC"})},E=function(){var n="",t=i.error(),a=r.createElement("div"),d="";if(t){if((t=e.mergeOptions(t,s.errors[t.code||t.type||0])).message&&(n='<div class="vjs-errors-details">'+i.localize("Technical details")+'\n : <div class="vjs-errors-message">'+i.localize(t.message)+"</div>\n </div>"),4===t.code&&o&&!o.isSupported())n+='<span class="vjs-errors-flashmessage">'+i.localize("If you are using an older browser please try upgrading or installing Flash.")+"</span>";var l=i.getChild("errorDisplay");if(a.className="vjs-errors-dialog",a.id="vjs-errors-dialog",d='<div class="vjs-errors-content-container">\n <h2 class="vjs-errors-headline">'+this.localize(t.headline)+'</h2>\n <div class="vjs-errors-code"><b>'+this.localize("Error Code")+":</b> "+(t.type||t.code)+"</div>\n "+n+"\n </div>",l.closeable(!("dismiss"in t)||t.dismiss)){d+='<div class="vjs-errors-ok-button-container">\n <button class="vjs-errors-ok-button">'+this.localize("OK")+"</button>\n </div>",a.innerHTML=d,l.fillWith(a),l.contentEl().firstChild.appendChild(l.getChild("closeButton").el());var c=l.el().querySelector(".vjs-errors-ok-button");i.on(c,"click",(function(){l.close()}))}else a.innerHTML=d,l.fillWith(a);(i.currentWidth()<=600||i.currentHeight()<=250)&&l.addClass("vjs-xs"),l.one("modalclose",(function(){return i.error(null)}))}},R=function e(){h(),i.removeClass("vjs-errors"),i.off("play",p),i.off("play",v),i.off("dispose",e),i.off(["aderror","error"],E)},m=function(r){R(),n(i,e.mergeOptions(t,r))};m.extend=function(e){return u(e)},m.getAll=function(){return e.mergeOptions(s.errors)},m.timeout=function(e){if(void 0===e)return s.timeout;e!==s.timeout&&(s.timeout=e,i.paused()||p())},m.disableProgress=function(){},i.on("play",p),i.on("play",v),i.on("dispose",R),i.on(["aderror","error"],E),i.ready((function(){i.addClass("vjs-errors")})),i.paused()||p(),m.VERSION="4.3.1",i.errors=m},a=function(r){s(this,e.mergeOptions(t,r))};return["extend","getAll"].forEach((function(r){a[r]=function(){e.log.warn("The errors."+r+"() method is not available until the plugin has been initialized!")}})),a.VERSION="4.3.1",i("errors",a),a}));
{
"name": "videojs-errors",
"version": "4.3.0",
"version": "4.3.1",
"author": "Brightcove, Inc.",

@@ -70,3 +70,3 @@ "description": "A Video.js plugin for custom error reporting",

"devDependencies": {
"conventional-changelog-cli": "^2.0.21",
"conventional-changelog-cli": "^2.0.31",
"conventional-changelog-videojs": "^3.0.0",

@@ -76,5 +76,5 @@ "doctoc": "^1.3.1",

"jsdoc": "git+https://github.com/BrandonOCasey/jsdoc.git#feat/plugin-from-cli",
"karma": "^4.1.0",
"karma": "^4.4.1",
"lint-staged": "^8.2.1",
"node-sass": "^4.12.0",
"node-sass": "^4.13.1",
"not-prerelease": "^1.0.1",

@@ -85,11 +85,11 @@ "npm-merge-driver-install": "^1.0.0",

"postcss-cli": "^6.1.3",
"rollup": "^1.16.7",
"rollup": "^1.31.0",
"shx": "^0.3.2",
"sinon": "^6.1.5",
"videojs-generate-karma-config": "^5.3.0",
"videojs-generate-postcss-config": "^2.1.0",
"videojs-generate-rollup-config": "^3.2.0",
"videojs-generate-karma-config": "^5.3.1",
"videojs-generate-postcss-config": "^2.1.1",
"videojs-generate-rollup-config": "^5.0.1",
"videojs-generator-verify": "^1.2.0",
"videojs-languages": "^2.0.0",
"videojs-standard": "^8.0.3"
"videojs-standard": "^8.0.4"
},

@@ -96,0 +96,0 @@ "browserslist": [

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc