android-videoview

make a fullScreen in only layout-land android when play videoView

久未见 提交于 2019-12-01 06:23:55
问题 I'm creating android app to play liveStream, I added the videoView in my layout.xml and added the folder of layout-land I want to make the app shows video full screen in only layout-land not portrait so I added the following code in onCreate(): public void onConfigurationChanged(Configuration newConfig){ if(getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE { getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG

move videoView…using translation animation

末鹿安然 提交于 2019-12-01 05:59:53
I am basically trying to move the VideoView I have by using an animator on the layout that contains in. However, the video view never moves. Its layout moves, but not the video itself? How can I make the video move? here is what i have so far. the slideleft.xml <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android"> <translate android:fromXDelta="0%" android:toXDelta="-50%" android:duration="200" android:fillAfter ="true" android:fillEnabled="true" android:interpolator="@android:anim/accelerate_decelerate_interpolator" /> </set> the animation

Android: cannot play mp4 video

血红的双手。 提交于 2019-12-01 05:48:17
I'm trying to play mp4 videos streaming from a server using native VideoView , sadly I keep getting a " Cannot play video " error. The weird thing is that the same video plays well on Froyo but will not play on HoneyComb. I tried the same video with MX Video Player (on HC) and it plays just fine. Another major problem is that I cannot re-encode the videos, so I have to use the videos as they are. What is causing the error? How can I play the video? Should I find a way to include a codec library into my app? Below are details from logcat: E/MediaExtractor( 242): **********MediaExtractor::Create

org.json.JSONException: End of input at character 0 of

半腔热情 提交于 2019-12-01 05:19:06
I am trying to upload video to server,but whenever I am trying to upload response is showing null null and in logcat it shows org.json.JSONException: End of input at character 0 of,instead of my response status:success msg:video uploaded..can any body tell me what is my mistake? public class VideoUpload extends Activity{ MediaController mc; private static int SELECT_PICTURE = 1; private String selectedImagePath=""; TextView messageText; Button uploadButton; int serverResponseCode = 0; ProgressDialog dialog = null; private static final String TAG_SUCCESS = "status"; private static final String

Android 4.2 with 4 MediaPlayers = “Can't play this video”

倾然丶 夕夏残阳落幕 提交于 2019-12-01 03:59:34
Whenever I'm trying to load at least 4 mediaPlayers, one of them will corrupt the video it's trying to load and trigger an Android OS message "Can't play this video" Other information: For 3 mediaPlayers everything works fine. On other Android versions, different from 4.2, the same code with the same 4 video works. The 4 video can be played independently on the device. There is no format problem. After starting the program and getting the "Can't play this video" message, the video can no longer be played in any other application unless I reset the device. I tried this both with VideoViews or

Android Marshmallow “Can't play this video” error

我只是一个虾纸丫 提交于 2019-12-01 03:32:37
问题 I am in the process of upgrading an app to android 6.0. Everything seems to be alright except when trying to play certain videos from a remote source. They play just fine on our non Marshmallow devices (for specifics, I have a Galaxy S3 on 4.1.2 Jelly Bean that's playing the exact same video just fine, no issues). We've tested with multiple devices on 6.0, and the problem seems to be localized to just this OS. When trying to play a video in a simple videoview, I get an alert saying "Can't

org.json.JSONException: End of input at character 0 of

我的梦境 提交于 2019-12-01 02:46:45
问题 I am trying to upload video to server,but whenever I am trying to upload response is showing null null and in logcat it shows org.json.JSONException: End of input at character 0 of,instead of my response status:success msg:video uploaded..can any body tell me what is my mistake? public class VideoUpload extends Activity{ MediaController mc; private static int SELECT_PICTURE = 1; private String selectedImagePath=""; TextView messageText; Button uploadButton; int serverResponseCode = 0;

VideoView invisible in Popupwindow?

浪子不回头ぞ 提交于 2019-12-01 02:45:23
问题 My target: I am trying to play a video when tapping on one of the item on the screen while still staying on that screen. So I resort to PopupWindow but somehow VideoView doesn't show up in the popup. I can display popup just fine but the VideoView doesn't(in fact, it's not invisible but rather freeze that section of the screen). If you look at the second and third screen, you will see that the invisible area isn't exactly rectangular. That's because I am animating the popupwindow. I checked

One videoview blocked by another videoview

这一生的挚爱 提交于 2019-11-30 19:50:12
问题 My activity layout is shown below. Basically I have a listview menu on the left and two videoviews that I switch between depending on which menu item the user clicks. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/activity_system_status" android:title="@string/system_status" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal"> <LinearLayout android:layout_width

Android VideoView Cannot play video mp4

一世执手 提交于 2019-11-30 18:59:02
I used the Android VideoView to play a video file via HTTP. My problem is my phone prompts "Cannot play video Sorry, this video cannot be played." when playing a mp4 file from HTTP. But it is ok when playing another mp4 video file. When used in a newer phone, like Samsung Galaxy S, my program can play both mp4 video file from HTTP successfully. My phone: Samsung GT-S5830 Android version: 2.3.4 Display: 320x480. Video file 1 (OK): Video Codec: H.264 Resolution: 640x360 Others: 16:9, 340kbps, 29.92fps Audio Codec: AAC, 44kHz 96kbps Stereo. Video file 2 (Fail): Video Codec: H.264 Resolution: