Bug 169836 - Implement incoming webrtc data based on tracks
Summary: Implement incoming webrtc data based on tracks
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-17 16:03 PDT by youenn fablet
Modified: 2017-03-17 19:36 PDT (History)
3 users (show)

See Also:


Attachments
Patch (30.04 KB, patch)
2017-03-17 16:13 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch for landing (30.94 KB, patch)
2017-03-17 17:02 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch for landing (30.69 KB, patch)
2017-03-17 17:40 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch for landing (30.17 KB, patch)
2017-03-17 18:55 PDT, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2017-03-17 16:03:48 PDT
Currently we are media stream based.
Comment 1 youenn fablet 2017-03-17 16:13:22 PDT
Created attachment 304833 [details]
Patch
Comment 2 Eric Carlson 2017-03-17 16:38:39 PDT
Comment on attachment 304833 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=304833&action=review

> Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp:245
> +    for (size_t cptr = 0; cptr < m_pendingReceivers.size(); ++cptr) {
> +        if (m_pendingReceivers[cptr]->track()->source().type() == RealtimeMediaSource::Type::Video) {
> +            Ref<RTCRtpReceiver> receiver = m_pendingReceivers[cptr].copyRef();
> +            m_pendingReceivers.remove(cptr);
> +            Ref<RealtimeIncomingVideoSource> source = static_cast<RealtimeIncomingVideoSource&>(receiver->track()->source());
> +            return { WTFMove(receiver), WTFMove(source) };
> +        }
> +    }

It is worth adding a comment about why "trackId" isn't used in this case and filing a bug to fix it when possible.

> Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp:261
> +    for (size_t cptr = 0; cptr < m_pendingReceivers.size(); ++cptr) {
> +        if (m_pendingReceivers[cptr]->track()->source().type() == RealtimeMediaSource::Type::Audio) {
> +            Ref<RTCRtpReceiver> receiver = m_pendingReceivers[cptr].copyRef();
> +            m_pendingReceivers.remove(cptr);
> +            Ref<RealtimeIncomingAudioSource> source = static_cast<RealtimeIncomingAudioSource&>(receiver->track()->source());
> +            return { WTFMove(receiver), WTFMove(source) };
> +        }
> +    }

Ditto.
Comment 3 youenn fablet 2017-03-17 17:02:12 PDT
Created attachment 304838 [details]
Patch for landing
Comment 4 WebKit Commit Bot 2017-03-17 17:04:08 PDT
Comment on attachment 304838 [details]
Patch for landing

Rejecting attachment 304838 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-02', 'apply-attachment', '--no-update', '--non-interactive', 304838, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
file Source/WebCore/platform/mediastream/mac/RealtimeIncomingVideoSource.h
patching file LayoutTests/ChangeLog
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file LayoutTests/ChangeLog.rej
patching file LayoutTests/webrtc/video-with-receiver-expected.txt
patching file LayoutTests/webrtc/video-with-receiver.html
patching file LayoutTests/webrtc/video.html

Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Full output: http://webkit-queues.webkit.org/results/3352837
Comment 5 youenn fablet 2017-03-17 17:40:57 PDT
Created attachment 304841 [details]
Patch for landing
Comment 6 youenn fablet 2017-03-17 18:55:50 PDT
Created attachment 304843 [details]
Patch for landing
Comment 7 WebKit Commit Bot 2017-03-17 19:36:27 PDT
Comment on attachment 304843 [details]
Patch for landing

Clearing flags on attachment: 304843

Committed r214132: <http://trac.webkit.org/changeset/214132>
Comment 8 WebKit Commit Bot 2017-03-17 19:36:33 PDT
All reviewed patches have been landed.  Closing bug.