android-videoview

VideoView Add a multiple videos and play

拜拜、爱过 提交于 2019-12-11 10:23:54
问题 Lets pretend that a 5 videos in sdcard or internal storage. now I already get the file path, my problem is how can i insert a multiple videos in VIDEO VIEW ? The next or previous button is not functioning here is my code public void getFile() { urls = getIntent().getStringArrayListExtra("url_videoAll"); keys = getIntent().getStringArrayListExtra("key_videoAll"); for(int i = 0; i<urls.size();i++) { String FileName = URLUtil.guessFileName(urls.get(0), null, MimeTypeMap.getFileExtensionFromUrl

Videoview on splash screen

谁说胖子不能爱 提交于 2019-12-11 10:03:56
问题 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 have tried a lot of types of videos (all supported according to http://developer.android.com/guide/appendix/media-formats.html), the last I have tried is this: http://download.wavetlan.com/SVV/Media/HTTP/BlackBerry.3gp. I also searched for solution on the internet. But none of them was working. Where is the mistake?

VideoView with a ListView

三世轮回 提交于 2019-12-11 09:53:32
问题 I am relative new to Android development. I am working on an app where it is a specific client requirement that I have a scrollable list of videos. These videos must be playable within the scrolling list as embedded views. My first thought was to use VideoViews in a ListView and use a custom ArrayAdapter to instantiate the VideoViews. After running this I get all kinds of errors, such as: E/MediaPlayer﹕ error (100, 0) E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.IllegalStateException at

android: videoview history/bookmark

橙三吉。 提交于 2019-12-11 08:52:27
问题 I have a videoplayer application. Suppose the user has played a video and after playing half of the video, the user pressed the back button or exists the application. I want that position to be remembered so that the next time, the user plays the same video, the video starts from exactly the same position from where it was left. Any ideas in this regard? Thanks much 回答1: First, you will need to store this data in some database, but it's quite simple. Now, you should add a check in the onPause

VideoView “is loaded” listener?

血红的双手。 提交于 2019-12-11 07:35:55
问题 I'm working on an application which has a home screen with video view in the background. In a framed layout, the video is played behind buttons. When the main activity is loaded, the buttons are shown immediately, before the videoview is fully loaded, and because of that there are a few milliseconds of black background, and the buttons are shown. I'm trying to make the buttons appear after the video in the background is fully loaded. Is there a way to set listener to know when video has

Android Streaming with MediaPlayer: Error(1, -1004) and 3GPP video

混江龙づ霸主 提交于 2019-12-11 07:26:55
问题 I'm trying to do an app for play video. I've 2 problems: 1) I've a Youtube's link: rtsp:// and i do: "Uri myUri = Uri.parse(link); //link = rtsp://... mMediaPlayer.setDataSource(getApplicationContext(), myUri);" Then, the video doesn't play... however, if i use a "videoview" works. I think the problem is that "mediaplayer" doesn't play the mpeg codec. Any ideas? 2) I've several links to a different quality, and i play them connected to wifi and no problem but with data connection: 05-01 15:58

Android: Make a Video transparent

半腔热情 提交于 2019-12-11 06:19:38
问题 i'm trying to make a video, played in a videoview transparent. As written in the documentation the videoview should have a method "setAlpha" but my Eclipse says there is no such method?!? 回答1: This method requires Android SDK 11 (Android 3.0 Honeycomb). So you shouldn't use this method if you want to use this app on Android 2.X devices. 来源: https://stackoverflow.com/questions/5445813/android-make-a-video-transparent

Play a video from SD card and loop the video using videoView

旧巷老猫 提交于 2019-12-11 06:05:32
问题 My goal here is to play all the videos from a folder in SDCard for example all the videos in the download folder and play it on loop. But my problem now is when i start the app, the app always shows an error say "Can't play this video". This is my code and i appreciate the help. @Override protected void onResume() { super.onResume(); VideoView video = (VideoView) findViewById(R.id.videoview1); video.setOnPreparedListener(new MediaPlayer.OnPreparedListener() { @Override public void onPrepared

Android Video Streaming Problem

最后都变了- 提交于 2019-12-11 05:39:05
问题 I am new to android and trying to streaming video from my server. When i run the application it gives Error "sorry,this video is not valid for streaming to this Device.." than i download and push to sdcard of my device(samsung Galaxy 5)this time video is playing.... i convert this video by SOTHINK VIDEO CONVERTER.. Any Help?? Thanks.. 回答1: We ran into exactly the same problem, and I found a solution at this link: http://code.google.com/p/android/issues/detail?id=9044 In short, if you have

Play video one after another

天涯浪子 提交于 2019-12-11 05:13:45
问题 I need to play two video one after another(as a pair), the first video is as intro video and the second video is as main video, So what I actually need is that after finishing intro video the main video will start...say intro-1 & main-1, intro-2&main-2, intro-3& main3...so on. the problem that I am getting is that i cnt move to intro video again after completing the main video.Only the main video is played again and again Here is that code: videoView.setVideoPath(introPath); videoView