vlc-android

Getting current frame from android vlc media player

蓝咒 提交于 2020-05-14 12:17:43
问题 I'm using VLC-Android in order to play H264 RTSP live stream in my android application, the following code successfully renders the stream video onto the surface view: MediaPlayer mMediaPlayer = new MediaPlayer(VLCInstance.get()); SurfaceView mSurfaceView = (SurfaceView) findViewById(R.id.player); final IVLCVout vlcVout = Constants.mMediaPlayer.getVLCVout(); vlcVout.detachViews(); vlcVout.setVideoView(mSurfaceView); vlcVout.setWindowSize(mSurfaceDims.getWidth(), mSurfaceDims.getHeight());

Getting current frame from android vlc media player

强颜欢笑 提交于 2020-05-14 12:17:07
问题 I'm using VLC-Android in order to play H264 RTSP live stream in my android application, the following code successfully renders the stream video onto the surface view: MediaPlayer mMediaPlayer = new MediaPlayer(VLCInstance.get()); SurfaceView mSurfaceView = (SurfaceView) findViewById(R.id.player); final IVLCVout vlcVout = Constants.mMediaPlayer.getVLCVout(); vlcVout.detachViews(); vlcVout.setVideoView(mSurfaceView); vlcVout.setWindowSize(mSurfaceDims.getWidth(), mSurfaceDims.getHeight());

Unable to Set Subtitles with VLC for Android

感情迁移 提交于 2019-12-24 07:16:08
问题 I'm having trouble setting the subtitles location when starting the VideoPlayerActivity of VLC for Android. I am targeting API 27 and using a FileProvider to allow access to files. According to the documentation here, if you set the, "subtitles_location" extra, then you can provide the path of the subtitles file. Unfortunately, I can't seem to get this to work. I'm seeing that the, "Subtitles" menu item remains grayed out and downloading subtitles doesn't seem to change this state. When

vlc-android-sdk - cannot view RTSP live video

五迷三道 提交于 2019-12-22 08:55:12
问题 I've been working on an Android application that shows live streaming video via RTSP. Assuming I have a well-functioning RTSP server that passes h264 packets, and to view the stream we should connect to rtsp://1.2.3.4:5555/stream So I tried to use the native MediaPlayer\VideoView, but no luck (the video was stuck after 2-3 seconds of playback, so I loaded mrmaffen's vlc-android-sdk (can be found here) and used the following code: ArrayList<String> options = new ArrayList<String>(); options

Using vlc player in xamarin.android project

主宰稳场 提交于 2019-12-11 15:58:13
问题 use LibVLCSharp in my project cause the video pixeled and grey screen I tried to add file-caching=1500 to media player with no success and you can see my code below this.VideoPath = extras.GetString(INTENT_KEY_PARAM_VIDEO_PATH); Core.Initialize(); _libVLC = new LibVLC(); _mediaPlayer = new MediaPlayer(_libVLC); _videoView.MediaPlayer = _mediaPlayer; var mediaUri = Android.Net.Uri.Parse(this.VideoPath); var m = new Media(_libVLC, mediaUri.ToString(), FromType.FromPath); var configuration = new