mirror of
https://github.com/streamwall/streamwall.git
synced 2026-04-03 20:32:08 -04:00
Remove unused site rotation code (vestige of Periscope)
This commit is contained in:
@@ -80,23 +80,17 @@ class RotationController {
|
|||||||
|
|
||||||
constructor(video: HTMLVideoElement) {
|
constructor(video: HTMLVideoElement) {
|
||||||
this.video = video
|
this.video = video
|
||||||
this.siteRotation = 0
|
|
||||||
this.customRotation = 0
|
this.customRotation = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
_update() {
|
_update() {
|
||||||
const rotation = (this.siteRotation + this.customRotation) % 360
|
const rotation = this.customRotation % 360
|
||||||
if (![0, 90, 180, 270].includes(rotation)) {
|
if (![0, 90, 180, 270].includes(rotation)) {
|
||||||
console.warn('ignoring invalid rotation', rotation)
|
console.warn('ignoring invalid rotation', rotation)
|
||||||
}
|
}
|
||||||
this.video.className = `__rot${rotation}__`
|
this.video.className = `__rot${rotation}__`
|
||||||
}
|
}
|
||||||
|
|
||||||
setSite(rotation = 0) {
|
|
||||||
this.siteRotation = rotation
|
|
||||||
this._update()
|
|
||||||
}
|
|
||||||
|
|
||||||
setCustom(rotation = 0) {
|
setCustom(rotation = 0) {
|
||||||
this.customRotation = rotation
|
this.customRotation = rotation
|
||||||
this._update()
|
this._update()
|
||||||
|
|||||||
Reference in New Issue
Block a user