美文网首页
MT9255 APK切换信源接口

MT9255 APK切换信源接口

作者: 安卓投影车载 | 来源:发表于2021-09-06 16:14 被阅读0次

    本人微信,欢迎交流:mantis2340

    导入jar包:framework.jar

    接口:

    import android.content.Intent;

    import android.media.tv.TvContract;

    import android.net.Uri;

    private static final String ACTION_START_TV_PLAYER_AV1 = "com.mediatek.tvinput/.composite.CompositeInputService/HW2";

    private static final String ACTION_START_TV_PLAYER_HDMI1 = "com.mediatek.tvinput/.hdmi.HDMIInputService/HW5";

    private static final String ACTION_START_TV_PLAYER_HDMI2 = "com.mediatek.tvinput/.hdmi.HDMIInputService/HW6";

    Intent intent = new Intent(Intent.ACTION_VIEW);

    Uri uri = null;

    uri = TvContract.buildChannelUriForPassthroughInput(ACTION_START_TV_PLAYER_AV1);//HDMI HDMI2 COMPOSITE

    intent.setData(uri);

    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

    startActivity(intent);

    相关文章

      网友评论

          本文标题:MT9255 APK切换信源接口

          本文链接:https://www.haomeiwen.com/subject/wkzewltx.html