Comments (5)
from androidtv-sample-inputs.
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.
I'm working on adding this. And it will support subtitles! 😄
from androidtv-sample-inputs.
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.
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)
- package com.google.android.exoplayer.metadata.id3 not found HOT 1
- Overlay not showing on API 28 HOT 4
- Live channels -> Rich Input -> After scan and click finish it , it says No channels Available HOT 2
- Unable to buil sample HOT 4
- How to run the sample on Android TV Emulator? HOT 1
- How to run dvb from coax cable? HOT 1
- More than one file was found with OS independent path 'error_prone/Annotations.gwt.xml' HOT 1
- Live Channels with no audio (onSetStreamVolume gets volume = 0)
- Delete Wrong Issue CLosed
- Cannot be identified as a source HOT 2
- Not a channel: null on Philips TVs
- Not working Google TV
- Migrate to Maven Central
- create record file on 'onStopRecording' method
- Migrate to androidx HOT 1
- Code is old?? HOT 3
- Code is Too old HOT 3
- Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @6e37e88f
- Deprecated?
- Failed in initial building com.jfrog.bintray / org.codehaus.groovy.modules.http-builder:http-builder:0.7.2.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from androidtv-sample-inputs.