Skip to content

Commit 944abe2

Browse files
authored
Merge pull request #1293 from WebPlatformForEmbedded/wpe-2.38-libwebrtc-m120
Wpe 2.38 libwebrtc m120
2 parents d84aadd + 5f7400a commit 944abe2

14,183 files changed

Lines changed: 2529005 additions & 766931 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.git-blame-ignore-revs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4843f46ea7b6b6e17470e670d9c9f748c3455720

LayoutTests/fast/mediastream/RTCPeerConnection-statsSelector-expected.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ PASS Got a stream.
99
PASS statsHandler2 was called
1010
PASS result.size is >= 1
1111
PASS timestamp is >= startTime
12-
FAIL local.type should be video. Was certificate.
12+
PASS local.kind is "video"
1313
PASS successfullyParsed is true
1414

1515
TEST COMPLETE

LayoutTests/fast/mediastream/RTCPeerConnection-statsSelector.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,18 @@
3939
result = r;
4040
testPassed("statsHandler2 was called");
4141
shouldBeGreaterThanOrEqual('result.size', '1');
42-
local = result.get(result.keys().next().value);
42+
const values = result.values();
43+
while (true) {
44+
const iteratorValue = values.next();
45+
if (iteratorValue.done)
46+
break;
47+
local = iteratorValue.value;
48+
if (local.type === 'outbound-rtp')
49+
break;
50+
}
4351
timestamp = local.timestamp;
4452
shouldBeGreaterThanOrEqual('timestamp', 'startTime');
45-
shouldBe('local.type', '"video"');
53+
shouldBe('local.kind', '"video"');
4654
finishJSTest();
4755
}
4856

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
PASS Test HEVC reordering
3+
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<script src="../../resources/testharness.js"></script>
5+
<script src="../../resources/testharnessreport.js"></script>
6+
</head>
7+
<body>
8+
<script>
9+
let decoder;
10+
promise_test(async () => {
11+
const response = await fetch("/media-resources/media-source/content/test-bframes-hevc.mp4");
12+
const buffer = await response.arrayBuffer();
13+
const hvcCOffset = [705, 130];
14+
const frames = [
15+
[99, 3973, 46304],
16+
[366, 50277, 4531],
17+
[233, 54808, 1371],
18+
[167, 56179, 379],
19+
[133, 56558, 172],
20+
[199, 56730, 120],
21+
[300, 56850, 313],
22+
[266, 57163, 112],
23+
[333, 57275, 150],
24+
[633, 57425, 6427]
25+
];
26+
27+
let frameTimestamps = [];
28+
decoder = new VideoDecoder({
29+
output(frame) {
30+
frameTimestamps.push(frame.timestamp);
31+
frame.close();
32+
},
33+
error(e) {
34+
console.log(e);
35+
}
36+
});
37+
decoder.configure({
38+
codec: 'hev1.1.6.L120.90',
39+
codedWidth: 852,
40+
codedHeight: 480,
41+
visibleRect: {x: 0, y: 0, width: 852, height: 480},
42+
displayWidth: 852,
43+
displayHeight: 480,
44+
format: 'hevc',
45+
description: new Uint8Array(buffer, hvcCOffset[0], hvcCOffset[1])
46+
});
47+
48+
chunks = frames.map((frame, i) => new EncodedVideoChunk({type: i == 0 ? 'key' : 'delta', timestamp: frame[0], duration: 1, data: new Uint8Array(buffer, frame[1], frame[2])}));
49+
50+
chunks.forEach(chunk => decoder.decode(chunk));
51+
await decoder.flush();
52+
53+
assert_array_equals(frameTimestamps, frames.map(frame => frame[0]).sort((a,b) => a - b), "timestamps are ordered");
54+
}, "Test HEVC reordering");
55+
</script>
56+
</body>
57+
</html>

LayoutTests/imported/w3c/web-platform-tests/media-capabilities/decodingInfo.webrtc-expected.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ PASS Test that decodingInfo returns a valid MediaCapabilitiesInfo objects
1111
PASS Test that decodingInfo returns supported, smooth, and powerEfficient set to false for non-webrtc video content type.
1212
PASS Test that decodingInfo returns supported, smooth, and powerEfficient set to false for non-webrtc audio content type.
1313
PASS Test that decodingInfo returns supported true for the codec audio/opus returned by RTCRtpReceiver.getCapabilities()
14-
PASS Test that decodingInfo returns supported true for the codec audio/ISAC returned by RTCRtpReceiver.getCapabilities()
1514
PASS Test that decodingInfo returns supported true for the codec audio/G722 returned by RTCRtpReceiver.getCapabilities()
1615
PASS Test that decodingInfo returns supported true for the codec audio/PCMU returned by RTCRtpReceiver.getCapabilities()
1716
PASS Test that decodingInfo returns supported true for the codec audio/PCMA returned by RTCRtpReceiver.getCapabilities()
@@ -23,4 +22,5 @@ PASS Test that decodingInfo returns supported true for the codec video/H265 retu
2322
PASS Test that decodingInfo returns supported true for the codec video/VP8 returned by RTCRtpReceiver.getCapabilities()
2423
PASS Test that decodingInfo returns supported true for the codec video/VP9; profile-id=0 returned by RTCRtpReceiver.getCapabilities()
2524
PASS Test that decodingInfo returns supported true for the codec video/VP9; profile-id=2 returned by RTCRtpReceiver.getCapabilities()
25+
PASS Test that decodingInfo returns supported true for the codec video/AV1 returned by RTCRtpReceiver.getCapabilities()
2626

LayoutTests/imported/w3c/web-platform-tests/media-capabilities/encodingInfo.webrtc-expected.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ PASS Test that encodingInfo returns a valid MediaCapabilitiesInfo objects
1111
PASS Test that encodingInfo returns supported, smooth, and powerEfficient set to false for non-webrtc video content type.
1212
PASS Test that encodingInfo returns supported, smooth, and powerEfficient set to false for non-webrtc audio content type.
1313
PASS Test that encodingInfo returns supported true for the codec audio/opus returned by RTCRtpSender.getCapabilities()
14-
PASS Test that encodingInfo returns supported true for the codec audio/ISAC returned by RTCRtpSender.getCapabilities()
1514
PASS Test that encodingInfo returns supported true for the codec audio/G722 returned by RTCRtpSender.getCapabilities()
1615
PASS Test that encodingInfo returns supported true for the codec audio/PCMU returned by RTCRtpSender.getCapabilities()
1716
PASS Test that encodingInfo returns supported true for the codec audio/PCMA returned by RTCRtpSender.getCapabilities()
@@ -23,4 +22,5 @@ PASS Test that encodingInfo returns supported true for the codec video/H265 retu
2322
PASS Test that encodingInfo returns supported true for the codec video/VP8 returned by RTCRtpSender.getCapabilities()
2423
PASS Test that encodingInfo returns supported true for the codec video/VP9; profile-id=0 returned by RTCRtpSender.getCapabilities()
2524
PASS Test that encodingInfo returns supported true for the codec video/VP9; profile-id=2 returned by RTCRtpSender.getCapabilities()
25+
PASS Test that encodingInfo returns supported true for the codec video/AV1 returned by RTCRtpSender.getCapabilities()
2626

LayoutTests/imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-addIceCandidate-expected.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
FAIL Add ICE candidate before setting remote description should reject with InvalidStateError promise_rejects_dom: function "function () { throw e }" threw object "OperationError: Error processing ICE candidate" that is not a DOMException InvalidStateError: property "code" is equal to 0, expected 11
2+
PASS Add ICE candidate before setting remote description should reject with InvalidStateError
33
PASS addIceCandidate({"candidate":"","sdpMid":null,"sdpMLineIndex":null}) works
44
FAIL addIceCandidate({"candidate":"","sdpMid":null,"sdpMLineIndex":null}) adds a=end-of-candidates to both m-sections assert_true: Expect candidate line to be found between media lines m=audio and m=video expected true got false
55
PASS addIceCandidate(undefined) works
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
Harness Error (TIMEOUT), message = null
3+
4+
TIMEOUT Capturing a video element and sending it via PeerConnection Test timed out
5+

LayoutTests/imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-mandatory-getStats.https-expected.txt

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
PASS getStats succeeds
3-
FAIL Validating stats assert_equals: Test error. String. expected "string" but got "undefined"
3+
PASS Validating stats
44
PASS RTCRtpStreamStats's ssrc
55
PASS RTCRtpStreamStats's kind
66
PASS RTCRtpStreamStats's transportId
@@ -11,26 +11,26 @@ PASS RTCReceivedRtpStreamStats's jitter
1111
PASS RTCReceivedRtpStreamStats's packetsDiscarded
1212
PASS RTCReceivedRtpStreamStats's framesDropped
1313
FAIL RTCInboundRtpStreamStats's receiverId assert_true: Is receiverId present expected true got false
14-
FAIL RTCInboundRtpStreamStats's remoteId assert_true: Is remoteId present expected true got false
14+
PASS RTCInboundRtpStreamStats's remoteId
1515
PASS RTCInboundRtpStreamStats's framesDecoded
1616
PASS RTCInboundRtpStreamStats's nackCount
1717
PASS RTCInboundRtpStreamStats's framesReceived
1818
PASS RTCInboundRtpStreamStats's bytesReceived
1919
PASS RTCInboundRtpStreamStats's totalAudioEnergy
2020
PASS RTCInboundRtpStreamStats's totalSamplesDuration
21-
FAIL RTCRemoteInboundRtpStreamStats's localId assert_true: Is localId present expected true got false
22-
FAIL RTCRemoteInboundRtpStreamStats's roundTripTime assert_true: Is roundTripTime present expected true got false
23-
FAIL RTCSentRtpStreamStats's packetsSent assert_true: Is packetsSent present expected true got false
24-
FAIL RTCSentRtpStreamStats's bytesSent assert_true: Is bytesSent present expected true got false
21+
PASS RTCRemoteInboundRtpStreamStats's localId
22+
PASS RTCRemoteInboundRtpStreamStats's roundTripTime
23+
PASS RTCSentRtpStreamStats's packetsSent
24+
PASS RTCSentRtpStreamStats's bytesSent
2525
FAIL RTCOutboundRtpStreamStats's senderId assert_true: Is senderId present expected true got false
26-
FAIL RTCOutboundRtpStreamStats's remoteId assert_true: Is remoteId present expected true got false
27-
FAIL RTCOutboundRtpStreamStats's framesEncoded assert_true: Is framesEncoded present expected true got false
28-
FAIL RTCOutboundRtpStreamStats's nackCount assert_true: Is nackCount present expected true got false
29-
FAIL RTCOutboundRtpStreamStats's framesSent assert_true: Is framesSent present expected true got false
26+
PASS RTCOutboundRtpStreamStats's remoteId
27+
PASS RTCOutboundRtpStreamStats's framesEncoded
28+
PASS RTCOutboundRtpStreamStats's nackCount
29+
PASS RTCOutboundRtpStreamStats's framesSent
3030
FAIL RTCRemoteOutboundRtpStreamStats's localId assert_true: Is localId present expected true got false
3131
FAIL RTCRemoteOutboundRtpStreamStats's remoteTimestamp assert_true: Is remoteTimestamp present expected true got false
32-
FAIL RTCPeerConnectionStats's dataChannelsOpened assert_true: Is dataChannelsOpened present expected true got false
33-
FAIL RTCPeerConnectionStats's dataChannelsClosed assert_true: Is dataChannelsClosed present expected true got false
32+
PASS RTCPeerConnectionStats's dataChannelsOpened
33+
PASS RTCPeerConnectionStats's dataChannelsClosed
3434
PASS RTCDataChannelStats's label
3535
PASS RTCDataChannelStats's protocol
3636
FAIL RTCDataChannelStats's dataChannelIdentifier assert_true: Is dataChannelIdentifier present expected true got false
@@ -52,11 +52,11 @@ PASS RTCCodecStats's mimeType
5252
PASS RTCCodecStats's clockRate
5353
PASS RTCCodecStats's channels
5454
PASS RTCCodecStats's sdpFmtpLine
55-
FAIL RTCTransportStats's bytesSent assert_true: Is bytesSent present expected true got false
56-
FAIL RTCTransportStats's bytesReceived assert_true: Is bytesReceived present expected true got false
57-
FAIL RTCTransportStats's selectedCandidatePairId assert_true: Is selectedCandidatePairId present expected true got false
58-
FAIL RTCTransportStats's localCertificateId assert_true: Is localCertificateId present expected true got false
59-
FAIL RTCTransportStats's remoteCertificateId assert_true: Is remoteCertificateId present expected true got false
55+
PASS RTCTransportStats's bytesSent
56+
PASS RTCTransportStats's bytesReceived
57+
PASS RTCTransportStats's selectedCandidatePairId
58+
PASS RTCTransportStats's localCertificateId
59+
PASS RTCTransportStats's remoteCertificateId
6060
PASS RTCIceCandidatePairStats's transportId
6161
PASS RTCIceCandidatePairStats's localCandidateId
6262
PASS RTCIceCandidatePairStats's remoteCandidateId

0 commit comments

Comments
 (0)