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

Side by Side Diff: webrtc/api/java/jni/peerconnection_jni.cc

Issue 1816143002: Removed MediaStreamTrackInterface::set_state (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@track_state_listen_on_source2
Patch Set: Rebased Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 1938 matching lines...) Expand 10 before | Expand all | Expand 10 after
1949 return reinterpret_cast<MediaStreamTrackInterface*>(j_p)->enabled(); 1949 return reinterpret_cast<MediaStreamTrackInterface*>(j_p)->enabled();
1950 } 1950 }
1951 1951
1952 JOW(jobject, MediaStreamTrack_nativeState)(JNIEnv* jni, jclass, jlong j_p) { 1952 JOW(jobject, MediaStreamTrack_nativeState)(JNIEnv* jni, jclass, jlong j_p) {
1953 return JavaEnumFromIndex( 1953 return JavaEnumFromIndex(
1954 jni, 1954 jni,
1955 "MediaStreamTrack$State", 1955 "MediaStreamTrack$State",
1956 reinterpret_cast<MediaStreamTrackInterface*>(j_p)->state()); 1956 reinterpret_cast<MediaStreamTrackInterface*>(j_p)->state());
1957 } 1957 }
1958 1958
1959 JOW(jboolean, MediaStreamTrack_nativeSetState)(
1960 JNIEnv* jni, jclass, jlong j_p, jint j_new_state) {
1961 MediaStreamTrackInterface::TrackState new_state =
1962 (MediaStreamTrackInterface::TrackState)j_new_state;
1963 return reinterpret_cast<MediaStreamTrackInterface*>(j_p)
1964 ->set_state(new_state);
1965 }
1966
1967 JOW(jboolean, MediaStreamTrack_nativeSetEnabled)( 1959 JOW(jboolean, MediaStreamTrack_nativeSetEnabled)(
1968 JNIEnv* jni, jclass, jlong j_p, jboolean enabled) { 1960 JNIEnv* jni, jclass, jlong j_p, jboolean enabled) {
1969 return reinterpret_cast<MediaStreamTrackInterface*>(j_p) 1961 return reinterpret_cast<MediaStreamTrackInterface*>(j_p)
1970 ->set_enabled(enabled); 1962 ->set_enabled(enabled);
1971 } 1963 }
1972 1964
1973 JOW(void, VideoTrack_nativeAddRenderer)( 1965 JOW(void, VideoTrack_nativeAddRenderer)(
1974 JNIEnv* jni, jclass, 1966 JNIEnv* jni, jclass,
1975 jlong j_video_track_pointer, jlong j_renderer_pointer) { 1967 jlong j_video_track_pointer, jlong j_renderer_pointer) {
1976 reinterpret_cast<VideoTrackInterface*>(j_video_track_pointer) 1968 reinterpret_cast<VideoTrackInterface*>(j_video_track_pointer)
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
2084 return JavaStringFromStdString( 2076 return JavaStringFromStdString(
2085 jni, 2077 jni,
2086 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->id()); 2078 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->id());
2087 } 2079 }
2088 2080
2089 JOW(void, RtpReceiver_free)(JNIEnv* jni, jclass, jlong j_rtp_receiver_pointer) { 2081 JOW(void, RtpReceiver_free)(JNIEnv* jni, jclass, jlong j_rtp_receiver_pointer) {
2090 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->Release(); 2082 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->Release();
2091 } 2083 }
2092 2084
2093 } // namespace webrtc_jni 2085 } // namespace webrtc_jni
OLDNEW
« no previous file with comments | « talk/app/webrtc/objc/public/RTCMediaStreamTrack.h ('k') | webrtc/api/java/src/org/webrtc/MediaStreamTrack.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698