[webkit-dev] mediastream implementation

Danilo Cesar danilo.eu at gmail.com
Fri Oct 5 07:27:17 PDT 2012


Hey guys,

I'm trying to bring the MediaStream implementation to webkitgtk, and would like some comments.
The API is waiting for review now, but is quite hard to find reviewers with MediaStream experience, so I'm asking here.

What I need is actually comments on a MediaStream perspective, and for those who can't understand GTK I will explain the current API.

So, basically, I've added a signal to the webkitview_gtk called user-media-requested. This signal will be emited by UserMediaClientGTK::requestUserMedia
containing a webusermediarequest (container for UserMediaRequest) and two webusermedialist (container + selector for MediaStreamSourceVector) for audio and video.

Is expected to the application to be connected to that signal and show a screen/pop-up/selector/whatever with a list of devices that can be used (based on webusermedialist contents).
The application should select a device by using the webkit_web_user_media_list_select_item.

When the user selects it's device, is expected to the application to call webkit_web_user_media_request_succeed containing the two list
of selected and unselected devices. This list will remove the unselected devices and call UserMediaRequest->succeed() with the selected ones.

In case where the user clicks cancel, is expected to the application to call webkit_web_user_media_request_fail, where it will call UserMediaRequest->fail() internally.

After that, MediaStreamCenterPrivateGStreamer will take care of the rest.

So, if someone with mediastream experience could drop some comments here[1] it would be nice.
Can be something informal, under the mediastream perspective (doesn't need to be GTK related now), if it's good/complete enough...


that's all, thanks.

--
Danilo Cesar Lemes de Paula
danilo.cesar at collabora.co.uk

[1] https://bugs.webkit.org/show_bug.cgi?id=94373
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20121005/7643eea9/attachment.sig>


More information about the webkit-dev mailing list