本文整理汇总了Java中android.media.DeniedByServerException类的典型用法代码示例。如果您正苦于以下问题:Java DeniedByServerException类的具体用法?Java DeniedByServerException怎么用?Java DeniedByServerException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DeniedByServerException类属于android.media包,在下文中一共展示了DeniedByServerException类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onProvisionResponse
import android.media.DeniedByServerException; //导入依赖的package包/类
private void onProvisionResponse(Object response) {
provisioningInProgress = false;
if (state != STATE_OPENING && state != STATE_OPENED && state != STATE_OPENED_WITH_KEYS) {
// This event is stale.
return;
}
if (response instanceof Exception) {
onError((Exception) response);
return;
}
try {
mediaDrm.provideProvisionResponse((byte[]) response);
if (state == STATE_OPENING) {
openInternal(false);
} else {
postKeyRequest();
}
} catch (DeniedByServerException e) {
onError(e);
}
}
示例2: onProvisionResponse
import android.media.DeniedByServerException; //导入依赖的package包/类
private void onProvisionResponse(Object response) {
provisioningInProgress = false;
if (state != STATE_OPENING && state != STATE_OPENED && state != STATE_OPENED_WITH_KEYS) {
// This event is stale.
return;
}
if (response instanceof Exception) {
onError((Exception) response);
return;
}
try {
mediaDrm.provideProvisionResponse((byte[]) response);
if (state == STATE_OPENING) {
openInternal(false);
} else {
doLicense();
}
} catch (DeniedByServerException e) {
onError(e);
}
}
示例3: onProvisionResponse
import android.media.DeniedByServerException; //导入依赖的package包/类
private void onProvisionResponse(Object response) {
if (state != STATE_OPENING && state != STATE_OPENED && state != STATE_OPENED_WITH_KEYS) {
// This event is stale.
return;
}
if (response instanceof Exception) {
onError((Exception) response);
return;
}
try {
mediaDrm.provideProvisionResponse((byte[]) response);
if (state == STATE_OPENING) {
openInternal(false);
} else {
postKeyRequest();
}
} catch (DeniedByServerException e) {
onError(e);
}
}
示例4: provideKeyResponse
import android.media.DeniedByServerException; //导入依赖的package包/类
byte[] provideKeyResponse(byte[] keyResponse) throws DeniedByServerException {
try {
return mMediaDrm.provideKeyResponse(mSessionId, keyResponse);
} catch (NotProvisionedException e) {
throw new WidevineNotSupportedException(e);
}
}
示例5: provideKeyResponse
import android.media.DeniedByServerException; //导入依赖的package包/类
@Override
public byte[] provideKeyResponse(byte[] scope, byte[] response)
throws NotProvisionedException, DeniedByServerException {
return mediaDrm.provideKeyResponse(scope, response);
}
示例6: provideProvisionResponse
import android.media.DeniedByServerException; //导入依赖的package包/类
@Override
public void provideProvisionResponse(byte[] response) throws DeniedByServerException {
mediaDrm.provideProvisionResponse(response);
}
示例7: provideKeyResponse
import android.media.DeniedByServerException; //导入依赖的package包/类
/**
* @see android.media.MediaDrm#provideKeyResponse(byte[], byte[])
*/
byte[] provideKeyResponse(byte[] scope, byte[] response)
throws NotProvisionedException, DeniedByServerException;
示例8: provideProvisionResponse
import android.media.DeniedByServerException; //导入依赖的package包/类
/**
* @see android.media.MediaDrm#provideProvisionResponse(byte[])
*/
void provideProvisionResponse(byte[] response) throws DeniedByServerException;
示例9: provideKeyResponse
import android.media.DeniedByServerException; //导入依赖的package包/类
/**
* @see MediaDrm#provideKeyResponse(byte[], byte[])
*/
byte[] provideKeyResponse(byte[] scope, byte[] response)
throws NotProvisionedException, DeniedByServerException;
示例10: provideProvisionResponse
import android.media.DeniedByServerException; //导入依赖的package包/类
/**
* @see MediaDrm#provideProvisionResponse(byte[])
*/
void provideProvisionResponse(byte[] response) throws DeniedByServerException;