Summary: | Media Session: give media elements unique IDs | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Matt Rajca <mrajca> | ||||
Component: | Media | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | conrad_shultz, eric.carlson, mrajca, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 145411 | ||||||
Attachments: |
|
Description
Matt Rajca
2015-07-27 09:56:43 PDT
Created attachment 257565 [details]
Patch
Comment on attachment 257565 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=257565&action=review As we discussed offline, please file a bug about consolidating this with the MediaPlaybackTargetClient map. > Source/WebCore/html/HTMLMediaElement.cpp:435 > + static uint64_t elementID = 0; > + m_elementID = ++elementID; Nit: we usually put something like this in a static function, eg. uint64_t nextPlaybackTargetClientContextId() in Document.cpp. (In reply to comment #3) > Comment on attachment 257565 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=257565&action=review > > As we discussed offline, please file a bug about consolidating this with the > MediaPlaybackTargetClient map. Filed: https://bugs.webkit.org/show_bug.cgi?id=147522 > > > Source/WebCore/html/HTMLMediaElement.cpp:435 > > + static uint64_t elementID = 0; > > + m_elementID = ++elementID; > > Nit: we usually put something like this in a static function, eg. uint64_t > nextPlaybackTargetClientContextId() in Document.cpp. Added. Committed r187712: <http://trac.webkit.org/changeset/187712> |