WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
Bug 56459
Implement the HTML5 Media Streaming API
https://bugs.webkit.org/show_bug.cgi?id=56459
Summary
Implement the HTML5 Media Streaming API
Leandro Graciá Gil
Reported
2011-03-16 05:28:47 PDT
Implement the videoconferencing spec proposed in
http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#video-conferencing-and-peer-to-peer-communication
.
Attachments
Add attachment
proposed patch, testcase, etc.
Eric Carlson
Comment 1
2011-03-16 11:28:24 PDT
That spec is very much a moving target still.
Leandro Graciá Gil
Comment 2
2011-03-17 08:56:21 PDT
Sure, I understand it's a moving target as we have closely followed the relevant standards mailing lists. At the same time, Chromium is very interested in implementing and maintaining this spec and we're fully committed to keeping the WebKit code as close to the standard as possible. I was wondering if you had any advice about this: do you feel it's premature to add this API to WebKit? Or would you be ok with us adding it already now and committing to keeping it up to date? (In reply to
comment #1
)
> That spec is very much a moving target still.
Eric Carlson
Comment 3
2011-03-17 14:10:18 PDT
(In reply to
comment #2
)
> Sure, I understand it's a moving target as we have closely followed the relevant standards mailing > lists. At the same time, Chromium is very interested in implementing and maintaining this spec > and we're fully committed to keeping the WebKit code as close to the standard as possible. > > I was wondering if you had any advice about this: do you feel it's premature to add this API to WebKit? > Or would you be ok with us adding it already now and committing to keeping it up to date? >
While I agree that this is an important feature, and I definitely think that there is nothing like real implementation experience to make sure an API does everything it should, I am concerned that shipping a feature before an API settles can have a bad effect on both the web and on WebKit's ability to implement the final spec. We implemented and shipped <video> very early, but the element had been in the spec for more than six months and there had very extensive debate on the mailing list. We shipped it knowing that we *would* break existing content if the spec changed, and it indeed it has changed significantly several times since we shipped our first implementation - and we updated and broke existing content when it did. Are you willing to commit to breaking early adopters when the spec changes? It will change. Because this is a JavaScript-only API at this point, wouldn't it be possible to implement this in an application and inject the JavaScript API into WebKit at runtime?
Andrei Popescu
Comment 4
2011-03-17 17:31:58 PDT
Hi Eric! Many thanks for the comments! (In reply to
comment #3
)
> (In reply to
comment #2
) > > Sure, I understand it's a moving target as we have closely followed the relevant standards mailing > > lists. At the same time, Chromium is very interested in implementing and maintaining this spec > > and we're fully committed to keeping the WebKit code as close to the standard as possible. > > > > I was wondering if you had any advice about this: do you feel it's premature to add this API to WebKit? > > Or would you be ok with us adding it already now and committing to keeping it up to date? > > > While I agree that this is an important feature, and I definitely think that there is nothing like real implementation experience to make sure an API does everything it should, I am concerned that shipping a feature before an API settles can have a bad effect on both the web and on WebKit's ability to implement the final spec.
> Totally agreed. It is not in our intention to ship this API before it is ready but rather get the implementation experience you mentioned and provide feedback to the standardisation effort. We were thinking of keeping this API behind a 'webkit' prefix (and in Chromium, it would also be behind a runtime flag).
> We implemented and shipped <video> very early, but the element had been in the spec for more than six months and there had very extensive debate on the mailing list. We shipped it knowing that we *would* break existing content if the spec changed, and it indeed it has changed significantly several times since we shipped our first implementation - and we updated and broke existing content when it did. > > Are you willing to commit to breaking early adopters when the spec changes? It will change. >
Yep, it will definitely change. However, there have been precedents of APIs that WebKit implemented despite the standard being a moving target (e.g. IdexedDB). In these cases, using the 'webkit' prefix for the API method names made it clear to the early adopters that the API may change quite dramatically.
> Because this is a JavaScript-only API at this point, wouldn't it be possible to implement this in an application and inject the JavaScript API into WebKit at runtime?
The API is meant to interact with existing elements such as <video> or APIs, while it's methods are meant to return types such as Blob. I am therefore not sure how feasible it would be to implement it as you suggest. Rather, I feel it would be more beneficial to try and implement it properly in WebKit, provide feedback to the standard and iterate. What do you think? All the best, Andrei
Eric Carlson
Comment 5
2011-03-17 22:46:41 PDT
(In reply to
comment #4
)
> (In reply to
comment #3
) > > (In reply to
comment #2
) > > > I was wondering if you had any advice about this: do you feel it's premature to add this API to WebKit? > > > Or would you be ok with us adding it already now and committing to keeping it up to date? > > > > > While I agree that this is an important feature, and I definitely think that there is nothing like real implementation experience to make sure an API does > > everything it should, I am concerned that shipping a feature before an API settles can have a bad effect on both the web and on WebKit's ability to > > implement the final spec. > > > > Totally agreed. It is not in our intention to ship this API before it is ready but rather get the implementation experience you mentioned and provide feedback > to the standardisation effort. We were thinking of keeping this API behind a 'webkit' prefix (and in Chromium, it would also be behind a runtime flag). >
I think keeping it behind a 'webkit' prefix is definitely a requirement until the spec is much more mature.
> > Because this is a JavaScript-only API at this point, wouldn't it be possible to implement this in an application and inject the JavaScript API into WebKit > > at runtime? > > The API is meant to interact with existing elements such as <video> or APIs, while it's methods are meant to return types such as Blob. I am therefore not > sure how feasible it would be to implement it as you suggest. Rather, I feel it would be more beneficial to try and implement it properly in WebKit, > provide feedback to the standard and iterate. >
Good point.
> What do you think? >
As I said, there is nothing like real implementation experience to help shape a new API, so I think this is a useful effort. As I also noted the spec is still very young and it will likely change after we have an implementation, but as long as we use a 'webkit' prefix and acknowledge that it is very likely we may have to break early adopters I don't have a problem with proceeding.
Andrei Popescu
Comment 6
2011-03-18 08:39:17 PDT
(In reply to
comment #5
)
> (In reply to
comment #4
) > > (In reply to
comment #3
) > > > (In reply to
comment #2
) > > > > I was wondering if you had any advice about this: do you feel it's premature to add this API to WebKit? > > > > Or would you be ok with us adding it already now and committing to keeping it up to date? > > > > > > > While I agree that this is an important feature, and I definitely think that there is nothing like real implementation experience to make sure an API does > > > everything it should, I am concerned that shipping a feature before an API settles can have a bad effect on both the web and on WebKit's ability to > > > implement the final spec. > > > > > > > Totally agreed. It is not in our intention to ship this API before it is ready but rather get the implementation experience you mentioned and provide feedback > > to the standardisation effort. We were thinking of keeping this API behind a 'webkit' prefix (and in Chromium, it would also be behind a runtime flag). > > > I think keeping it behind a 'webkit' prefix is definitely a requirement until the spec is much more mature. > > > > Because this is a JavaScript-only API at this point, wouldn't it be possible to implement this in an application and inject the JavaScript API into WebKit > > > at runtime? > > > > The API is meant to interact with existing elements such as <video> or APIs, while it's methods are meant to return types such as Blob. I am therefore not > > sure how feasible it would be to implement it as you suggest. Rather, I feel it would be more beneficial to try and implement it properly in WebKit, > > provide feedback to the standard and iterate. > > > Good point. > > > What do you think? > > > As I said, there is nothing like real implementation experience to help shape a new API, so I think this is a useful effort. As I also noted the spec is still very young and it will likely change after we have an implementation, but as long as we use a 'webkit' prefix and acknowledge that it is very likely we may have to break early adopters I don't have a problem with proceeding.
Great, thank you! Any help reviewing this stuff will be greatly appreciated :) All the best, Andrei
Leandro Graciá Gil
Comment 7
2011-03-23 13:19:00 PDT
Updating the bug platform settings (had the default ones).
Leandro Graciá Gil
Comment 8
2011-03-23 13:19:54 PDT
Updating the bug platform settings (had the default ones). -- Fixed.
Arun Patole
Comment 9
2011-09-07 23:05:19 PDT
Hi, We are very much interested in this feature. We have started implementing it and would like to contribute for Gtk port. Please let me know if the overall architecture/design documents are shared at any place? if the design is not published then I think it may be posted as a webkit blog and/or on a webkit-dev list. That way other people can also share thoughts. I had read old dev-list thread on <device> element implementation but I think design is now changed with the new video conferencing and p2p spec. Thanks, Arun
Adam Bergkvist
Comment 10
2011-09-09 09:34:50 PDT
Hi Arun We have developed a GStreamer backend for MediaStream and PeerConnection for the GTK port. However, it doesn’t fit in to well with the WebKit client based design currently used in WebKit since we are using WebCore platform abstractions for everything except the getUserMedia requests. The good thing is that we’re currently talking to Tommy Widenflycht (Google’s main contributor in this area) about this and he also believes that we should move over to a WebCore platform approach since it suits most platforms best. When this is in place, we plan to contribute our implementation for GTK.
Arun Patole
Comment 11
2011-09-13 00:31:42 PDT
(In reply to
comment #10
)
> Hi Arun > > We have developed a GStreamer backend for MediaStream and PeerConnection for the GTK port. However, it doesn’t fit in to well with the WebKit client based design currently used in WebKit since we are using WebCore platform abstractions for everything except the getUserMedia requests. The good thing is that we’re currently talking to Tommy Widenflycht (Google’s main contributor in this area) about this and he also believes that we should move over to a WebCore platform approach since it suits most platforms best. When this is in place, we plan to contribute our implementation for GTK.
Ok, Thanks Adam! Could you guys move your discussions to webkit-dev list please so that other people can also contribute to it.
Adam Bergkvist
Comment 12
2011-09-13 03:05:28 PDT
(In reply to
comment #11
)
> Ok, Thanks Adam! Could you guys move your discussions to webkit-dev list please so that other people can also contribute to it.
I've created a bug to discuss this:
http://webkit.org/b/67946
Matt Diamond
Comment 13
2011-12-22 13:22:47 PST
Any estimate on when this feature will be available to developers in experimental webkit/chrome builds?
Nick Dolezal
Comment 14
2015-03-29 18:22:22 PDT
It's been four years, unfortunately there is still no getUserMedia() support in Safari. This seems the most direct bug relating to that(?). Is this something that is being worked on? It seems to have been assigned to a Google engineer long ago, perhaps this should be marked unassigned instead, as AFAIK Chrome/Blink supports the Media Streaming API now.
Adam Bergkvist
Comment 15
2015-03-29 23:50:53 PDT
Hi There is a new effort to bring WebRTC to WebKit. I've created a fresh beta bug to track the progress (
bug 143211
).
Anne van Kesteren
Comment 16
2023-08-23 07:59:42 PDT
Closing as this is no longer relevant.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug