File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import {Remuxer} from './core/remuxer/remuxer.js';
44import DEFAULT_CLIENT from './client/rtsp/client.js' ;
55import DEFAULT_TRANSPORT from './transport/websocket.js' ;
66import SMediaError from './media_error' ;
7- import { MediaDownloader } from './core/remuxer/downloader .js' ;
7+ import { MediaRecorder } from './recorder .js' ;
88
99const Log = getTagged ( 'wsp' ) ;
1010
@@ -77,10 +77,10 @@ export class WSPlayer {
7777 this . bufferDuration_ = 120 ;
7878 }
7979
80- this . continuousRecording = new MediaDownloader ( this ) ;
81- this . eventRecording = new MediaDownloader ( this ) ;
82- this . continuousRecording . fileLength = opts . continuousFileLength || MediaDownloader . DEFAULT_FILE_LENGTH ;
83- this . eventRecording . fileLength = opts . eventFileLength || MediaDownloader . DEFAULT_FILE_LENGTH ;
80+ this . continuousRecording = new MediaRecorder ( this ) ;
81+ this . eventRecording = new MediaRecorder ( this ) ;
82+ this . continuousRecording . fileLength = opts . continuousFileLength || MediaRecorder . DEFAULT_FILE_LENGTH ;
83+ this . eventRecording . fileLength = opts . eventFileLength || MediaRecorder . DEFAULT_FILE_LENGTH ;
8484
8585 this . modules = { } ;
8686 for ( let module of modules ) {
Original file line number Diff line number Diff line change 1- import { MP4 } from '.. /iso-bmff/mp4-generator.js' ;
1+ import { MP4 } from './core /iso-bmff/mp4-generator.js' ;
22
3- export class MediaDownloader {
3+ export class MediaRecorder {
44 static DEFAULT_FILE_LENGTH = 180000 ; /*download every 3 minutes*/
55
66 constructor ( parent ) {
You can’t perform that action at this time.
0 commit comments