Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video Not played from internal storage #9

Open
iAviatorJose opened this issue Jul 28, 2015 · 0 comments
Open

Video Not played from internal storage #9

iAviatorJose opened this issue Jul 28, 2015 · 0 comments

Comments

@iAviatorJose
Copy link

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");

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant