Skip to content

Commit 463bb90

Browse files
committed
add mimeType to metadata
since the mapping from payload type to the codec mime type is nontrivial in environments like workers. Defined similar to webrtc-stats: https://w3c.github.io/webrtc-stats/#dom-rtccodecstats-mimetype
1 parent 8d2aff2 commit 463bb90

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.bs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ dictionary RTCEncodedVideoFrameMetadata {
330330
unsigned long temporalIndex;
331331
unsigned long synchronizationSource;
332332
octet payloadType;
333-
sequence<unsigned long> contributingSources;
333+
DOMString mimeType;
334+
sequence<unsigned long> contributingSources;
334335
};
335336
</pre>
336337

@@ -433,6 +434,7 @@ interface RTCEncodedVideoFrame {
433434
dictionary RTCEncodedAudioFrameMetadata {
434435
unsigned long synchronizationSource;
435436
octet payloadType;
437+
DOMString mimeType;
436438
sequence&lt;unsigned long&gt; contributingSources;
437439
};
438440
</pre>

0 commit comments

Comments
 (0)