Skip to content

Commit eda3877

Browse files
committed
Allow enable fast render mode
1 parent 4045c32 commit eda3877

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/subtitles-octopus.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var SubtitlesOctopus = function (options) {
22
var self = this;
33
self.canvas = options.canvas; // HTML canvas element (optional if video specified)
4-
self.lossyRender = false; // Speedup render for heavy subs
4+
self.lossyRender = options.lossyRender; // Speedup render for heavy subs
55
self.isOurCanvas = false; // (internal) we created canvas and manage it
66
self.video = options.video; // HTML video element (optional if canvas specified)
77
self.canvasParent = null; // (internal) HTML canvas parent element

src/subtitles-octopus.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var SubtitlesOctopus = function (options) {
22
var self = this;
33
self.canvas = options.canvas; // HTML canvas element (optional if video specified)
4-
self.lossyRender = false; // Speedup render for heavy subs
4+
self.lossyRender = options.lossyRender; // Speedup render for heavy subs
55
self.isOurCanvas = false; // (internal) we created canvas and manage it
66
self.video = options.video; // HTML video element (optional if canvas specified)
77
self.canvasParent = null; // (internal) HTML canvas parent element

0 commit comments

Comments
 (0)