Re: Set PeerConnection streams API as an extension

On 2013-04-14 22:14, wrote:
> Reading the specification, I have seen that the audio & video stream
> has a "privileged" status being  defined their API directly on the
> PeerConnection one, while DataChannel, DMTF, statistics and identity
> APIs are specified as a "PeerConnection extension". I propose for
> homogeneity to set the PeerConnection specification to their basic
> functionality removing and setting in an independent section the next
> methods and their related issues:
>      sequence<MediaStream> getLocalStreams ();
>      sequence<MediaStream> getRemoteStreams ();
>      MediaStream?          getStreamById (DOMString streamId);
>      void                  addStream (MediaStream stream, optional
> MediaConstraints constraints);
>      void                  removeStream (MediaStream stream);
>                  attribute EventHandler          onaddstream;
>                  attribute EventHandler          onremovestream;
> They could be included and defined in the section "9. Media Stream API
> Extensions for Network Use".

This split is just a specification thing. All the features are mandatory 
to implement so there's no difference when you code with the APIs.

If we were to split out the media stuff from PeerConnection as well, I 
think it would be more suitable to put them in a separate "Peer-to-peer 
Media API" (or something) section.


Received on Monday, 15 April 2013 12:49:16 UTC