mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Apply suggestions from code review
Co-authored-by: Cameron <Influence365@gmail.com>
This commit is contained in:
parent
1829651565
commit
99758f065e
1 changed files with 2 additions and 3 deletions
|
@ -179,7 +179,7 @@ function supportsTextTracks() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDefaultProfile() {
|
function getDefaultProfile() {
|
||||||
return import('browserdeviceprofile').then(profileBuilder => {
|
return import('browserdeviceprofile').then(({default: profileBuilder}) => {
|
||||||
|
|
||||||
return profileBuilder({});
|
return profileBuilder({});
|
||||||
});
|
});
|
||||||
|
@ -308,7 +308,7 @@ function supportsTextTracks() {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
setSrcWithFlvJs(instance, elem, options, url) {
|
setSrcWithFlvJs(instance, elem, options, url) {
|
||||||
return import('flvjs').then(flvjs => {
|
return import('flvjs').then(({default: flvjs}) => {
|
||||||
const flvPlayer = flvjs.createPlayer({
|
const flvPlayer = flvjs.createPlayer({
|
||||||
type: 'flv',
|
type: 'flv',
|
||||||
url: url
|
url: url
|
||||||
|
@ -1073,7 +1073,6 @@ function supportsTextTracks() {
|
||||||
|
|
||||||
this.customTrackIndex = -1;
|
this.customTrackIndex = -1;
|
||||||
this.currentClock = null;
|
this.currentClock = null;
|
||||||
this.currentSubtitlesOctopus = null;
|
|
||||||
this._currentAspectRatio = null;
|
this._currentAspectRatio = null;
|
||||||
|
|
||||||
const octopus = this.currentSubtitlesOctopus;
|
const octopus = this.currentSubtitlesOctopus;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue