You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using this below code : @OverRide
public boolean onSelectTrack(int type, String trackId) {
final Tracks tracks = player.getCurrentTracks();
Tracks.Group audioTrackGroup = null;
for (Tracks.Group trackGroup : tracks.getGroups()) {
if(trackGroup.getMediaTrackGroup().id.equals(trackId)){
Log.i(TAG, "onSelectTrack audioTrackGroup " + audioTrackGroup);
audioTrackGroup = trackGroup;
break;
}
}
if(audioTrackGroup!=null){
Log.i(TAG, "onSelectTrack audioTrackGroup " + audioTrackGroup);
defaultTrackSelector.setParameters(
defaultTrackSelector.getParameters()
.buildUpon()
.setOverrideForType(
new TrackSelectionOverride(
audioTrackGroup.getMediaTrackGroup(),0))
.build()
);
}
return true;
}
After switching tracks, may be there will be a gap. It is suspected that there is
a certain amount of diff between the new audio and the current video after switching, and the gap is caused by synchronisation.
Version
Media3 1.3.0
More version details
I am using this below code :
@OverRide
public boolean onSelectTrack(int type, String trackId) {
final Tracks tracks = player.getCurrentTracks();
Tracks.Group audioTrackGroup = null;
for (Tracks.Group trackGroup : tracks.getGroups()) {
if(trackGroup.getMediaTrackGroup().id.equals(trackId)){
Log.i(TAG, "onSelectTrack audioTrackGroup " + audioTrackGroup);
audioTrackGroup = trackGroup;
break;
}
}
if(audioTrackGroup!=null){
Log.i(TAG, "onSelectTrack audioTrackGroup " + audioTrackGroup);
defaultTrackSelector.setParameters(
defaultTrackSelector.getParameters()
.buildUpon()
.setOverrideForType(
new TrackSelectionOverride(
audioTrackGroup.getMediaTrackGroup(),0))
.build()
);
}
return true;
}
After switching tracks, may be there will be a gap. It is suspected that there is
a certain amount of diff between the new audio and the current video after switching, and the gap is caused by synchronisation.
Log attached.
Archive.zip
video link:
https://www.jiocloud.com/l/?u=f4b4d8nDFDk-djiFIsXmZbtTJ2phUx9nUNkPJUJ583g=Oe5
CCodecBuffers class taking some time I can see in log.
Devices that reproduce the issue
We are using STB Android 11 , SDK version 30
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Yes
Reproduction steps
Expected result
When track changed AV should be smooth
Actual result
Momentary AV freeze for some mili seconds
Media
Its FTA
Bug Report
adb bugreport
to android-media-github@google.com after filing this issue.The text was updated successfully, but these errors were encountered: