Skip to content

cef: Bump to 156 and read audio pts on the monotonic clock - #115

Open
hevc wants to merge 1 commit into
centricular:masterfrom
hevc:cef-156
Open

hevc wants to merge 1 commit into
centricular:masterfrom
hevc:cef-156

Conversation

@hevc

@hevc hevc commented Nov 5, 2026

Copy link
Copy Markdown

CEF 156 stamps the packets it hands to OnAudioStreamPacket() in milliseconds on the monotonic clock (the value equals the system uptime), while cef_audio_handler.h still documents them as milliseconds since the Unix epoch, which is what CEF 139 delivers. Mapped through the wall clock, every packet lands decades before the pipeline started, so each audio buffer gets PTS 0 and a live aggregator downstream such as audiomixer drops it as late: the page plays, the output stays silent.

Measure the capture delay against g_get_monotonic_time() instead. On Linux it reads CLOCK_MONOTONIC like base::TimeTicks, so the packet time maps onto the pipeline clock the way the wall clock did with CEF 139.

CEF 156 stamps the packets it hands to OnAudioStreamPacket() in
milliseconds on the monotonic clock (the value equals the system
uptime), while cef_audio_handler.h still documents them as milliseconds
since the Unix epoch, which is what CEF 139 delivers. Mapped through the
wall clock, every packet lands decades before the pipeline started, so
each audio buffer gets PTS 0 and a live aggregator downstream such as
audiomixer drops it as late: the page plays, the output stays silent.

Measure the capture delay against g_get_monotonic_time() instead. On
Linux it reads CLOCK_MONOTONIC like base::TimeTicks, so the packet time
maps onto the pipeline clock the way the wall clock did with CEF 139.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant