android-video-player

Android Video Editor API

故事扮演 提交于 2019-12-08 07:24:43
问题 I have a problem using Andoid's Video Editor project. I have cloned it from Codeaurora.org "platform/packages/apps/VideoEditor.git", but it requires another "VideoEditor API" subproject. Where can I find it? Does it use libvideoeditor library "platform/frameworks/media/libvideoeditor.git"? Thank you. 回答1: I was curious as well so I decided to take a look. It looks like the code necessary to compile the project is in the Android framework tree. It can be found on GitHub here. I then made an

Intent.ACTION_VIEW video: external storage video “Sorry, this video cannot be played”, but in regular android player, it is playable

主宰稳场 提交于 2019-12-08 05:13:18
问题 So I'm playing a video from external storage(sdcard), I'm having a problem with playing the video and this is my code: Uri uri = Uri.parse(url); intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(uri, "video/*"); It prompts "Sorry, this video cannot be played", but in regular android player, it is playable. I printed the url and this is what I got: VideoPlayer url: file:///mnt/sdcard/foldername/video-2012-12-26-21-26--44.mp4 Is it a problem with the uri? If no, can you point me to

Android Video Editor API

爱⌒轻易说出口 提交于 2019-12-07 15:29:30
I have a problem using Andoid's Video Editor project. I have cloned it from Codeaurora.org "platform/packages/apps/VideoEditor.git", but it requires another "VideoEditor API" subproject. Where can I find it? Does it use libvideoeditor library "platform/frameworks/media/libvideoeditor.git"? Thank you. I was curious as well so I decided to take a look. It looks like the code necessary to compile the project is in the Android framework tree. It can be found on GitHub here . I then made an Android library project with the source code in this directory. There was an error with a heap dump function

Play video in Android listview

霸气de小男生 提交于 2019-12-07 12:18:20
问题 I am trying to play videos in my listview just like Vine or Instgram. I have been trying to use TextureView with a media player except that when attaching TextureView to the media player I experience issues where the textureview is not being reused properly by the GetView method. The textureview renders some old incorrect videos when scrolling down in my list. Does anyone know how to play videos in ListViews (Not using VideoView!!!)?? 回答1: Just wanna give you advice. You can use WebView

Android webview doesn't playing mp4 video in same page

五迷三道 提交于 2019-12-07 11:07:15
问题 I'm trying to show one local html file contains code for playing video and try to show that html file in android webview. I've used following code to for playing video: WebViewLoadVideoActivity.java //DECLARE webview variable outside of onCreate function so we can access it in other functions (menu) @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); WebView webView = (WebView) findViewById(R.id.webView1);

Video free multi window size is not changed in android 7.1

风格不统一 提交于 2019-12-07 08:42:30
I'm working on free multi window in android 7.1 . With test application free multi window is working perfect.(please fine screenshot 1) Now Im playing video using MX player app, at that time free multi window size is not effecting.(please fine screenshot 2) String mxPlayer = "com.xx.xx.ad"; intent1 = new Intent(Intent.ACTION_VIEW); intent1.setPackage(mxPlayer); Uri videoUri = Uri.parse("http://xxx.75.135/Files/xxx/1_video/ideo.m3u"); intent1.setDataAndType(videoUri, "application/mp4"); startActivity(intent1, getActivityOptions(ApplicationType.CONTEXT_MENU).setLaunchBounds(new Rect(0, 0, 720,

Android Video Stream upload to php server?

亡梦爱人 提交于 2019-12-06 15:54:09
HI, Anyone suggest some sample and idea to post the video data to server.I want to playback the video later as stream video from the server directly.Anyone suggest me how to upload the stream video to php server and playback it as stream video from server. munir abbas muniir@msn.com wrote: public class SocialHTTPPost { public static byte[] getCapturedImageStream(Context ctx, Intent data) { String fileName = ((MainActivity) ctx).mCaptureImageHMap.get("name").toString(); int mid= fileName.lastIndexOf("."); String ext=fileName.substring(mid+1,fileName.length()); Bundle b = data.getExtras();

How to open video player in WebView?

痞子三分冷 提交于 2019-12-06 09:07:57
问题 I've a WebApp showed with Webview. In those pages I've some links to videos (MP4, 3GP...). When I click on the link, nothing happens.? public class luxgateway extends Activity { WebView myWebView; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); myWebView = (WebView) findViewById(R.id.webview); myWebView.getSettings().setJavaScriptEnabled(true); myWebView.getSettings().setAllowFileAccess(true); WebViewClient webViewClient =

Exit Full Screen Video Mode on Back Press

拈花ヽ惹草 提交于 2019-12-06 07:20:32
I just started with this GMF example provided by Google. I would like to know How can I Exit Full Screen Video Mode by doing tap on back button, I tried using below code, but did not get any success, here you can see the actual code of MainActivity.java boolean isFullScreen = false; // globally declared @Override public void onGoToFullscreen() { isFullScreen = true; videoListView.setVisibility(View.INVISIBLE); } @Override public void onReturnFromFullscreen() { videoListView.setVisibility(View.VISIBLE); } @Override public void onBackPressed() { if(isFullScreen) { onReturnFromFullscreen(); }

How can I ensure correct playback orientation of recorded video?

感情迁移 提交于 2019-12-06 05:37:06
问题 I'm using the MediaStore.ACTION_VIDEO_CAPTURE intent to capture video and later play it back using a VideoView . I would like to know the orientation of the video that was captured. I don't want to use the orientation at the time of the intent call because the user may rotate the device prior to hitting the shutter button. I also don't want to implement my own custom video capture. Is the orientation of the video stored in the saved file and/or returned in the intent result? 回答1: Is the