Comments (16)
Are you using an emulator? If so, please ensure you're using an Android M
emulator as video playback only works in Android M emulator and above.
On Sat, Nov 14, 2015 at 7:47 AM Timi Ajiboye [email protected]
wrote:
The sample app that google provides keeps giving me "can't play this
video" and this stack trace:11-14 10:45:29.852 8923-9263/com.example.android.tvleanback E/MediaPlayer: error (1, -38)
11-14 10:45:29.861 8923-9262/com.example.android.tvleanback E/MediaPlayer: error (1, -38)
11-14 10:45:29.861 8923-8923/com.example.android.tvleanback E/MediaPlayer: Error (1,-38)
11-14 10:45:29.861 8923-8923/com.example.android.tvleanback D/VideoView: Error: 1,-38
11-14 10:45:29.861 8923-8923/com.example.android.tvleanback E/MediaPlayer: stop called in state 0
11-14 10:45:29.861 8923-8923/com.example.android.tvleanback E/MediaPlayer: error (-38, 0)
11-14 10:45:29.940 8923-8923/com.example.android.tvleanback W/MediaPlayer: mediaplayer went away with unhanded eventsI have spent hours trying to figure out what is wrong, to no avail. Not
that this is my first foray into Android TV, so it's unlikely that I'd have
been able to solve the issue.—
Reply to this email directly or view it on GitHub
#50.
from androidtv-leanback.
Yes, I was using an emulator.
I tried using the Android M AVD for Android TV but for some reason, it refuses to connect to the internet, so I couldn't test video playback. (This isn't a problem for Android L Android TV AVDs).
So I took my testing to a Nexus 6P Genymotion Emulator in full screen. Still getting the same "can't play this video" pop up.
from androidtv-leanback.
Is there anything else I need to do/test/provide to help with this issue?
from androidtv-leanback.
Still waiting for any form of response or tip. :(
from androidtv-leanback.
Unfortunately, if your emulator refuses to connect to the internet that is beyond this library's control and beyond what assistance I can provide. I will file an issue internally to have someone look into emulator internet connectivity but please understand this is not an issue with this library but with the tooling around it. Please be patient as if this is an issue with the emulator, you will need wait until they release a fix. There is no change to this library that will fix the issue you are encountering unless we removed the need for network connectivity from this library which would be unrealistic. Thanks for your patience. I would encourage you to continue to seek help elsewhere on gaining connectivity to your emulator in the meantime.
from androidtv-leanback.
I just created an emulator using API 23 and it could connect to internet with absolutely no issue, so the issue is local to your setup and not related to the emulator.
from androidtv-leanback.
I should take it back; it doesn't have internet connectivity in M.
from androidtv-leanback.
Internal bug filed: 25831577
from androidtv-leanback.
I'd like to add that playback works on an Android 5.1 Nexus 10 emulator. But doesn't work on a 6.0, Nexus 6P emulator.
from androidtv-leanback.
I am having the same issue. Just created a brand new Android_TV_1080p_Android_23 emulator from Android Studio 2.0. All I get is the error toast:
Failed to load videos. Please check your network connection.
@ryanseys Did you test this repo on an emulator?
from androidtv-leanback.
@ryanseys I am having the same issue as @IgorGanapolsky.
No internet when using emulator with the default project which has images and videos that load from the web. I also tried adding code to hit my local api and that fails as well. For me all access to local network and internet do not work with android tv emulator sdk 22 and 23.
If I deploy this app to my Shield Android TV it connects to the web and the api on my local network perfectly.
from androidtv-leanback.
Yes, this is an issue with the emulator and not our library. We're awaiting a fix for the emulator. I'll confirm this is fixed once I know that such a fix is publicly available.
from androidtv-leanback.
Same problem with tv emulator. Waiting for fix!
from androidtv-leanback.
@ryanseys Thanks Ryan. My apologies as I see the emulator is not your responsibility. Thanks for keeping us posted!
from androidtv-leanback.
Now it's working! Update to latest System images. Happy coding!
from androidtv-leanback.
@Cataalinn thanks for letting us know that it's now working for you :) I'll close this for now, but please let me know if you still encounter this issue.
from androidtv-leanback.
Related Issues (20)
- apk don't have intent leanback HOT 8
- sql injection vulnerability with content provider HOT 2
- android.view.InflateException: Binary XML file line #18: Binary XML file line #18: Error inflating class android.support.v17.leanback.widget.VerticalGridView HOT 7
- project not working after clone project HOT 2
- AndroidX migration issue HOT 3
- How to implement GuidedTimePickerAction for GuidedStepSupportFragment? HOT 1
- How to change HeaderItem Font Style HOT 1
- Video Can not make full screen.
- Picture in picture & resizing of video
- SQL Injection issue HOT 1
- update PreviewProgram slow HOT 1
- How to update json data on browseFragment? HOT 1
- FastForwardAction does not respond to its input KeyEvent (KEYCODE_MEDIA_FAST_FORWARD) HOT 1
- How to disable seekbar on PlaybackTransportControlGlue ? HOT 3
- I can't play my own video HOT 1
- Detail Fragment HOT 1
- How to customize BrowseFragment to show text and image preview above Row list HOT 7
- VerticalGridSupportFragment Focus Issue HOT 1
- It's possible to create a top navigation by using Leanback library in Android-TV HOT 2
- Add footer HOT 1
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-leanback.