Sorry for the delayed response as I was OOO. This task is more or less complete. Only thing pending is typemapping for MediaStreamDevice struct. May be I'll create a separate bug for typemapping and close this bug?
This is complete in so far as there are no more Chrome IPC messages.
However, the mojo work is not complete. In particular, the MediaStreamDispatcher mojo object should be removed and replaced by callbacks sent by the MediaStreamDispatcherHost object.
c.padhi@: Do you want to do that or should we mark this bug as "Available"?
In that case, I would like to continue with the pending work.
So, the idea here is to update MediaStreamDispatcherHost's mojo methods to take callbacks as input from MediaStreamDispatcher and remove all MediaStreamDispatcher's mojo methods i.e. MediaStreamDispatcher mojo interface altogether can be removed?
I think a good first step would be to remove the following methods from MediaStreamDispatcher
OnStreamGenerated()
OnStreamGenerationFailed()
OnDeviceOpened()
OnDeviceOpenFailed()
These methods are replies to the following MediaStreamDispatcherHost methods:
GenerateStream()
OpenDevice()
MSDH should communicate the results as replies to these methods, not by MediaStreamDispatcher.
This means MSD would have only the OnDeviceStopped() method, which is not a reply to MSDH.
Once the above-mentioned work is complete we can rename the MediaStreamDispatcher mojo interface and renderer object to MediaStreamObserver or MediaStreamDeviceObserver since it will contain only notifications about events related to MediaStreamDevices. At this point we can close this bug.
Comment 1 by r...@chromium.org
, Jul 14 2017