Videoview On Splash Screen
I'm making an app that plays a video in a videoview as a splash screen. It doesn't work on the emulator and several real phones, it says 'Sorry, this video cannot be played.'. I ha
Solution 1:
1)"Couldn't open file on client side, trying server side"
this message refers that can´t open the file because codecs are not supported or the file doesn´t exist, your file inside the /raw folder must be named "blackberry.3gp
"
2) the package of your app is com.koostamas.tbbt
, not com.tamaskoos.tbbt
that you have defined here:
videoView.setVideoPath("android.resource://com.tamaskoos.tbbt/raw/blackberry");
change the package name to load the video resource:
VideoViewvideoView= (VideoView)findViewById(R.id.videoView_circle);
videoView.setMediaController(newMediaController(this));
videoView.setVideoURI(Uri.parse("android.resource://com.koostamas.tbbt/" + R.raw.blackberry));
videoView.start();
Post a Comment for "Videoview On Splash Screen"