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.
|23401,1||Add workaround for Wireplumber policy implementation||halibut||apps/agl-service-radio||Status: MERGED||+2||+1|
|23402,1||Add workaround for Wireplumber policy implementation||halibut||apps/agl-service-mediaplayer||Status: MERGED||+2||+1|
|23403,1||Add workaround for Wireplumber policy implementation||master||apps/agl-service-mediaplayer||Status: MERGED||+2||+1|
|23404,1||Add workaround for Wireplumber policy implementation||master||apps/agl-service-radio||Status: MERGED||+2||+1|
|23429,2||Fixes for corking and restart behavior||halibut||apps/agl-service-radio||Status: MERGED||+2||+1|
|23430,1||Some fixes for corked state tracking||halibut||apps/agl-service-mediaplayer||Status: MERGED||+2||+1|
|23431,1||Some fixes for corked state tracking||master||apps/agl-service-mediaplayer||Status: MERGED||+2||+1|
|23432,1||Fixes for corking and restart behavior||master||apps/agl-service-radio||Status: MERGED||+2||+1|