Code: Select all
ArrayList<String> options = new ArrayList<>();
options.add("--file-caching=1500");
LibVLC mLibVLC = new LibVLC(getActivity().getApplicationContext(),options);
MediaPlayer mMediaPlayer;
mMediaPlayer = new MediaPlayer(mLibVLC);
Media media = new Media(mLibVLC, Uri.parse("http://"));
media.setHWDecoderEnabled(true, false);
media.addOption(":network-caching=1000");
mMediaPlayer.setMedia(media);
mMediaPlayer.play();
MediaPlayer mMediaPlayer2;
mMediaPlayer2 = new MediaPlayer(mLibVLC);
Media media2 = new Media(mLibVLC, Uri.parse("http://"));
media2.setHWDecoderEnabled(true, false);
media2.addOption(":network-caching=1000");
mMediaPlayer2.setMedia(media2);
mMediaPlayer2.play();
Return to “Development around libVLC”
Users browsing this forum: No registered users and 24 guests