• Dale Curtis's avatar
    Add the ability to suspend preload=metadata playbacks in some cases. · 2dc6089a
    Dale Curtis authored
    This adds a base::Feature, kPreloadMetadataSuspend, for suspending
    preload=metadata players that are either audio-only or have video
    and have a poster image.
    
    Given the uncertainty and issues with canplay, canplaythrough, the
    current version of this feature signals HAVE_ENOUGH when after a
    suspended startup successfull completes.
    
    This also fixes a minor issue where streams with a positive start
    time were not suspending at the right time.
    
    BUG=694855
    TEST=enabling feature still passes all bots. More layout tests,
    which are disabled by default in this CL since the feature is
    disabled by default for now.
    
    Change-Id: Iccd79eddbd7a3b03933b3090eb99ad19c2fed768
    Reviewed-on: https://chromium-review.googlesource.com/978867Reviewed-by: default avatarFrank Liberato <liberato@chromium.org>
    Reviewed-by: default avatarDan Sanders <sandersd@chromium.org>
    Commit-Queue: Dale Curtis <dalecurtis@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#545817}
    2dc6089a
TestExpectations 287 KB