Is possible to cast directly .ts (transport stream) live url?

40 Views Asked by At

I have direct url of .ts https://urllink/stream/channel_id.ts When I try to start casting to receiver application, it try to play media but nothing.Here is my code of sender android app:

    MediaInfo mediaInfo = new MediaInfo.Builder(channelCurrent.getUrl())
            .setStreamType(MediaInfo.STREAM_TYPE_LIVE)
            //.setContentType(MimeTypes.APPLICATION_MP4)
            .setContentType("video/MP2T")
            .setMetadata(channelMetadata)

As you can see I tried to put different content types ( like M3u8 etc..) but not successful.

Can I create custom receiver application for play directly .ts live stream or some workaround ?

1

There are 1 best solutions below

1
madslab786 On

-------------------kindly chak is your chore wersion browser and also counter you have official install chromcast in your reciver appliance fron play store with the same account which is login on yor main androida core home