[Webkit-unassigned] [Bug 235287] New: MediaSession coordinator setTrack API not works

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jan 16 23:00:43 PST 2022


            Bug ID: 235287
           Summary: MediaSession coordinator setTrack API not works
           Product: WebKit
           Version: Safari 15
          Hardware: Mac (Intel)
                OS: macOS 12
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: cammy.tang at neulion.com.cn

When Shareplay between macOS safari and iOS native APP, Can't receive "settrack" action from native APP, also can't receive from our own website.

Sample Code in our website:
//Action handlers
 navigator.mediaSession.setActionHandler('play', () => {//work
navigator.mediaSession.setActionHandler('pause', () => {//work
navigator.mediaSession.setActionHandler('settrack', (details) => {//NOT work
        const nextVideo = details.trackIdentifier;

//produce setTrack action when user click next item.

Business scene:
When user switch video A to video B on Safari,we intend to produce action 'setTrack' to inform iOS APP to sync switch. Otherwise,if user switch on APP, we receive and handle "settrack" action to sync on our website.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220117/ea66da6b/attachment.htm>

More information about the webkit-unassigned mailing list