mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-17 19:01:04 +01:00
Fix error Unexpected token '='. Expected an opening '(' before a method's parameter list
This commit is contained in:
parent
2103c2869d
commit
ef1c1543ab
@ -17,47 +17,46 @@
|
||||
*/
|
||||
// Create a class for the element
|
||||
class multi_video extends HTMLElement {
|
||||
/**
|
||||
* shadow dom container
|
||||
* @private
|
||||
*/
|
||||
_shadow = null;
|
||||
/**
|
||||
* wrapper container holds video tags
|
||||
* @private
|
||||
*/
|
||||
|
||||
/**
|
||||
* contains video objects of type VideoTagsArray
|
||||
* @private
|
||||
*/
|
||||
_videos = [];
|
||||
/**
|
||||
* keeps duration time internally
|
||||
* @private
|
||||
*/
|
||||
|
||||
_duration = 0;
|
||||
/**
|
||||
* keeps currentTime internally
|
||||
* @private
|
||||
*/
|
||||
|
||||
_currentTime = 0;
|
||||
/**
|
||||
* Keeps video playing state internally
|
||||
* @private
|
||||
*/
|
||||
|
||||
__playing = false;
|
||||
|
||||
constructor() {
|
||||
super(); // Create a shadow root
|
||||
|
||||
/**
|
||||
* contains video objects of type VideoTagsArray
|
||||
* @private
|
||||
*/
|
||||
_videos = [];
|
||||
/**
|
||||
* keeps duration time internally
|
||||
* @private
|
||||
*/
|
||||
|
||||
_duration = 0;
|
||||
/**
|
||||
* keeps currentTime internally
|
||||
* @private
|
||||
*/
|
||||
|
||||
_currentTime = 0;
|
||||
/**
|
||||
* Keeps video playing state internally
|
||||
* @private
|
||||
*/
|
||||
|
||||
__playing = false;
|
||||
|
||||
/**
|
||||
* shadow dom container
|
||||
* @private
|
||||
*/
|
||||
this._shadow = this.attachShadow({
|
||||
mode: 'open'
|
||||
}); // Create videos wrapper
|
||||
|
||||
/**
|
||||
* wrapper container holds video tags
|
||||
* @private
|
||||
*/
|
||||
this._wrapper = document.createElement('div');
|
||||
|
||||
this._wrapper.setAttribute('class', 'wrapper'); // Create some CSS to apply to the shadow dom
|
||||
|
@ -20,75 +20,74 @@ import(egw.webserverUrl+"/node_modules/@bundled-es-modules/pdfjs-dist/build/pdf.
|
||||
methodes are mostley identical as video html. No controls attribute supported yet.
|
||||
*/
|
||||
class pdf_player extends HTMLElement {
|
||||
/**
|
||||
* shadow dom container
|
||||
* @private
|
||||
*/
|
||||
_shadow = null;
|
||||
/**
|
||||
* wrapper container holds canvas
|
||||
* @private
|
||||
*/
|
||||
|
||||
/**
|
||||
* keeps duration time internally
|
||||
* @private
|
||||
*/
|
||||
_duration = 0;
|
||||
/**
|
||||
* keeps currentTime internally
|
||||
* @private
|
||||
*/
|
||||
|
||||
_currentTime = 0;
|
||||
/**
|
||||
* Keeps playing state internally
|
||||
* @private
|
||||
*/
|
||||
|
||||
__playing = false;
|
||||
/**
|
||||
* keeps playing interval id
|
||||
* @private
|
||||
*/
|
||||
|
||||
__playingInterval = 0;
|
||||
/**
|
||||
* keeps play back rate
|
||||
* @private
|
||||
*/
|
||||
|
||||
_playBackRate = 1000;
|
||||
/**
|
||||
* keeps ended state of playing pdf
|
||||
* @private
|
||||
*/
|
||||
|
||||
_ended = false;
|
||||
/**
|
||||
* keep paused state
|
||||
* @private
|
||||
*/
|
||||
|
||||
_paused = false;
|
||||
/**
|
||||
* keeps pdf doc states
|
||||
* @private
|
||||
*/
|
||||
|
||||
__pdfViewState = {
|
||||
pdf: null,
|
||||
currentPage: 1,
|
||||
zoom: 1
|
||||
};
|
||||
|
||||
constructor() {
|
||||
super(); // Create a shadow root
|
||||
|
||||
/**
|
||||
* keeps duration time internally
|
||||
* @private
|
||||
*/
|
||||
_duration = 0;
|
||||
/**
|
||||
* keeps currentTime internally
|
||||
* @private
|
||||
*/
|
||||
|
||||
_currentTime = 0;
|
||||
/**
|
||||
* Keeps playing state internally
|
||||
* @private
|
||||
*/
|
||||
|
||||
__playing = false;
|
||||
/**
|
||||
* keeps playing interval id
|
||||
* @private
|
||||
*/
|
||||
|
||||
__playingInterval = 0;
|
||||
/**
|
||||
* keeps play back rate
|
||||
* @private
|
||||
*/
|
||||
|
||||
_playBackRate = 1000;
|
||||
/**
|
||||
* keeps ended state of playing pdf
|
||||
* @private
|
||||
*/
|
||||
|
||||
_ended = false;
|
||||
/**
|
||||
* keep paused state
|
||||
* @private
|
||||
*/
|
||||
|
||||
_paused = false;
|
||||
/**
|
||||
* keeps pdf doc states
|
||||
* @private
|
||||
*/
|
||||
|
||||
__pdfViewState = {
|
||||
pdf: null,
|
||||
currentPage: 1,
|
||||
zoom: 1
|
||||
};
|
||||
|
||||
/**
|
||||
* shadow dom container
|
||||
* @private
|
||||
*/
|
||||
this._shadow = this.attachShadow({
|
||||
mode: 'open'
|
||||
}); // Create wrapper
|
||||
|
||||
/**
|
||||
* wrapper container holds canvas
|
||||
* @private
|
||||
*/
|
||||
this._wrapper = document.createElement('div');
|
||||
|
||||
this._wrapper.setAttribute('class', 'wrapper'); // Create some CSS to apply to the shadow dom
|
||||
|
Loading…
Reference in New Issue
Block a user