--
You received this message because you are subscribed to the Google Groups "media-capture-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to media-capture-...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/media-capture-dev/6b362d29.1d1f.181dbfe9901.Coremail.dorian_lau%40126.com.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.
void MultiBufferDataSource::Read(int64_t position,
int size,
uint8_t* data,
media::DataSource::ReadCB read_cb)
Hi Mark,Thanks for your quick reply!I spent some time to study Chromium source code, espically for <video> media handling. Currently I modiied multi_buffer_data_source and multi_buffer_reader files, and I can get the original video stream data and save to a local file successfully.I still have two questions:1. I cannot find where is below function called in multi_buffer_data_source.c, i.e. I don't know how the Read is triggered.void MultiBufferDataSource::Read(int64_t position,
int size,
uint8_t* data,
media::DataSource::ReadCB read_cb)
2. I have another useful requirement. In my test web, the "autoplay" attribute is null, which means I must click "play" button to play the video and save to a file in the meanwhile. After the video playback finished, the file is also saved completely (maybe 10s in advance). My requirement is that I don't need to "play" it, and the file will be also saved. This requirement will be reduce our CPU and memory if a lot of video in the website, and becasue we don't want to watch these video realtime, we just need to save them.
I do appreciate for your help and any clue.