android-videoview

VideoView with Cookies (or Headers)

霸气de小男生 提交于 2019-12-04 18:33:38
问题 I am trying to use android.widget.VideoView to stream content. I need to ensure that when using setVideoURI(Uri) that VideoView will include Cookies from prior HttpClient calls. I see in the source that there is setVideoUri(Uri,Headers) but this has a @hide JavaDoc annotation and won't compile. So, anyway to pass cookies or headers with the HTTP requests made by VideoView? Thanks. 回答1: Extract classes VideoView and Metadata from SDK. Then, you will be able to call setVideoURI(Uri uri, Map

MediaController Positioning - bind to VideoView

家住魔仙堡 提交于 2019-12-04 18:18:53
问题 There have been a lot of discussions about how to position a MediaController and most answers are to use the setAnchorView -Method. At the first glance this solution seems to work but in my case it doesn't. According to this Post setAnchorView only acts as a reference for initial positioning of the MediaController , but actually creates a new floating Window on top. So what I want is a MediaController that is really bound to a parent View (e.g. VideoView). For example if you have a

How to know which android devices support video playback?

两盒软妹~` 提交于 2019-12-04 18:18:03
I've made an app to view vine videos on Android devices. These are basically .mp4 videos being loaded into a VideoView . From the following documentation ( http://developer.android.com/guide/appendix/media-formats.html ), mp4 video playback is supported on Android version 3+ devices. I've already added a android:minSdkVersion="11" to the manifest file to filter out older android versions from downloading the app, but I'm still getting feedback from users running newer versions of Android (eg. 4.1, 4.2) that complain about getting a "Video cannot be played" error message. Since there's no way

Vitamio libffmpeg.so

房东的猫 提交于 2019-12-04 18:02:55
I am playing around with the Vitamio demo, and like what I see. However, I need to slightly customise the ffmpeg source code (modifying http.c so the default is set for http streams to be non-seekable). I have followed the steps HERE in order to rebuild libffmpeg.so. All compiled fine, so far, so good... However, I don't see where libffmpeg.so resides in the Vitamio bundle. I see a library called libarm.so. Does it live inside here? If so, how does one go about repacking it with the modified libffmpeg.so included? Thanks Dan libarm.so you see in a raw folder is actually a 7z with folders in it

Display two videos together then output as a merged video on a single screen

匆匆过客 提交于 2019-12-04 17:42:11
问题 This question may sound a little bit complex or ambiguous, but I'll try to make it as clear as I can. I have done lots of Googling and spent lots of time but didn't find anything relevant for windows. I want to play two videos on a single screen. One as full screen in background and one on top of it in a small window or small width/height in the right corner. Then I want an output which consists of both videos playing together on a single screen. So basically one video overlays another and

Android VideoView Error 1,0

别来无恙 提交于 2019-12-04 17:39:23
I have an application thats main goal is to play a specific video file. it plays the video correctly sometimes. But other times it gives me this error: 03-21 14:52:36.181: I/AwesomePlayer(119): setDataSource_l('/data/data/my.package.name/files/MyMovie.mp4') 03-21 14:52:36.196: W/VideoView(26612): Unable to open content: /data/data/my.package.name/files/MyMovie.mp4 03-21 14:52:36.196: W/VideoView(26612): java.lang.IllegalArgumentException: The surface has been released 03-21 14:52:36.196: W/VideoView(26612): at android.media.MediaPlayer._setVideoSurface(Native Method) 03-21 14:52:36.196: W

Android - Playing Mp4

ε祈祈猫儿з 提交于 2019-12-04 16:41:06
I am trying to play video files from http urls in my app. Why is that my app plays only certain mp4 files (I tried 512k mp4 and it worked), and doesn't play some others? Here's the snippet of my code: mVideoView.setVideoPath(myVideoURL); mVideoView.setMediaController(new MediaController(this)); mVideoView.seekTo(currentPosition); mVideoView.requestFocus(); Thanks Chris Make sure your mp4's aren't DRM'd, and that they're not wider than 320 pixels (videoView will not scale them for you). Are you getting any useful errors in LogCat? 来源: https://stackoverflow.com/questions/2910292/android-playing

VideoView in different screen sizes

谁说胖子不能爱 提交于 2019-12-04 15:52:16
I'm trying to insert a video for different sizes of screen. What I want it's a good resolution and without distortion. I have 2 videos for large and tiny screens. But I don't know how to insert them. I thought it was like insert images from drawables files (hdpi, ldpi, etc) where you add the image in the resolution folder that you want. But I dont know if happens the same with videos or not. Please help me to insert both videos to different resolutions! Thanks! A Drawable , as far as Android is concerned is any kind of graphic/image/icon... But a video doesn't fall in that category. For that

Can't receive RTSP live stream from an IP cam

时光毁灭记忆、已成空白 提交于 2019-12-04 14:47:27
I want to receive live streaming from an IP camera using RTSP, I'm getting 'Can't play this video' , and the following Exception: 07-16 14:06:26.945: D/MediaPlayer(19411): setDataSource IOException happend : 07-16 14:06:26.945: D/MediaPlayer(19411): java.io.FileNotFoundException: No content provider: rtsp://192.168.30.108:554 07-16 14:06:26.945: D/MediaPlayer(19411): at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1052) 07-16 14:06:26.945: D/MediaPlayer(19411): at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:907) 07-16 14:06

android videoview error 1, -2147483648

廉价感情. 提交于 2019-12-04 13:56:46
问题 I am getting error while playing video from asset folder and raw folder. MediaPlayer error (1, -2147483648) VideoView error 1, -2147483648. I tried from asset folder as. private String SrcPath = "file:///android_asset/aaa.mp4"; //also tried aaaa.mp3 VideoView vv = (VideoView)findViewById(R.id.videoView1); vv.setVideoPath(SrcPath); MediaController controller = new MediaController(this); controller.setAnchorView(vv); vv.setMediaController(controller); vv.requestFocus(); vv.start(); and for raw