-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracks mapping error #541
Comments
This will be fixed in the next release (not sure if that will be a |
Faced the same issue. Got the test5.mkv from here https://www.matroska.org/downloads/test_w1.html
prints
When the exoplayer returns correct information for the same file
|
Looks like problem is in this code, line 677. The ordinal starts from 0, while the ExoPlayer constants start from 1 ExoMedia/library/src/main/java/com/devbrackets/android/exomedia/core/exoplayer/ExoMediaPlayer.java Lines 671 to 681 in 295267a
|
@httpdispatch Have you verified that this is with the most recent version of ExoMedia as this was fixed in January? |
@brianwernick in the master branch issue with the wrong mapping is still present. See #652 |
@brianwernick looks like i have some caching issues. Sorry, this issue is not valid |
@brianwernick rechecked, issue is still there. Looks like you have 2 methdos |
…with the getExoPlayerTrackType everywhere such as it contains bug in index calculation
…edia renderer type such as it is not a constant value
@brianwernick the mentioned test5.mkv file has 2 audio track groups (one is empty) which makes exo player track index calculation code to produce invalid indexes. That is why i had subtitles inside metadata render type. I've created #653 to overcome this issue |
Ah, Thanks. I'll look at it in a bit |
…r type such as it is not a constant value (#653)
Include the following:
4.1.0
ANY
ANY
ANY
Reproduction Steps
Call method com.devbrackets.android.exomedia.ui.widget.VideoView#getAvailableTracks().get(ExoMedia.RendererType.AUDIO)
Expected Result
List of AUDIO groups.
Actual Result
List of VIDEO groups like shown from the debugger output:
audioTracks = {TrackGroupArray@7470}
hashCode = 0
length = 1
trackGroups = {TrackGroup[1]@7471}
0 = {TrackGroup@7473}
formats = {Format[2]@7474}
0 = {Format@7476} "Format(0, null, video/avc, 1347080, null, [720, 396, -1.0], [-1, -1])"
1 = {Format@7477} "Format(1, null, video/avc, 2481150, null, [720, 396, -1.0], [-1, -1])"
hashCode = 0
length = 2
shadow$klass = {Class@5088} "class com.google.android.exoplayer2.source.TrackGroup"
shadow$monitor = -2078921867
shadow$klass = {Class@4650} "class com.google.android.exoplayer2.source.TrackGroupArray"
shadow$monitor = -2133677826
Solution:
Change line 270 @ com.devbrackets.android.exomedia.core.exoplayer.ExoMediaPlayer#getAvailableTracks():
to line:
The text was updated successfully, but these errors were encountered: