Socket
Socket
Sign inDemoInstall

videojs-errors

Package Overview
Dependencies
Maintainers
2
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 0.1.6 to 0.1.7

dist/lang/de.js

12

dist/lang/es.js
videojs.addLanguage("es",{
"No video has been loaded": "Ningún vídeo se ha cargado",
"Could not download the video": "No se pudo descargar el video",
"The video connection was lost, please confirm you are connected to the internet": "La conexión de vídeo se perdió, por favor confirme que está conectado a Internet",
"The video is bad or in a format that cannot be played on your browser": "El video es malo o en un formato que no se puede jugar en su navegador",
"This video is either unavailable or not supported in this browser": "Este video no está disponible o no está soportado en este navegador",
"No video has been loaded": "No hay ningún vídeo cargado.",
"Could not download the video": "No se ha podido descargar el vídeo.",
"The video connection was lost, please confirm you are connected to the internet": "Se ha perdido la conexión al vídeo. Compruebe si su equipo está conectado a internet.",
"The video is bad or in a format that cannot be played on your browser": "El vídeo está dañado o tiene un formato no reproducible en su navegador.",
"This video is either unavailable or not supported in this browser": "Este vídeo no está disponible o es incompatible con este navegador.",
"Error Code": "Código de error",
"Technical details": "Detalles Técnicos"
"Technical details": "Detalles técnicos"
});

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

/*! videojs-errors - v0.1.5 - 2014-09-02
/*! videojs-errors - v0.1.6 - 2014-09-23
* Copyright (c) 2014 Brightcove; Licensed Apache-2.0 */

@@ -3,0 +3,0 @@ (function(){

@@ -1,3 +0,3 @@

/*! videojs-errors - v0.1.5 - 2014-09-02
/*! videojs-errors - v0.1.6 - 2014-09-23
* Copyright (c) 2014 Brightcove; Licensed Apache-2.0 */
!function(){var a={header:"",code:"",message:"",timeout:45e3,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"}}},b=function(b,c){var d,e=videojs.util.mergeOptions(a,c),f=function(){window.clearTimeout(d),d=window.setTimeout(function(){b.error()||b.error({code:-2,type:"PLAYER_ERR_TIMEOUT"})},e.timeout),b.error()&&-2===b.error().code&&b.error(null)},g=[],h=function(a,c){var d=function(){return b.paused()?i():b.ended()?i():void c.call(this)};b.on(a,d),g.push([a,d])},i=function(){for(var a;g.length;)a=g.shift(),b.off(a[0],a[1]);window.clearTimeout(d)};b.on("play",function(){var a=0;i(),f(),h("timeupdate",function(){var c=b.currentTime();c!==a&&(a=c,f())}),h("progress",f)})},c=function(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent("on"+b,c)},d=function(a,c){b(a,c),a.on("play",function(){(null===a.currentSrc()||void 0===a.currentSrc()||""===a.currentSrc())&&a.error({code:-1,type:"PLAYER_ERR_NO_SRC"})})};videojs.plugin("errors",function(b){var e=this,f=videojs.util.mergeOptions(a,b);this.on("error",function(){var a,b,d="";a=videojs.util.mergeOptions(this.error(),f.errors[this.error().code||0]),a.message&&(d='<div class="vjs-errors-details">'+this.localize("Technical details")+': <div class="vjs-errors-message">'+this.localize(a.message)+"</div></div>"),b=this.errorDisplay,b.el().innerHTML='<div class="vjs-errors-dialog"><button class="vjs-errors-close-button"></button><div class="vjs-errors-content-container"><h2 class="vjs-errors-headline">'+this.localize(a.headline)+"</h2><div><b>"+this.localize("Error Code")+"</b>: "+(a.type||a.code)+"</div>"+this.localize(d)+'</div><div class="vjs-errors-ok-button-container"><button class="vjs-errors-ok-button">'+this.localize("OK")+"</button></div></div>",(e.width()<=600||e.height()<=250)&&b.addClass("vjs-xs"),c(b.el().querySelector(".vjs-errors-close-button"),"click",function(){b.hide()}),c(b.el().querySelector(".vjs-errors-ok-button"),"click",function(){b.hide()})}),d(this,f)})}();
{
"No video has been loaded": "Ningún vídeo se ha cargado",
"Could not download the video": "No se pudo descargar el video",
"The video connection was lost, please confirm you are connected to the internet": "La conexión de vídeo se perdió, por favor confirme que está conectado a Internet",
"The video is bad or in a format that cannot be played on your browser": "El video es malo o en un formato que no se puede jugar en su navegador",
"This video is either unavailable or not supported in this browser": "Este video no está disponible o no está soportado en este navegador",
"No video has been loaded": "No hay ningún vídeo cargado.",
"Could not download the video": "No se ha podido descargar el vídeo.",
"The video connection was lost, please confirm you are connected to the internet": "Se ha perdido la conexión al vídeo. Compruebe si su equipo está conectado a internet.",
"The video is bad or in a format that cannot be played on your browser": "El vídeo está dañado o tiene un formato no reproducible en su navegador.",
"This video is either unavailable or not supported in this browser": "Este vídeo no está disponible o es incompatible con este navegador.",
"Error Code": "Código de error",
"Technical details": "Detalles Técnicos"
"Technical details": "Detalles técnicos"
}
{
"name": "videojs-errors",
"version": "0.1.6",
"version": "0.1.7",
"author": "Brightcove",

@@ -5,0 +5,0 @@ "description": "A VideoJS plugin for custom error reporting",

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