android-videoview

RTSP stream in android with username and password

我的未来我决定 提交于 2019-12-06 14:21:28
问题 My task is to create an android application in android to check some IP cameras of the city. Using the existing RTSP url which is rtsp://admin:pms7112@xxx.xx.xx.xxx:554/cam/realmonitor?channel=1&subtype=0 I can get the stream in VLC player but no luck in android. I have tried videoview native player and media player . Almost every solution gave me MediaPlayer: setDataSource IOException happend : java.io.FileNotFoundException: No content provider: rtsp://... Should this problem happen because

Android - Playing Mp4

风流意气都作罢 提交于 2019-12-06 12:20:40
问题 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 回答1: 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).

sorry, this video cannot be played in videoview?

ぐ巨炮叔叔 提交于 2019-12-06 12:06:15
freinds, i am using following code to display a mp4 video in my application and facing following problems i have seen so many posts related to this issue on google and stackoverflow but every one giving his own suggestions and there is no common answer. 1) i cannot see video in emulator 2) in different phone sometime rarly video is played and most of the time it give above message. my code VideoView myVideoView = (VideoView)findViewById(R.id.videoview); String viewSource ="http://dev.hpac.dev-site.org/sites/default/files/videos/about/mobile.mp4"; myVideoView.setVideoURI(Uri.parse(viewSource));

Can't receive RTSP live stream from an IP cam

末鹿安然 提交于 2019-12-06 10:00:01
问题 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

Vitamio libffmpeg.so

戏子无情 提交于 2019-12-06 09:55:30
问题 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

How can we play/buffer only few minutes of a video in Android?

谁说胖子不能爱 提交于 2019-12-06 09:47:19
I need to play first 2 mins of a video. Using onBufferingUpdate() i get the percentage that is buffered. But by the time onPrepared is called i get buffered % as 40. Which is more than 2 mins of a video. (Considering i have a video of 30 mins) Is there any way i can play/buffer video for only 2 mins ? Thanks. The buffer size is pre-set into the firmware. All you can do is keep tabs on how much the buffer is filled, and even that is just on a percentage basis. The size is set in frameworks/base/media/libstagefright/include/NuCachedSource2.h check out this bug report on code.google.com. Edit:

BebopVideoView to Mat

馋奶兔 提交于 2019-12-06 09:28:48
I come up against the great problem. I`m try to BebopVideoView to Mat. (BebopVideoView is parrot drone source code) But I was failed for several days. Here is the code. package com.hyeonjung.dronecontroll.view; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Rect; import android.media.MediaCodec; import android.media.MediaFormat; import android.os.Environment; import android.util.AttributeSet; import android.util.Log; import android.view.SurfaceHolder; import android.view.SurfaceView; import com.parrot.arsdk.arcontroller

VideoView in different screen sizes

China☆狼群 提交于 2019-12-06 07:09:17
问题 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! 回答1: A Drawable, as far as

Online Video not Playing

梦想与她 提交于 2019-12-06 05:00:46
问题 I'm following a Tutorial to play Video in Android, Tutorial Here But when I run the Application on Emulator, it Gives me the following Error MediaPlayer error (1, -2147483648) Please Help Here's the Code of my Application JAVA package com.example.videoplayer; import android.media.MediaPlayer; import android.media.MediaPlayer.OnErrorListener; import android.media.MediaPlayer.OnPreparedListener; import android.net.Uri; import android.os.Bundle; import android.app.Activity; import android

VideoView in ViewFlipper is transparent when video is playing

南楼画角 提交于 2019-12-06 03:46:43
I've got an Activity with two views set up in a ViewFlipper. One of the views is a layout with a GLSurfaceView and a few other widgets, the other just has a layout with a TextView and a VideoView. When I click on something in the GLSurfaceView, the ViewFlipper swaps so the video can play. In this screenshot, you can see the plain GLSurfaceView rendering a map on the left. On the right is what it looks like after the ViewFlipper has flipped and the video starts playing. The empty transparent area where the GLSurfaceView shows through is where the video is supposed to be. I can hear it playing