# All files / src/remux dummy-remuxer.js

0% Statements 0/22
100% Branches 0/0
0% Functions 0/9
0% Lines 0/22

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77

     /**
     * dummy remuxer
    */

    class DummyRemuxer {
      constructor(observer) {
        this.observer = observer;
      }

      destroy() {
      }

      resetInitSegment() {
      }

      resetTimeStamp() {
      }

      remux(audioTrack,videoTrack,id3Track,textTrack,timeOffset) {
        this._remuxAACSamples(audioTrack,timeOffset);
        this._remuxAVCSamples(videoTrack,timeOffset);
        this._remuxID3Samples(id3Track,timeOffset);
        this._remuxTextSamples(textTrack,timeOffset);
      }

      _remuxAVCSamples(track, timeOffset) {
        var avcSample, unit;
        // loop through track.samples
        while (track.samples.length) {
          avcSample = track.samples.shift();
          // loop through AVC sample NALUs
          while (avcSample.units.length) {
            unit = avcSample.units.shift();
          }
        }
        //please lint
        timeOffset = timeOffset;
      }

      _remuxAACSamples(track,timeOffset) {
        var aacSample,unit;
        // loop through track.samples
        while (track.samples.length) {
          aacSample = track.samples.shift();
          unit = aacSample.unit;
        }
        //please lint
        timeOffset = timeOffset;
      }

      _remuxID3Samples(track,timeOffset) {
        var id3Sample,unit;
        // loop through track.samples
        while (track.samples.length) {
          id3Sample = track.samples.shift();
          unit = id3Sample.unit;
        }
        //please lint
        timeOffset = timeOffset;
      }

      _remuxTextSamples(track,timeOffset) {
        var textSample,bytes;
        // loop through track.samples
        while (track.samples.length) {
          textSample = track.samples.shift();
          bytes = textSample.bytes;
        }
        //please lint
        timeOffset = timeOffset;
      }
    }

    export default DummyRemuxer;