Coder Social home page Coder Social logo

Comments (4)

Fleker avatar Fleker commented on July 24, 2024

from androidtv-sample-inputs.

mkjensen avatar mkjensen commented on July 24, 2024

I had a little time to look at this again. I'm now using com.google.android.libraries.tv:companionlibrary:0.2.

While EPG updates may cause an issue when occurring while watching (I really didn't investigate this completely yet), it turns out that what has been annoying me is that when I'm watching a program and it ends (and the next program begins), there is a small hiccup. I think it is because the system is starting playback of the next program. However, in my case the next program is supplied by the same live stream (the same video URL) so really it is not necessary to start playing a new program. I guess I can easily fix this by, in my implementation of com.google.android.media.tv.companionlibrary.BaseTvInputService.Session#onPlayProgram checking if the program to be played has the same video URL as what is currently playing and if it has then do nothing.

By the way, this has been my only issues with the library (and it may turn out that I'm at fault) that otherwise has made it very easy to implement channels for Android TV. So thank you for providing the library!

from androidtv-sample-inputs.

Fleker avatar Fleker commented on July 24, 2024

from androidtv-sample-inputs.

mkjensen avatar mkjensen commented on July 24, 2024

Since making the change mentioned in my previous comment I have been using my app without any issues. So my problem was my own fault and unrelated to the library. Sorry for the trouble and thanks again for the library!

I'm using the library for https://github.com/mkjensen/tv which enables me to view some Danish TV channels on my NVIDIA Shield TV. I cancelled my cable subscription since the Danish Broadcasting Corporation streams the channels for free(*) via the internet.

(*) You have to pay a special "media licence" / tax but you have to pay that regardless of how you watch the content (you even have to pay just for having the possibility to watch).

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.