Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Issue 3013733002: WebRTC Unity Plugin Rebase

Created:
3 years, 3 months ago by qiangchen
Modified:
3 years, 3 months ago
Reviewers:
GeorgeZ
CC:
webrtc-reviews_webrtc.org
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

WebRTC Unity Plugin Rebase 1. Change the Video frame interface with Unity to support alpha channel. 2. Let |audio_only| parameter to only affect sending behavior. Namely, when audio_only is true, the Unity side does not send out video frame, but it does not prevent the peer to send video frame to Unity side. BUG=webrtc:8261

Patch Set 1 #

Patch Set 2 : Audio Only Should Not Affect Receive #

Patch Set 3 : DummyCapturer To Mimic An Empty Video Track #

Patch Set 4 : Git cl format #

Patch Set 5 : Minor Change #

Total comments: 4

Patch Set 6 : Add Comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -38 lines) Patch
M examples/unityplugin/simple_peer_connection.cc View 1 2 3 3 chunks +57 lines, -34 lines 0 comments Download
M examples/unityplugin/unity_plugin_apis.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M examples/unityplugin/video_observer.cc View 1 2 3 4 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (7 generated)
qiangchen
Can you take a look?
3 years, 3 months ago (2017-09-18 21:55:22 UTC) #7
GeorgeZ
Please see my comments. https://codereview.webrtc.org/3013733002/diff/80001/examples/unityplugin/simple_peer_connection.cc File examples/unityplugin/simple_peer_connection.cc (right): https://codereview.webrtc.org/3013733002/diff/80001/examples/unityplugin/simple_peer_connection.cc#newcode427 examples/unityplugin/simple_peer_connection.cc:427: #if defined(WEBRTC_ANDROID) Dummy capturer should ...
3 years, 3 months ago (2017-09-19 08:21:20 UTC) #9
qiangchen
3 years, 3 months ago (2017-09-19 17:57:45 UTC) #10
is_receiver parameter does not work unfortunately. So let's keep using dummy
capturer.

Add comments on why we put alpha channel in the interface.

https://codereview.webrtc.org/3013733002/diff/80001/examples/unityplugin/simp...
File examples/unityplugin/simple_peer_connection.cc (right):

https://codereview.webrtc.org/3013733002/diff/80001/examples/unityplugin/simp...
examples/unityplugin/simple_peer_connection.cc:427: #if defined(WEBRTC_ANDROID)
On 2017/09/19 08:21:20, GeorgeZ wrote:
> Dummy capturer should work but may not the best solution here.
> 
> Have you tried mandate to get video and audio only in the receiver side as in 
> https://chromium-review.googlesource.com/c/external/webrtc/+/648197. I didn't
> test it.

Unfortunately, that does not work. I think this property belongs to
FakeConstraint, and thus not working really. The only usage else is in a
unittest.

So far the easiest work-around is make a dummy capturer.

https://codereview.webrtc.org/3013733002/diff/80001/examples/unityplugin/unit...
File examples/unityplugin/unity_plugin_apis.h (right):

https://codereview.webrtc.org/3013733002/diff/80001/examples/unityplugin/unit...
examples/unityplugin/unity_plugin_apis.h:22: const uint8_t* data_a,
On 2017/09/19 08:21:20, GeorgeZ wrote:
> I am not sure whether it makes sense to commit this since alpha channel
support
> is not in the code base yet. If you do want to check in this, please add
> comments to explain this situation.

I just want to make the plugin work well with our unity Demo code. With
interface change here, without Emircan's patch, the demo will work with ordinary
camera streaming. If we do not do this, crash will be observed.

Powered by Google App Engine
This is Rietveld 408576698