• Sam Bowen's avatar
    Implement media feeds continue watching and play next. · c46403d9
    Sam Bowen authored
    See this part of the media feeds spec:
    https://wicg.github.io/media-feeds/#play-next-tv-episodes
    
    Some refactoring was necessary also. This is still missing the duration
    on TV episode and the live details. Because those require changes to the
    mojo structs, I will do them in a different CL.
    
    The general process is:
    1) Find all episodes in the Item and get them as EpisodeCandidate
    2) Pick main and play next episodes from list of EpisodeCandidate
    3) If main episode is present, validate and store it on item->tv_episode
    4) If play next is present, validate and store it on
       item->play_next_candidate
    
    It's OK for a TV series to have no EpisodeCandidates, but any it has
    should be valid.
    
    We should perhaps break this up into multiple files. Open to suggestions
    on that.
    
    Bug: 1068751
    Change-Id: I37260ee8a905be347e764667921794bb845a4b77
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2146072Reviewed-by: default avatarBecca Hughes <beccahughes@chromium.org>
    Commit-Queue: Sam Bowen <sgbowen@google.com>
    Cr-Commit-Position: refs/heads/master@{#758965}
    c46403d9
extractor.cc 10.2 KB