google / ExoPlayer

This project is deprecated and stale. The latest ExoPlayer code is available in https://github.com/androidx/media
https://developer.android.com/media/media3/exoplayer
Apache License 2.0
21.75k stars 6.03k forks source link

Cannot resolve constructor 'Factory(BandwidthMeter)' #11331

Closed tuhoang1207 closed 1 year ago

tuhoang1207 commented 1 year ago

This is my code:

@Override protected void onStart() { super.onStart(); playerView = findViewById(R.id.video_player); BandwidthMeter bandwidthMeter = new DefaultBandwidthMeter.Builder(getApplicationContext()).build(); TrackSelector trackSelector = new DefaultTrackSelector(new AdaptiveTrackSelection.Factory(bandwidthMeter)); }

TrackSelector cannot resolve Factory(bandwidthMeter). I had try to remove bandwidthMeter like the instruction but nothing changed. Is there any issue for this? Thank you

rohitjoins commented 1 year ago

The com.google.android.exoplayer2 project is now deprecated. We are not accepting any new issues in this project. Please file your issue in the androidx.media3 GitHub project instead: https://github.com/androidx/media/issues