ConnectSDK / connectsdk.com

Documentation of Connect SDK
8 stars 8 forks source link

Connect SdK can not support video type of ts #10

Open qs991011 opened 3 months ago

qs991011 commented 3 months ago

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 commented 1 month ago

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