1. 14 Feb, 2023 5 commits
  2. 08 Feb, 2023 32 commits
  3. 02 Feb, 2023 3 commits
    • Session: advertise legacy FLAG_HANDLES_QUEUE_COMMANDS · ebe7ece1
      This change includes 3 things:
      - when the legacy media session is created, FLAG_HANDLES_QUEUE_COMMANDS
        is advertised if the player has the COMMAND_CHANGE_MEDIA_ITEMS
        available.
      - when the player changes its available commands, a new
        PlaybackStateCompat is sent to the remote media controller to
        advertise the updated PlyabackStateCompat actions.
      - when the player changes its available commands, the legacy media
        session flags are sent accoridingly: FLAG_HANDLES_QUEUE_COMMANDS is
        set only if the COMMAND_CHANGE_MEDIA_ITEMS is available.
      
      #minor-release
      
      PiperOrigin-RevId: 506605905
      christosts committed
    • Fix end of stream handling for previewing. · a817bd42
      Before this CL, the `renderedLastFrame` flag is not set if the last frame is released immediately (force render), or when it's dropped.
      
      PiperOrigin-RevId: 506358626
      claincly committed
    • Report flushing completed after all pending frames are decoded. · 0f4fcc11
      With the current ExtTexMgr,
      
      it can happen that
      
      - `x` frames are registered, but haven't arrived yet
      - flush
        - need to drop `x` frames when they arrive on SurfaceTexture
        - status is reset to 0 pending, 0 available, drop `x` when frames arrive
      - register one frame
        - status is set to 1 pending, 0 available, drop `x` when frames arrive
      - flush
        - now the number of frame to drop is reset to `pending - available = 1`
        - but it should be `x+1`
      
      This CL solves the issue by reporting (by running the afterFlushTask) flush completes only after all the pending frames before calling flush are accounted for.
      
      PiperOrigin-RevId: 506310671
      claincly committed