鸿蒙手机优酷App视频流转到鸿蒙pad成功,但是运行DistributedVideoCodelab流转失败。
提示错误为 transmit failed!Please try again later
对应代码为
boolean connectFlag = connectAbility(intent, new IAbilityConnection() {
@OverRide
public void onAbilityConnectDone(ElementName elementName, IRemoteObject remoteObject, int extra) {
implVideoMigration = VideoMigrationStub.asInterface(remoteObject);
try {
implVideoMigration.flyIn(startMillisecond);
} catch (RemoteException e) {
LogUtil.error(TAG, "connect successful,but have remote exception");
}
}
@Override
public void onAbilityDisconnectDone(ElementName elementName, int extra) {
disconnectAbility(this);
}
});
if (connectFlag) {
Toast.toast(this, "transmit successful!", TOAST_DURATION);
remoteController.show();
startMillisecond = player.getCurrentPosition();
player.release();
} else {
Toast.toast(this, "transmit failed!Please try again later.", TOAST_DURATION);
}
一个bool值提供的错误信息太少了,如何判断为什么流转失败
鸿蒙手机优酷App视频流转到鸿蒙pad成功,但是运行DistributedVideoCodelab流转失败。
提示错误为 transmit failed!Please try again later
对应代码为
boolean connectFlag = connectAbility(intent, new IAbilityConnection() {
@OverRide
public void onAbilityConnectDone(ElementName elementName, IRemoteObject remoteObject, int extra) {
implVideoMigration = VideoMigrationStub.asInterface(remoteObject);
try {
implVideoMigration.flyIn(startMillisecond);
} catch (RemoteException e) {
LogUtil.error(TAG, "connect successful,but have remote exception");
}
}
一个bool值提供的错误信息太少了,如何判断为什么流转失败