Questions tagged [android-videoview]

An Android View to manage and display a video file.

-1
votes
2answers
40 views

VideoView cannot find the video Android

I have a simple app which has to play a hardcoded video using VideoView. This is my code in MainActivity.java simpleVid = (VideoView) findViewById(R.id.simpleVid); String path = Environment....
0
votes
0answers
13 views

VideoView doesn't change to invisible

When I run on AVD(Pixel 2 API 28/Android 9.0) VideoView changes to invisible But When I run on Smartphone(galaxy wide 2/ Android 8.1) VideoView doesn't change to invisible This activity_main.xml ...
0
votes
3answers
34 views

Video is not getting paused in ViewPager

I m using viewpager and its adapter i m displaying image and video as per condition. I don't have fragment because i m using PagerAdapter. Code: pager.setOnPageChangeListener(pageChangeListener); ...
1
vote
0answers
25 views

How to play video without buffering after back-navigation from second activity?

I am writing a code for background video play, for that I'm using VideoView. I'm getting the video URL from server and then parsing it to videoView. Obvious reason, it will take time to load. ...
0
votes
1answer
32 views

How can I preserve my Android VideoView's aspect ratio in proportion to its height only?

I want to set a video that fills the screen and preserves its aspect ratio. However, I do not want the video to match the aspect ratio of the phone. If my screen's aspect ratio is 18.9:9 and the ...
0
votes
0answers
21 views

How do I return the original position of the main Linearlayout and BottomBar when returning from the full screen VideoView?

Hide in fragment top informative panel with actionbar and bottom panel software with this code videoplayer = view.findViewById(R.id.videoplayer); videoplayer.setSystemUiVisibility(View....
0
votes
1answer
14 views

How to run a background video in Android activity?

I want to implement a background video in the main activity of my App. Initially, I tried adding this video as a normal video using VideoView, but there was no setting to make it cover the entire ...
1
vote
1answer
30 views

Android VideoView resize according every device

I am playing video in Android Video view.Issue is video is not resizing as per device ratio. On big devices it stretched or in small device it is skeqzes. Is there any way to maintain ratio and fill ...
1
vote
0answers
17 views

Video file URL not found in VideoView

While trying to play a remote video file I am getting the exception: W/MediaPlayer: Couldn't open https://faro.red/movmap/administrar/application/admin/postsmedia/8Lo6H0mapas.mov: java.io....
0
votes
0answers
21 views

How to load a video file into FullscreenVideoView?

How can I load a video file into "FullscreenVideoView" that is stored on my raw folder: I have tried this: File url = new File("android.resource://" + getPackageName() + "/" + R.raw.b54666e7); ...
5
votes
3answers
111 views

Android videoview - immersive - overlapping controllers

I have a videoview on my app and Im using gogole as a reference to make the video player full screen: https://developer.android.com/training/system-ui/immersive#java I was following the ...
0
votes
0answers
14 views

Android - VideoView taking focus of activity

I have a list of videoViews, but because videoView takes the focus by default, the activity it is in will start somewhere halfway the activity where the videos are. How can I stop the video from ...
2
votes
0answers
44 views

How cache and play video in VideoView on Oreo?

I'm trying to cache a video by link and play it in VideoView Url: http://52.28.157.12:8080/hosting/video/video%20(4).mp4 (this url work correct) Tried to use: https://github.com/danikula/...
0
votes
1answer
35 views

VideoView delays when starting to play a Multicast stream (just sometimes)

I have a simple Android application which contains a WebView to load my Web_Based application and a VideoView to play Video (using HTTP protocol) and Multicast Stream (Live TV using UDP Protocol). ...
0
votes
0answers
21 views

why does media player only plays my video once?

I have an android app which loads content from an https site. This happens in my FullImageActivity which gets my content (pictures and video), and I see my content being displayed on the screen as ...
0
votes
0answers
13 views

stop android video view from blocking background music [duplicate]

I want to stop the android video view from blocking background music. I am using video view to display my two mp4 intro clips and they have no sound but as soon as I start playing them the background ...
0
votes
0answers
23 views

How to download a large video file using AsyncTask?

Can some body explain me what am i doing wrong, I'm working on an app that need to download a video an save the file on the device...and then play de video.. I'm testing the app with images and videos,...
0
votes
1answer
53 views

How to fix ExoPlayer video Freeze 2.9.6

I use this code to play the full-screen video but I have a problem when it is video playing and moving from the main activity to the full-screen activity occurs freezing of the video for 2-3 seconds ...
-3
votes
1answer
35 views

What is solution when VideoView can not find video from raw directory?

I am learning android developing. In VideoView everything is okay but video can not find from the raw directory which I made already. Please check my screenshot. ScreenShot
0
votes
1answer
35 views

Get file size of video from gallery in android

I have a application that I want the user to load movie and photo from the gallery in the app. But the program stops for more than 40 MB of movies. 1) How to get the selected movie volume(size)? 2) ...
2
votes
0answers
27 views

Samsung VideoView OnErrorListener

I'm facing issues with videoview in a Samsung Galaxy A5 device(Motorola and other devices are working fine) My Repo: https://github.com/rchampa/VideoViewOnSamsung The video: https://github.com/...
0
votes
0answers
16 views

How can i divide a screen by adding and removing VideoView at runtime

I want to play multiple videos in separate VideoViews at a time in single activity landscape mode. There are two scenarios that i want. 1- I want to select multiple videos and play it inside new ...
0
votes
0answers
33 views

Seek to position in a videoView depending on selected slider (and opposite)

I am setting up an Activity on an Android application composed of a VideoView and a Slider. I try to scroll a text below according to the progress of the video. My solution works thanks to a Thread ...
0
votes
0answers
36 views

How to load video from assets folder to video view?

I have a sub folder inside the assets folder named alphabets. Now I am aware that i can use raw folder instead, but that method doesnt allow me to create sub folder inside raw folder. So i would like ...
0
votes
0answers
91 views

Connection socket refused (Android:VideoView)

I'm not sure if it's a hardware or software problem. I have written an application (fragment), which should display a video on the screen. This works for many videos (see comment in the source code). ...
0
votes
0answers
17 views

Get video encoding or mime type from Video stream

I'm here to ask if there is some method for retrieving media type or encoding from VideoView in Android. I tried this code: //Get the video media type try { ContentResolver cR = ...
0
votes
0answers
86 views

QCMediaPlayer mediaplayer NOT present

I have this problem in my videoView when streaming a video from a URL I want to stream rstp links in Videoview, I am getting an error in my screen like "can't play this video" and getting like as ...
0
votes
0answers
26 views

Is VideoView support RTSP authentication?

The title say everything's. I try to make a video streaming from axis ip camera, that is password and users protected. I don't understand why if I set the uri like: rtsp://user:[email protected]/path don'...
0
votes
0answers
37 views

unable to upload video in firebase

I am trying to upload video to Firebase But I am unable to do it. I can record video but, I am unable to upload it. The message popup " Nothing to Upload " I do not know what am I doing wrong. ...
0
votes
0answers
19 views

How to find out quality from m3u8 url and set quality in exoplayer / videoview android?

How to detect which type of qualities (240p,360p,720p,1080p etc) are available from m3u8 url ? Changing the Bitrate changes the quality of video in player i guess but does the the bitrate changing ...
0
votes
2answers
41 views

How to loop a VideoView element in MainActivity.java?

I've written an application which plays a video until you tap the screen and it exits. A basic screensaver essentially. The app will launch and play the video however it stops on the last frame ...
0
votes
0answers
29 views

How can i play google drive video in to android VideoView or in Iframe

I want to play video uploaded on google drive in android application VideoView or in iframe but getting problem to play video in android application. Uri uri=Uri.parse("https://drive.google.com/open?...
0
votes
0answers
16 views

Video freezes in VideoView with ViewPager when swipe (scroll) fast

I m getting issue with Video getting freeze while swiping view pager fast. Problem: I have one webm extension type video (12 seconds) and playing it in VideoView. From that video i m getting ...
0
votes
1answer
126 views

Rtsp video streaming with authentication

I'm tring to connect to straming ip cameras, with ip address. I tried to connect with: rtsp://username:[email protected]_camera but the video view don't like it. I've tried with map like: Uri source = ...
0
votes
0answers
13 views

Add black bar to do not stretch video

I have a straming video across rtsp and I want to fit the video view for all the width of my view. That is a problem: the video have a very low and squared resolution, so the video view stretch my ...
1
vote
0answers
26 views

How to jump back for a second in a video like on YouTube?

I build a game that is based on a video. The video is played from the half of it. When the button is pushed the video needs to jump a second back. The problem is that in fact it jumps to a specific ...
0
votes
1answer
65 views

Video getting stuck(freeze) while swipe ViewPager too fast

I m getting issue with Video getting freeze while swiping view pager fast. Problem: I have one webm extension type video (12 seconds) and playing it in VideoView. From that video i m getting ...
0
votes
0answers
17 views

Video takes lot of time to stream and play after compressing?

I have a app related to uploading videos from gallery to server (AWS) and playing video in videoview. Issue is that I have taken video from gallery and trimmed it (https://github.com/titansgroup/k4l-...
-2
votes
2answers
28 views

Call next activity when video ends

I am new to Android development and I am making an app in which I want that when a video that is playing in a video view in activity_1 ends the activity_2 starts automatically.
1
vote
0answers
113 views

MediaHTTPConnection: readAt 1343667 / 32768 => java.net.ProtocolException

I'm getting java.net.ProtocolException for some of the videos. This is how passing the URL to videoview. Did anyone face this before? videoview.setVideoURI(videourl);
2
votes
3answers
48 views

Android, videoView can't open this video Online video

I used videoView to play an mp4 file from the Internet, but it can't play this video all the time. This is my code: Uri uri = Uri.parse("http://vfx.mtime.cn/Video/2019/02/08/mp4/190208204943376259....
0
votes
0answers
14 views

How to play video in android which was segmented during upload?

Since Firebase storage does not allow buffering video(I mean it does not allow video play which downloading like youtube) so during uploading, I cut the video into smaller parts using the following ...
0
votes
1answer
25 views

Can't put view overlaping Android VideoView

Why I can't put a view with black background overlaping a VideoView? I can set any bakcground color to my view and this color overlaps correctly the VideoView, but when I set the background color as ...
0
votes
1answer
21 views

Android Studio blank VideoView does not playback video recorded in emulator

I'm trying to record a video using the camera in the emulator. After recording, I would like the VideoView to display a preview image of the 1 millisecond into the clip. Then add a MediaController ...
1
vote
0answers
31 views

Black background on VideoView Android

I have a videoview which displays horizontal. The video that I am showing is vertical. I have an empty space in my ViewView outside my real video. The Video is showing like this. The red rectangle ...
0
votes
0answers
52 views

Screencap returned black screen screenshot from video file

I try to get screenshot from rooted device (android version 7.1.2). I try to get screenshot from adb command adb shell su screencap -p /sdcard/test.png The code above works fine, when get screen ...
0
votes
0answers
28 views

TS video file format no audio with a VideoView

I am trying to play .ts video format into videoview and it plays like charm but there is no audio sound on it, I am getting the video URL from my JSON file and I tried to enable audio with Java code ...
0
votes
0answers
23 views

how play Encoded HLS stream in VideoView control or in MediaPlayer of android, Don't want to use other libraries

I am using VideoView as my video playing control for hls streaming. I do not want to use other libraries like Vitamio etc. I am able to run the simple HLS .m3u8 file from URL, but now I want to play ...
0
votes
0answers
17 views

Error (1,-19) occurs while playing the video in videoview after a certain point of time

My app shows images and videos one after another according to the sequence from server. A background music is played through out the app using background service. The app works fine for almost 15-16 ...
0
votes
0answers
46 views

Displaying Video On Secondary Screen using Android Presentation Class

I am developing an app where one of the features is to have two buttons which when touched would display one of two locally stored videos on a secondary monitor in full screen. The monitor is ...