Skip to content

DistributedVideoCodelab transmit failed #13

Description

@feixiao

鸿蒙手机优酷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值提供的错误信息太少了,如何判断为什么流转失败

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions