0

Replace references to MediaStreamTrack.getSources() with enumerateDevices() in PPAPI.

MediaStreamTrack.getSources is scheduled for removal in M56.

BUG=388194

Review-Url: https://codereview.chromium.org/2474673002
Cr-Commit-Position: refs/heads/master@{#429361}
This commit is contained in:
guidou
2016-11-02 12:20:28 -07:00
committed by Commit bot
parent 6761c70cab
commit 8730a9894c
3 changed files with 6 additions and 6 deletions

@ -51,8 +51,8 @@ interface PPB_CameraDevice_Private {
* @param[in] camera_device A <code>PP_Resource</code> corresponding to a
* camera device resource.
* @param[in] device_id A <code>PP_Var</code> identifying a camera device. The
* type is string. The ID can be obtained from MediaStreamTrack.getSources()
* or MediaStreamVideoTrack.id.
* type is string. The ID can be obtained from
* navigator.mediaDevices.enumerateDevices() or MediaStreamVideoTrack.id.
* @param[in] callback A <code>PP_CompletionCallback</code> to be called upon
* completion of <code>Open()</code>.
*

@ -4,7 +4,7 @@
*/
/* From private/ppb_camera_device_private.idl,
* modified Fri Feb 20 13:48:52 2015.
* modified Wed Nov 2 15:54:24 2016.
*/
#ifndef PPAPI_C_PRIVATE_PPB_CAMERA_DEVICE_PRIVATE_H_
@ -68,8 +68,8 @@ struct PPB_CameraDevice_Private_0_1 {
* @param[in] camera_device A <code>PP_Resource</code> corresponding to a
* camera device resource.
* @param[in] device_id A <code>PP_Var</code> identifying a camera device. The
* type is string. The ID can be obtained from MediaStreamTrack.getSources()
* or MediaStreamVideoTrack.id.
* type is string. The ID can be obtained from
* navigator.mediaDevices.enumerateDevices() or MediaStreamVideoTrack.id.
* @param[in] callback A <code>PP_CompletionCallback</code> to be called upon
* completion of <code>Open()</code>.
*

@ -66,7 +66,7 @@ class CameraDevice_Private : public Resource {
///
/// @param[in] device_id A <code>Var</code> identifying a camera
/// device. The type is string. The ID can be obtained from
/// MediaStreamTrack.getSources() or MediaStreamVideoTrack.id.
/// navigator.mediaDevices.enumerateDevices() or MediaStreamVideoTrack.id.
/// @param[in] callback A <code>CompletionCallback</code> to be called upon
/// completion of <code>Open()</code>.
///