Skip to content

Commit cf5a19f

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 c85fc84 commit cf5a19f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.bs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ dictionary RTCEncodedVideoFrameMetadata {
330330
long temporalIndex;
331331
unsigned long synchronizationSource;
332332
octet payloadType;
333+
DOMString mimeType;
333334
sequence<unsigned long> contributingSources;
334335
};
335336
</pre>
@@ -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)