Video Not played from internal storage
iAviatorJose opened this issue · 0 comments
iAviatorJose commented
I am not able to a play a video stored inside a folder.
Here is the code i am using. And i am trying to play an mp4 file.
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
video_view = (AdaptiveSurfaceView)findViewById(R.id.video_view);
videoPlaybackManager = new VideoPlaybackManager(this, video_view,playbackHandler );
playbackHandler = new PlaybackHandler() {
@Override
public void onPreparePlayback() {
runOnUiThread (new Runnable() {
public void run() {
videoPlaybackManager.showMediaController();
}
});
}
};
videoPlaybackManager.setupPlayback(Environment.getExternalStorageDirectory() + "/PurpleSlate/PurpleSlateVideos/demo.mp4");
}