This CL does the following: * Split out MediaStream JNI code from peerconnection.cc to mediastream.h/mediastream.cc. * Split out RtpSender JNI code from peerconnection.cc to rtpsender.h/rtpsender.cc. * Split out TurnCustomizer JNI code from peerconnection.cc to turncustomizer.h/turncustomizer.cc. * Add missing instanceof function to WrappedNativeVideoDecoder.java. * Move some PeerConnectionFactory JNI declarations from pc/video.cc to peerconnectionfactory.cc. * Add declaration to video.h for the JNI functions that depend on EglBase14_jni.h. * Use a scoped object to store the global Java MediaStream objects that also call dispose. Bug: webrtc:8278 Change-Id: I3c56a599b8bcbc8f34e5c5a7b9c9fe1d192ff3f3 Reviewed-on: https://webrtc-review.googlesource.com/34645 Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Cr-Commit-Position: refs/heads/master@{#21380}
49 lines
1.4 KiB
Java
49 lines
1.4 KiB
Java
/*
|
|
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
package org.webrtc;
|
|
|
|
/**
|
|
* Wraps a native webrtc::VideoDecoder.
|
|
*/
|
|
abstract class WrappedNativeVideoDecoder implements VideoDecoder {
|
|
@CalledByNative abstract long createNativeDecoder();
|
|
|
|
@Override
|
|
public VideoCodecStatus initDecode(Settings settings, Callback decodeCallback) {
|
|
throw new UnsupportedOperationException("Not implemented.");
|
|
}
|
|
|
|
@Override
|
|
public VideoCodecStatus release() {
|
|
throw new UnsupportedOperationException("Not implemented.");
|
|
}
|
|
|
|
@Override
|
|
public VideoCodecStatus decode(EncodedImage frame, DecodeInfo info) {
|
|
throw new UnsupportedOperationException("Not implemented.");
|
|
}
|
|
|
|
@Override
|
|
public boolean getPrefersLateDecoding() {
|
|
throw new UnsupportedOperationException("Not implemented.");
|
|
}
|
|
|
|
@Override
|
|
public String getImplementationName() {
|
|
throw new UnsupportedOperationException("Not implemented.");
|
|
}
|
|
|
|
@CalledByNative
|
|
static boolean isInstanceOf(VideoDecoder decoder) {
|
|
return decoder instanceof WrappedNativeVideoDecoder;
|
|
}
|
|
}
|