Computer Software Projects DISCUSSION

Play .flac file using MediaPlayer class in android

Started by syedzainnasir Play .flac file using MediaPlayer class in android
0 replies 248 views 1 participants
Latest activity · 09 Mar 2017

Play .flac file using MediaPlayer class in android

syedzainnasir Computer Software Projects Forum
#1
I am using the following code successfully on Lollipop. But it is not working on Marshmellow. [code]for (int i = 0; i < all_track_size; i++) { SongDetailModel model = new SongDetailModel(); String path = SharedPreferenceUtil.getString("all_track_path" + i, ""); model.setSong_path(path); array_all_track.add(model); } if (array_all_track.get(pos).getSong_path().endsWith(".mp3") || array_all_track.get(pos).getSong_path().endsWith(".flac") || array_all_track.get(pos).getSong_path().endsWith(".wav")) { filePath = array_all_track.get(pos).getSong_path(); Log.d(TAG, " : SELECTED SONG : " + filePath); }[/code]

Community replies 0

Be the first to help

There are no replies yet.

TEP COMMUNITY