зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1403849 - p2: add JNI method for native code to query tunneled playback support. r=esawin
MozReview-Commit-ID: 29HgjCanjGP --HG-- extra : rebase_source : a9e388883a1e561fbbb4a58f97957662b657028e
This commit is contained in:
Родитель
84b53d828f
Коммит
69fb7ed20e
|
@ -191,6 +191,21 @@ public final class CodecProxy {
|
|||
}
|
||||
}
|
||||
|
||||
@WrapForJNI
|
||||
public synchronized boolean isTunneledPlaybackSupported()
|
||||
{
|
||||
if (mRemote == null) {
|
||||
Log.e(LOGTAG, "cannot check isTunneledPlaybackSupported with an ended codec");
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
return mRemote.isTunneledPlaybackSupported();
|
||||
} catch (RemoteException e) {
|
||||
e.printStackTrace();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@WrapForJNI
|
||||
public synchronized boolean input(ByteBuffer bytes, BufferInfo info, CryptoInfo cryptoInfo) {
|
||||
if (mRemote == null) {
|
||||
|
|
|
@ -1816,6 +1816,14 @@ auto CodecProxy::IsAdaptivePlaybackSupported() const -> bool
|
|||
return mozilla::jni::Method<IsAdaptivePlaybackSupported_t>::Call(CodecProxy::mCtx, nullptr);
|
||||
}
|
||||
|
||||
constexpr char CodecProxy::IsTunneledPlaybackSupported_t::name[];
|
||||
constexpr char CodecProxy::IsTunneledPlaybackSupported_t::signature[];
|
||||
|
||||
auto CodecProxy::IsTunneledPlaybackSupported() const -> bool
|
||||
{
|
||||
return mozilla::jni::Method<IsTunneledPlaybackSupported_t>::Call(CodecProxy::mCtx, nullptr);
|
||||
}
|
||||
|
||||
constexpr char CodecProxy::Release_t::name[];
|
||||
constexpr char CodecProxy::Release_t::signature[];
|
||||
|
||||
|
|
|
@ -5189,6 +5189,25 @@ public:
|
|||
|
||||
auto IsAdaptivePlaybackSupported() const -> bool;
|
||||
|
||||
struct IsTunneledPlaybackSupported_t {
|
||||
typedef CodecProxy Owner;
|
||||
typedef bool ReturnType;
|
||||
typedef bool SetterType;
|
||||
typedef mozilla::jni::Args<> Args;
|
||||
static constexpr char name[] = "isTunneledPlaybackSupported";
|
||||
static constexpr char signature[] =
|
||||
"()Z";
|
||||
static const bool isStatic = false;
|
||||
static const mozilla::jni::ExceptionMode exceptionMode =
|
||||
mozilla::jni::ExceptionMode::ABORT;
|
||||
static const mozilla::jni::CallingThread callingThread =
|
||||
mozilla::jni::CallingThread::ANY;
|
||||
static const mozilla::jni::DispatchTarget dispatchTarget =
|
||||
mozilla::jni::DispatchTarget::CURRENT;
|
||||
};
|
||||
|
||||
auto IsTunneledPlaybackSupported() const -> bool;
|
||||
|
||||
struct Release_t {
|
||||
typedef CodecProxy Owner;
|
||||
typedef bool ReturnType;
|
||||
|
|
Загрузка…
Ссылка в новой задаче