Coder Social home page Coder Social logo

Comments (5)

Fleker avatar Fleker commented on August 27, 2024

from androidtv-sample-inputs.

micolous avatar micolous commented on August 27, 2024

I had a go at porting this based on your CumulusTV code, but got stuck because of other ExoPlayer bugs. I was fiddling trying to get it to behave, only to find that there was an issue with the H264 stream my IPTV provider puts out and it also doesn't support MP2 audio. 😞

As a result I probably got some working code, but then summarily destroyed it in the debugging process because I failed to use version control. Not a lot of changes occurred in 1.5.3 to 1.5.5 of ExoPlayer, but there's enough that it doesn't build cleanly out of the box.

I'm not sure of a solution to subtitle integration, as the streams I was attempting to work with either didn't have subtitles, or used Teletext / VBI subtitles (which I don't think are supported by ExoPlayer). I merely noted it as an omission, though I don't recall if the original Google sample code also omitted it.

In the end I used one of Kodi's IPTV plugins to write support for my IPTV provider. This took less than an hour to write a small Python script that translated the playlist file into the correct format, and rewrite the URLs to use udpxy. This is compared to the 12+ hours I spent attempting to use Android TV APIs.

CumulusTV could have saved me some trouble here, but I would have still run up against other codec issues anyway.

from androidtv-sample-inputs.

ryanseys avatar ryanseys commented on August 27, 2024

I'm working on adding this. And it will support subtitles! 😄

from androidtv-sample-inputs.

ryanseys avatar ryanseys commented on August 27, 2024

I've updated the sample to use the latest ExoPlayer (1.5.6) and it supports subtitles (see the BipBop channel within this sample). You may have to clear the current data in your Live Channels app and reinstall the channels from this sample app to get it all to work properly.

Let me know if you encounter any issues.

from androidtv-sample-inputs.

micolous avatar micolous commented on August 27, 2024

Awesome, thanks!

It looks like half of my codec issue in ExoPlayer has also been fixed, so I'll have to have another attempt at making this work in future.

from androidtv-sample-inputs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.