| Summary: | MediaSession.setPositionState() does not work. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Mitsuo Matsunaga <mitsuo.matsunaga> | ||||||||
| Component: | Media | Assignee: | Jean-Yves Avenard [:jya] <jean-yves.avenard> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | calvaris, cdumez, changseok, eric.carlson, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, jean-yves.avenard, jer.noble, philipj, sergio, supersonicandtails, webkit-bug-importer | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | Safari 15 | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
Please give me a reply. Created attachment 457233 [details]
Patch
Created attachment 458342 [details]
Patch
Created attachment 458358 [details]
Patch
Fix seeking in media using default control and then pausing in Now Playing. Cursor was jumping around: instead simulate a call to setPositionState. Fix GTK compilation
Comment on attachment 458358 [details]
Patch
r=me once the bots are happy
Committed r293488 (250022@main): <https://commits.webkit.org/250022@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 458358 [details]. |
We develop a player that can play a part of a content. I executed setPositionState() as follows. However, it is not reflected in "Now Playing" in Control Center. navigator.mediaSession.setPositionState({ duration: 140, position: pos + 10 }); Sample https://dev-player-issue.s3.ap-northeast-1.amazonaws.com/webkit/media_session.html