android-video-player

How to capture/record clip from Video URL in Android and save to phone

喜你入骨 提交于 2019-11-30 18:51:13
In Android, is it possible to record a short clip (ex: an arbitrary 5-10 seconds in the video) from a Video URL (ex: http://www.test.com/video.mp4 )? For example, I'd like to stream a video (from url) in an Activity and allow the ability to capture/record a short clip from it. Perhaps, allow the user to record an arbitrary Start/End time from the video. If so, is there an API to accomplish this? If not, is there an Android library to support this? Please provide a sample code solution for this. Kiril Aleksandrov You can see this link. In short your server has to support downloading. If it does

Android Video Player Using NDK, OpenGL ES, and FFmpeg

故事扮演 提交于 2019-11-29 18:49:42
Ok so here is what I have so far. I have built FFmpeg on android and am able to use it fine. I have been able to load a video into FFmpeg after passing the chosen filename from the java side. To save on performance I am writing video player in the NDK rather than passing frames from FFmpeg to java through JNI. I want to send frames from the video to an OpenGL surface. I am having trouble figuring out how to get each frame of video and render it onto the OpenGL surface. I have been stuck trying to figure this out for a couple weeks now with no luck. Hopefully someone can point me in the right

How to capture/record clip from Video URL in Android and save to phone

谁说我不能喝 提交于 2019-11-29 18:45:28
问题 In Android, is it possible to record a short clip (ex: an arbitrary 5-10 seconds in the video) from a Video URL (ex: http://www.test.com/video.mp4)? For example, I'd like to stream a video (from url) in an Activity and allow the ability to capture/record a short clip from it. Perhaps, allow the user to record an arbitrary Start/End time from the video. If so, is there an API to accomplish this? If not, is there an Android library to support this? Please provide a sample code solution for this

Android Video Upload to Php server?

喜欢而已 提交于 2019-11-29 16:23:20
How to upload the video or image file to php server.Anyone provide some sample app or source to upload the file in php server please. I'd suggest creating an AsyncTask to handle your upload and then use the Apache Libs to do a POST to your server. I have a system in place now that posts images to a Linux server and then PHP accepts the POST and saves the image data. Try something like this, you'll need to get the commons-io jar and the httpmime jar from Apache if I remember correctly. import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client

How to capture screenshot or video frame of VideoView in Android

最后都变了- 提交于 2019-11-29 15:32:20
I've tried the following tutorial from this blog ( http://android-er.blogspot.kr/2013/05/get-current-frame-in-videoview-using.html ), which shows how to capture a video frame using MediaMetadataRetriever from a video source. However , it only works if the video is located locally on the phone. Is there a way to capture a video frame while the VideoView is streaming the video over IP? I have found a solution to this problem. It appears that the VideoView does not allow this because of low-level hardware GPU reasons while using a SurfaceView. The solution is to use a TextureView and use a

How to upload video file into webserver in android?

落爺英雄遲暮 提交于 2019-11-29 12:04:46
Hi I want to upload my video file into web server in Android. I followed this tutorial: Uploading files to HTTP server using POST on Android. But. I got this error in my logcat. And i got a message from server too. 09-11 10:20:55.088: D/dalvikvm(284): GC_FOR_MALLOC freed 1137 objects / 74200 bytes in 70ms 09-11 10:20:55.768: I/dalvikvm-heap(284): Grow heap (frag case) to 3.611MB for 1048592-byte allocation 09-11 10:20:55.918: D/dalvikvm(284): GC_FOR_MALLOC freed 202 objects / 10144 bytes in 142ms 09-11 10:20:56.178: D/dalvikvm(284): GC_FOR_MALLOC freed 86 objects / 3424 bytes in 91ms 09-11 10

Android SDK - Media Player Video from URL

一曲冷凌霜 提交于 2019-11-28 23:39:20
I've tried to find a simple tutorial which explains how to load a video from a URL into the android media player but unfortunately I couldn't find any! I have tried several things to try get it working but still no luck. What is the best way to have a MediaPlayerActivity just load a video from a URL? Thanks EDIT: I have tried the following code as suggested: VideoView videoView = (VideoView) findViewById(R.id.your_video_view); MediaController mediaController = new MediaController(this); mediaController.setAnchorView(videoView); videoView.setMediaController(mediaController); videoView

Resize video to fit the VideoView

蓝咒 提交于 2019-11-28 17:57:39
I'm positioning a VideoView with AbsoluteLayout (I need to display it on several places into the screen at specific positions). public void showVideo(RectF bounds, final String videoUrl) { AbsoluteLayout.LayoutParams params = (AbsoluteLayout.LayoutParams) video.getLayoutParams(); params.width = (int) bounds.width(); params.height = (int) bounds.height(); params.x = (int) bounds.left; params.y = (int) bounds.top; video.requestLayout(); video.setVisibility(View.VISIBLE); video.setFocusable(true); video.setFocusableInTouchMode(true); video.requestFocus(); File file = new File(videoUrl); video

How to capture screenshot or video frame of VideoView in Android

久未见 提交于 2019-11-28 10:19:55
问题 I've tried the following tutorial from this blog ( http://android-er.blogspot.kr/2013/05/get-current-frame-in-videoview-using.html ), which shows how to capture a video frame using MediaMetadataRetriever from a video source. However , it only works if the video is located locally on the phone. Is there a way to capture a video frame while the VideoView is streaming the video over IP? 回答1: I have found a solution to this problem. It appears that the VideoView does not allow this because of low

How to upload video file into webserver in android?

丶灬走出姿态 提交于 2019-11-28 05:34:39
问题 Hi I want to upload my video file into web server in Android. I followed this tutorial: Uploading files to HTTP server using POST on Android. But. I got this error in my logcat. And i got a message from server too. 09-11 10:20:55.088: D/dalvikvm(284): GC_FOR_MALLOC freed 1137 objects / 74200 bytes in 70ms 09-11 10:20:55.768: I/dalvikvm-heap(284): Grow heap (frag case) to 3.611MB for 1048592-byte allocation 09-11 10:20:55.918: D/dalvikvm(284): GC_FOR_MALLOC freed 202 objects / 10144 bytes in