[AudioTrack] Use of stream types is deprecated for operations other than volume control
In my Xamarin.Form project,when i use mediaPlayer in android, it log those information:
[AudioTrack] Use of stream types is deprecated for operations other than volume control
[AudioTrack] See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
The code i use:
protected override void OnAppearing() { base.OnAppearing(); Core.Initialize(); var libVlc=new LibVLC(); MediaPlayer player; using (var media = new Media(libVlc, new Uri("http://192.168.2.7/Movies/哥 斯拉大战金刚..BD1080P.国语中字.mp4"))) { player = new MediaPlayer(media); } videoView.MediaPlayer = player; player.Play(); }
it seems to use the deprecated instructor of AudioTrack in android.
when i search this problem in google,i found
it says the issue be fixed,but it's still exists in VideoLAN.LibVLC.Android(3.2.0.1) nuget package.how to solve it?