使用Jiecao Video Player播放SD卡片视频?

时间:2016-05-26 12:23:54

标签: android video-player

我正在使用Jiecao Video Player播放流媒体视频。我还要播放sdcard个视频。我不知道该怎么做。如果有人帮助我,它会更有用。提前致谢。我使用了以下代码。参考链接

https://github.com/lipangit/jiecaovideoplayer

JCVideoPlayerFullscreen jcVideoPlayerStandardShowTitleAfterFullscreen = (JCVideoPlayerFullscreen) findViewById(R.id.videoSurface);
        jcVideoPlayerStandardShowTitleAfterFullscreen.setUp("http://video.jiecao.fm/5/1/%E8%87%AA%E5%8F%96%E5%85%B6%E8%BE%B1.mp4"
                , "嫂子摸完没");

1 个答案:

答案 0 :(得分:1)

我不确定,但你可以使用这个。

int video_column_index = videoCursor.getColumnIndexOrThrow(MediaStore.MediaColumns.DATA);
            videoCursor.moveToPosition(position);
            String videoUri = videoCursor.getString(video_column_index);
 JCVideoPlayerFullscreen jcVideoPlayerStandardShowTitleAfterFullscreen = (JCVideoPlayerFullscreen) findViewById(R.id.videoSurface);
        jcVideoPlayerStandardShowTitleAfterFullscreen.setUp(videoUri 
                , fileName);