mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update login
This commit is contained in:
parent
3c9e6e0374
commit
08122a5e93
36 changed files with 2845 additions and 2228 deletions
|
@ -6,12 +6,14 @@ import Event from '../events';
|
|||
import {ErrorTypes, ErrorDetails} from '../errors';
|
||||
import AACDemuxer from '../demux/aacdemuxer';
|
||||
import TSDemuxer from '../demux/tsdemuxer';
|
||||
import MP4Remuxer from '../remux/mp4-remuxer';
|
||||
import PassThroughRemuxer from '../remux/passthrough-remuxer';
|
||||
|
||||
class DemuxerInline {
|
||||
|
||||
constructor(hls,remuxer) {
|
||||
constructor(hls,typeSupported) {
|
||||
this.hls = hls;
|
||||
this.remuxer = remuxer;
|
||||
this.typeSupported = typeSupported;
|
||||
}
|
||||
|
||||
destroy() {
|
||||
|
@ -24,15 +26,21 @@ class DemuxerInline {
|
|||
push(data, audioCodec, videoCodec, timeOffset, cc, level, sn, duration) {
|
||||
var demuxer = this.demuxer;
|
||||
if (!demuxer) {
|
||||
var hls = this.hls;
|
||||
// probe for content type
|
||||
if (TSDemuxer.probe(data)) {
|
||||
demuxer = this.demuxer = new TSDemuxer(this.hls,this.remuxer);
|
||||
if (this.typeSupported.mp2t === true) {
|
||||
demuxer = new TSDemuxer(hls,PassThroughRemuxer);
|
||||
} else {
|
||||
demuxer = new TSDemuxer(hls,MP4Remuxer);
|
||||
}
|
||||
} else if(AACDemuxer.probe(data)) {
|
||||
demuxer = this.demuxer = new AACDemuxer(this.hls,this.remuxer);
|
||||
demuxer = new AACDemuxer(hls,MP4Remuxer);
|
||||
} else {
|
||||
this.hls.trigger(Event.ERROR, {type : ErrorTypes.MEDIA_ERROR, details: ErrorDetails.FRAG_PARSING_ERROR, fatal: true, reason: 'no demux matching with content found'});
|
||||
hls.trigger(Event.ERROR, {type : ErrorTypes.MEDIA_ERROR, details: ErrorDetails.FRAG_PARSING_ERROR, fatal: true, reason: 'no demux matching with content found'});
|
||||
return;
|
||||
}
|
||||
this.demuxer = demuxer;
|
||||
}
|
||||
demuxer.push(data,audioCodec,videoCodec,timeOffset,cc,level,sn,duration);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue