Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect SdK can not support video type of ts #10

Open
qs991011 opened this issue Jun 19, 2024 · 1 comment
Open

Connect SdK can not support video type of ts #10

qs991011 opened this issue Jun 19, 2024 · 1 comment

Comments

@qs991011
Copy link

When I transfer TS files to TV through connect SDK, there will be an error message
`
mMediaPlayer.load(mApiClient, mediaInformation, true).setResultCallback(new ResultCallback() {

            @Override
            public void onResult(MediaChannelResult result) {
                Status status = result.getStatus();

                if (status.isSuccess()) {
                    webAppSession.mLaunchSession.setSessionType(LaunchSessionType.Media);
                    mMediaPlayer.setActiveMediaTracks(mApiClient, new long[]{MEDIA_TRACK_ID});
                    Util.postSuccess(listener, new MediaLaunchObject(webAppSession.mLaunchSession, CastService.this));
                } else {
                    Util.postError(listener, new ServiceCommandError(status.getStatusCode(), status.getStatusMessage(), status));
                }
            }
        });

`

the result of status is not success. so I would like to know if it is not supported for TS files。Thank you.

@yjojovasuka
Copy link

yes you are right , you have to convert ts to mp4 (you can use ffmpeg) and than you can use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants