OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * Copyright (C) 2011 Ericsson AB. All rights reserved. | 3 * Copyright (C) 2011 Ericsson AB. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 settings.setFacingMode("left"); | 296 settings.setFacingMode("left"); |
297 break; | 297 break; |
298 case WebMediaStreamTrack::FacingMode::kRight: | 298 case WebMediaStreamTrack::FacingMode::kRight: |
299 settings.setFacingMode("right"); | 299 settings.setFacingMode("right"); |
300 break; | 300 break; |
301 default: | 301 default: |
302 // None, or unknown facing mode. Ignore. | 302 // None, or unknown facing mode. Ignore. |
303 break; | 303 break; |
304 } | 304 } |
305 } | 305 } |
| 306 if (platform_settings.HasEchoCancellationValue()) { |
| 307 settings.setEchoCancellation( |
| 308 static_cast<bool>(platform_settings.echo_cancellation)); |
| 309 } |
| 310 |
306 if (image_capture_) | 311 if (image_capture_) |
307 image_capture_->GetMediaTrackSettings(settings); | 312 image_capture_->GetMediaTrackSettings(settings); |
308 } | 313 } |
309 | 314 |
310 ScriptPromise MediaStreamTrack::applyConstraints( | 315 ScriptPromise MediaStreamTrack::applyConstraints( |
311 ScriptState* script_state, | 316 ScriptState* script_state, |
312 const MediaTrackConstraints& constraints) { | 317 const MediaTrackConstraints& constraints) { |
313 ScriptPromiseResolver* resolver = ScriptPromiseResolver::Create(script_state); | 318 ScriptPromiseResolver* resolver = ScriptPromiseResolver::Create(script_state); |
314 ScriptPromise promise = resolver->Promise(); | 319 ScriptPromise promise = resolver->Promise(); |
315 | 320 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 | 421 |
417 DEFINE_TRACE(MediaStreamTrack) { | 422 DEFINE_TRACE(MediaStreamTrack) { |
418 visitor->Trace(registered_media_streams_); | 423 visitor->Trace(registered_media_streams_); |
419 visitor->Trace(component_); | 424 visitor->Trace(component_); |
420 visitor->Trace(image_capture_); | 425 visitor->Trace(image_capture_); |
421 EventTargetWithInlineData::Trace(visitor); | 426 EventTargetWithInlineData::Trace(visitor); |
422 ContextLifecycleObserver::Trace(visitor); | 427 ContextLifecycleObserver::Trace(visitor); |
423 } | 428 } |
424 | 429 |
425 } // namespace blink | 430 } // namespace blink |
OLD | NEW |