• timav's avatar
    Determine the audible state in MediaSourcePlayer · 2284586b
    timav authored
    We set the audible state every time after the pipeline
    has successfully decoded the frame: to false if prerolling
    and true otherwise, taking the volume into account.
    
    Also, we set the state to false if the flow is going to be
     interrupted because of a coded error, abort or Pause.
    
    As well, we set audible state to false when the starvation
    happens and there is no data in the MediaDecoderJob queue,
    we believe this indicates the demuxer freeze.
    
    BUG=414810
    
    Review URL: https://codereview.chromium.org/1008093002
    
    Cr-Commit-Position: refs/heads/master@{#322102}
    2284586b
media_source_player_unittest.cc 96.2 KB