android-video-player

get path of video file selected from gallery getting NULL. How to get path of video file?

本小妞迷上赌 提交于 2019-12-24 02:14:05
问题 get path of video file selected from gallery getting NULL . How to get path of video file ? Get URi in Activity Result also give null. converting Uri to String also getting Null . Intent intent; String selectedVideo1Path, selectedVideo2Path; EditText e1,e2; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.videos_activity); Button button1 = (Button) findViewById(R.id.video1_btn); Button button2 = (Button) findViewById(R

Android: How to start video activity on portrait mode

百般思念 提交于 2019-12-23 17:26:52
问题 I am trying to play video from url using the following code: Intent intent= new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse(movieurl), "video/*"); startActivity(intent); When I intent started it show the video player in landscape mode is it possible to set it to portrait mode? 回答1: That functionality is provided by the videoplayer. The videoplayer has been set to show video in landscape mode..U can use videoview and mediacontroller to create your own media player. 来源: https:/

How to read length of video recorded with MediaRecorder into private app storage directory constructed via context.getFilesDir()?

你说的曾经没有我的故事 提交于 2019-12-23 07:55:50
问题 I am having a weird issue reading the length/duration of a video file recorded with a device's camera by using MediaRecorder. The file is recorded into the application's private storage directory, which is set like so: mMediaRecorder.setOutputFile(context.getFilesDir() + "/recordings/webcam.3gpp"); After recording is complete, I attempt to read the length of the video with these methods: Method 1: MediaMetadataRetriever mediaMetadataRetriever = new MediaMetadataRetriever();

Unable to play youtube video in my android app

房东的猫 提交于 2019-12-23 04:04:10
问题 Hello Everyone, I'm trying to play youtube video in my android app by integrating youtube sdk and generation of api key from google console after doing that when I tried to run my application while running the app I'm getting this error in my console can any one help me in fixing of this issue. 11-19 19:41:53.264 1173-1173/? E/ActivityThread: Service com.google.android.youtube.api.service.YouTubeService has leaked IntentReceiver lwz@427e4cf0 that was originally registered here. Are you

Unable to play youtube video in my android app

◇◆丶佛笑我妖孽 提交于 2019-12-23 04:03:17
问题 Hello Everyone, I'm trying to play youtube video in my android app by integrating youtube sdk and generation of api key from google console after doing that when I tried to run my application while running the app I'm getting this error in my console can any one help me in fixing of this issue. 11-19 19:41:53.264 1173-1173/? E/ActivityThread: Service com.google.android.youtube.api.service.YouTubeService has leaked IntentReceiver lwz@427e4cf0 that was originally registered here. Are you

Video free multi window size is not changed in android 7.1

让人想犯罪 __ 提交于 2019-12-23 03:38:15
问题 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");

android: video as background view

守給你的承諾、 提交于 2019-12-21 21:27:43
问题 I want to play video in background of the view.In view i want to some other view like button and textview, can it is possible to do that? i have try using the following code < RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <VideoView android:scrollbars="none" android:clickable="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android

android how to resize video width and height in surface view for media player

為{幸葍}努か 提交于 2019-12-21 17:05:04
问题 Want to resize the video in surface view I am Playing a video in Media Player with using a Surface view and holder for video... // but on implementing MediaPlayerControl on some devices say Micromax, iball, Akash tablet it gives error of abstract method not available as tracked by ACRA bug tracking. Now I want to have solution of mentioned problems: How to get media player controls active in all devices wihtout crashing due to abstract method as for media controller in some devices. How can I

Multiple Video Files Simultaneously Playing in Android

非 Y 不嫁゛ 提交于 2019-12-21 14:38:49
问题 I had asked the same question for iOS on iPad but now I am trying to see if it's possible within Android. The response I received so far is no within iOS. If it's possible in Android please explain what API is used. Here's my original question referenced: Original Posting on iOS for Multiple Videos Playing Simultaneously on an iPad 回答1: I tried to do so(2 VideoViews), but only one video played. It is because of linux decoder, which may be used as single instance only(from stack trace info).

Video Frame by Frame seeking

左心房为你撑大大i 提交于 2019-12-21 01:58:12
问题 Is there a way to step through a video file frame by frame? I've tried using a VideoView and I've had minor success. I can get the video the step through key frames but not individual frames. I figured this would be the default settings, especially with the way video compression works. Is there a way to override this default behavior or a configuration I can change? 回答1: The default behaviour in stagefright media framework is always to seek to key frame. (As opposed to the earlier framework's