Log in or register to post comments

how to play video from url in videoplayback example

July 11, 2014 - 9:38am #1
  // This example shows how to load the movie from the
                        // assets folder of the app
                        // However, if you would like to load the movie from the
                        // sdcard or from a network location
                        // simply comment the three lines below
                        //AssetFileDescriptor afd = mParentActivity.getAssets()
                        //    .openFd(filename);
                        //mMediaPlayer.setDataSource(afd.getFileDescriptor(),
                       //     afd.getStartOffset(), afd.getLength());
                       // afd.close();
                        
                        // and uncomment this one
                        // mMediaPlayer.setDataSource("/sdcard/myMovie.m4v");
 
 
                        Uri videolink = Uri.parse("https://drive.google.com/file/d/0BxCH9Eymd1C3ejFzZUFlWm5PdWs/edit?usp=sharing");
                        mMediaPlayer.setDataSource(mParentActivity,videolink);

how to play video from url in videoplayback example

March 29, 2019 - 2:26am #4

you like to play youtube or link ?

how to play video from url in videoplayback example

December 26, 2016 - 8:18am #3

Hey, I am also trying to display video hosted on google drive in videoplayback app.

Did exact same settings, but when I launch my app, it first keeps hourglass for sometime, and then changes to cross, meaning video isnt available to play.

Any help regarding this problem?

how to play video from url in videoplayback example

December 26, 2016 - 8:18am #2

Hey, I am also trying to display video hosted on google drive in videoplayback app.

Did exact same settings, but when I launch my app, it first keeps hourglass for sometime, and then changes to cross, meaning video isnt available to play.

Any help regarding this problem?

Log in or register to post comments