Re: [chromium-discuss] How to debug Media source Extensions.

9 views
Skip to first unread message

Mounir Lamouri

unread,
Jan 22, 2019, 11:36:00 AM1/22/19
to vidhu...@gmail.com, media-dev, Chromium-discuss

On Tue, 22 Jan 2019 at 02:25, Rahul Verma <vidhu...@gmail.com> wrote:
Hi, Is there any way I can debug the code of media source extensions? 

I am currently working on a live stream App , and chrome://media-internals keeps on showing BUFFERING_HAVE_NOTHING and BUFFERING_HAVE_ENOUGH continuously and not performing well.
clearly looks like my applications fault, and I would like to debug and see whats going on here. ( since most of the logs are DVLOG, I am not able to see them after enabling logs)

Thank you for the help.

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.

Chris Cunningham

unread,
Jan 22, 2019, 7:11:51 PM1/22/19
to Mounir Lamouri, vidhu...@gmail.com, media-dev, Chromium-discuss
Do you have any experience compiling chromium (admittedly a bit of work)? I enable dvlogs with gn args like so

is_debug = false                       # defaults to true, but you just want the logs
dcheck_always_on = true         # let the dvlogs flow in

> BUFFERING_HAVE_NOTHING and BUFFERING_HAVE_ENOUGH 

Oscillating between these can have 2 causes (potentially both)
1. currentTime is repeatedly reaching the end of buffered (you're appends aren't happening in time)
2. you're machine isn't able to decode the video fast enough to keep up with the playback rate, so the queue of decode frames is running empty

For 2, you can easily eliminate this by testing with an easy video (e.g. 360p @ 30fps) on a machine with decent specs (we sometimes see folks test with low resource VMs).


You received this message because you are subscribed to the Google Groups "media-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to media-dev+...@chromium.org.
To post to this group, send email to medi...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/media-dev/CA%2B-LeH8Qu%3D88z%2BdHr-_DYHhWEq6SgXt7bh%3DjGjaK41T%2ByzUXTg%40mail.gmail.com.

Rahul Verma

unread,
Jan 22, 2019, 7:21:58 PM1/22/19
to Chris Cunningham, Mounir Lamouri, media-dev, Chromium-discuss
Thank you for the response Chris.

I built chrome and I am able to debug the code, Will keep in mind the points you mentioned while debugging!.
--
Rahul Verma
NVIDIA
Reply all
Reply to author
Forward
0 new messages