android-video-player

Before play video ask about the video player to play

*爱你&永不变心* 提交于 2019-12-20 04:42:08
问题 I have an app that plays video from internet, it works fine when there´s only one video player (the default one) but when there are more it fails. So what I want to do is before play the video ask about the player to play. I found this post "android-list of installed media players" but even if I do PackageManager packageManager = getPackageManager(); to get the instance the app fails This is the code protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState);

How to capture a frame from video in android?

南楼画角 提交于 2019-12-20 02:34:45
问题 Hi i have made a custom video played in android.with some simple "play","pause","play again" and "capture" button.NOw i have done all this functionalities except "capture".I have seacrched lot many links and googled a lot,But i can't find how to capture a frame from running video in android? my code is as below: please help me for is: Main.java package org.apache.android.media; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import

Video recording with media recorder

夙愿已清 提交于 2019-12-19 12:00:12
问题 I am writing code for Video Recording function with Media recorder., But it throws Io Exception,Illegal State Exception i searched many times in google but no proper explanation for this one my code is public class Simple extends Activity { /** Called when the activity is first created. */ Button button,button2; MediaRecorder recorder; Camera camera; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); button=(Button)

how to implemenent android video player in full screen

喜夏-厌秋 提交于 2019-12-19 03:24:38
问题 i have implemented android video player , but i don't need like this how i need mean when opening activity i need to pay video half screen in center when i click button full screen button then i need t pay in full screen , how to implement it help me.... VideoPlayerActivity public class VideoPlayerActivity extends Activity implements SurfaceHolder.Callback, MediaPlayer.OnPreparedListener, VideoControllerView.MediaPlayerControl { SurfaceView videoSurface; MediaPlayer player;

Android Video Player Using NDK, OpenGL ES, and FFmpeg

不羁岁月 提交于 2019-12-18 09:54:51
问题 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

Android Video Upload to Php server?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-18 09:33:24
问题 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. 回答1: 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.

Android SDK - Media Player Video from URL

纵饮孤独 提交于 2019-12-18 02:42:33
问题 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);

Is it possible to Generate a thumbnail from a video url in android

走远了吗. 提交于 2019-12-17 03:08:10
问题 I am working on a video app. I am streaming a video from server link , is it possible for me to generate a video thumbnail from the URL without downloading the video. 回答1: Without downloading video you can generate thumbnail from below code: public static Bitmap retriveVideoFrameFromVideo(String videoPath) throws Throwable { Bitmap bitmap = null; MediaMetadataRetriever mediaMetadataRetriever = null; try { mediaMetadataRetriever = new MediaMetadataRetriever(); if (Build.VERSION.SDK_INT >= 14)

Video Player Does not Play the Video Every time

こ雲淡風輕ζ 提交于 2019-12-14 01:48:50
问题 I am working on an application in which I have to use Android Video Player. I am giving this Player a URI, that sometime runs and some time does not. URI is generated at run time according to a defined procedure. I get the following error in logcat when video does not get played. 03-30 12:58:42.918: D/MediaPlayer(4948): Couldn't open file on client side, trying server side 03-30 12:58:43.516: E/MediaPlayer(4948): error (1, -1004) 03-30 12:58:43.516: E/MediaPlayer(4948): Error (1,-1004) 03-30

How to capture screenshot of VideoView when streaming video in Android [duplicate]

别来无恙 提交于 2019-12-13 07:13:50
问题 This question already has an answer here : How to capture screenshot or video frame of VideoView in Android (1 answer) Closed 4 years ago . I was able to figure out how to capture a video frame from a VideoView that is playing a video stored locally on the phone. However , when the video is being streamed over IP in the VideoView, it appears very difficult to capture a screenshot/image/video frame. I would appreciate a solution to this problem. Here is a similar question which has not