You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.isOurCanvas=false;// (internal) we created canvas and manage it
18
20
self.video=options.video;// HTML video element (optional if canvas specified)
19
21
self.canvasParent=null;// (internal) HTML canvas parent element
@@ -28,7 +30,7 @@ var SubtitlesOctopus = function (options) {
28
30
self.subUrl=options.subUrl;// Link to sub file (optional if subContent specified)
29
31
self.subContent=options.subContent||null;// Sub content (optional if subUrl specified)
30
32
self.onErrorEvent=options.onError;// Function called in case of critical error meaning sub wouldn't be shown and you should use alternative method (for instance it occurs if browser doesn't support web workers).
31
-
self.debug=options.debug||false;// When debug enabled, some performance info printed in console.
33
+
self.debug=options.debug||false;// When debug enabled, some performance info printed in console.
32
34
self.lastRenderTime=0;// (internal) Last time we got some frame from worker
33
35
self.pixelRatio=window.devicePixelRatio||1;// (internal) Device pixel ratio (for high dpi devices)
34
36
@@ -104,7 +106,9 @@ var SubtitlesOctopus = function (options) {
104
106
subContent: self.subContent,
105
107
fonts: self.fonts,
106
108
availableFonts: self.availableFonts,
107
-
debug: self.debug
109
+
debug: self.debug,
110
+
targetFps: self.targetFps,
111
+
libassMemoryLimit: self.libassMemoryLimit
108
112
});
109
113
};
110
114
@@ -253,9 +257,9 @@ var SubtitlesOctopus = function (options) {
0 commit comments