|
@@ -5294,7 +5294,8 @@ fdage = {
|
|
},
|
|
},
|
|
j.prototype.showPreview = function (e) {
|
|
j.prototype.showPreview = function (e) {
|
|
this.clearView(),
|
|
this.clearView(),
|
|
- this.thumbnail = document.createElement("canvas");
|
|
|
|
|
|
+ //去掉封面
|
|
|
|
+ /* this.thumbnail = document.createElement("canvas");
|
|
var t = this.container.width / this.container.height;
|
|
var t = this.container.width / this.container.height;
|
|
this.thumbnail.height = this.viewer.mobile ? 200 : 300,
|
|
this.thumbnail.height = this.viewer.mobile ? 200 : 300,
|
|
this.thumbnail.width = this.thumbnail.height * t | 0,
|
|
this.thumbnail.width = this.thumbnail.height * t | 0,
|
|
@@ -5304,7 +5305,7 @@ fdage = {
|
|
i.addColorStop(1, "rgb(7,62,92)"),
|
|
i.addColorStop(1, "rgb(7,62,92)"),
|
|
t.fillStyle = i,
|
|
t.fillStyle = i,
|
|
t.fillRect(0, 0, this.thumbnail.width, this.thumbnail.height),
|
|
t.fillRect(0, 0, this.thumbnail.width, this.thumbnail.height),
|
|
- this.container.appendChild(this.thumbnail),
|
|
|
|
|
|
+ this.container.appendChild(this.thumbnail), */
|
|
this.playButton = document.createElement("input"),
|
|
this.playButton = document.createElement("input"),
|
|
this.playButton.type = "image",
|
|
this.playButton.type = "image",
|
|
// this.playButton.src = I.dataLocale + "play.png",
|
|
// this.playButton.src = I.dataLocale + "play.png",
|
|
@@ -5330,6 +5331,7 @@ fdage = {
|
|
(this.loadingImageURL = e) && C.fetchImage(this.loadingImageURL, this.setThumbnail.bind(this))
|
|
(this.loadingImageURL = e) && C.fetchImage(this.loadingImageURL, this.setThumbnail.bind(this))
|
|
},
|
|
},
|
|
j.prototype.setThumbnail = function (e) {
|
|
j.prototype.setThumbnail = function (e) {
|
|
|
|
+ return//去掉封面
|
|
if (this.thumbnail)
|
|
if (this.thumbnail)
|
|
if (e.height >= this.container.height) {
|
|
if (e.height >= this.container.height) {
|
|
var t = this.container.height / e.height;
|
|
var t = this.container.height / e.height;
|
|
@@ -5583,7 +5585,7 @@ fdage = {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
j.prototype.signalLoadProgress = function (e, t) {
|
|
j.prototype.signalLoadProgress = function (e, t) {
|
|
- if (this.thumbnail) {
|
|
|
|
|
|
+ //if (this.thumbnail) {
|
|
if (!this.progressBar) {
|
|
if (!this.progressBar) {
|
|
var i = document.createElement("div");
|
|
var i = document.createElement("div");
|
|
i.style.backgroundColor = "rgb(240,240,240)",
|
|
i.style.backgroundColor = "rgb(240,240,240)",
|
|
@@ -5608,7 +5610,7 @@ fdage = {
|
|
delete this.playButton)
|
|
delete this.playButton)
|
|
}
|
|
}
|
|
this.progressBar.style.width = t <= 0 ? (100 * e / (2097152 + e) | 0) + "%" : (100 * e / t | 0) + "%"
|
|
this.progressBar.style.width = t <= 0 ? (100 * e / (2097152 + e) | 0) + "%" : (100 * e / t | 0) + "%"
|
|
- }
|
|
|
|
|
|
+ //}
|
|
},
|
|
},
|
|
j.prototype.animating = function () {
|
|
j.prototype.animating = function () {
|
|
return !!this.fadeThumbnail || !!this.frameTimer
|
|
return !!this.fadeThumbnail || !!this.frameTimer
|