Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-3061

Add workarounds for current Wireplumber policy implementation

XMLWordPrintable

      To work with the current behavior of the Wireplumber policy implementation, the mediaplayer and radio bindings need to set their gstreamer states' to READY or STOPPED state when the stop/pause button is pressed in the UI, instead of to PAUSED as is currently done.  This is due to Wireplumber's behavior being driven by endpoint lifetime, and currently policy is only triggered on endpoint creation or destruction.  Setting a gstreamer stream to GST_STATE_PAUSED does not destroy the associated endpoint in PW, so the WP policy will not trigger with its current behavior.  This is visible with e.g. mediaplayer not restarting when radio is stopped and vice versa.

      One side effect of this change that will need extra consideration is that in order to maintain current behavior, the mediaplayer binding will need to track stream position to be able to seek to where it was before going to READY state when it resumes playing.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            scottm Scott Murray
            scottm Scott Murray
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: