android-videoview

Android::VideoView inside a ScrollView

浪尽此生 提交于 2019-12-17 18:28:56
问题 I have a VideoView that is inside a scrollView. When I scroll the scrollView, the VideoView does not scroll with it. It is like its position is fixed. How can I scroll the VideoView correctly with the scrolling of all other elements in the scrollView? 回答1: The display is usually divided into two pipelines Frame buffer pipeline - This is is where all your graphics is displayed. All the UI display elements go into this pipline Video buffer pipeline - This is where your video data is diverted to

VideoView black flash before and after playing

喜欢而已 提交于 2019-12-17 18:28:12
问题 I have a VideoView which I want to use to play a movieclip. I use it like this to play it and it works. VideoView vv = new VideoView(this); vv.setVideoURI(Uri.parse("android.resource://cortex2.hcbj/raw/intro")); setContentView(vv); vv.start(); However I see a black flash just before and after the movie clip. The flash in itself isn't a big problem, but the blackness of it is. The background is white, so if the flash is white, or if it dissapears it will be okay. 回答1: Today I had the same

How to put a video file in android custom content provider

╄→尐↘猪︶ㄣ 提交于 2019-12-17 16:55:12
问题 I have a video file. i want to store it in a custom content provider. and after that i want to read it and want to play it through Uri. Below is my code. package com.videocon.nds; public class FileProvider extends ContentProvider { public static final Uri CONTENT_URI=Uri.parse("content://com.videocon.nds/"); private static final HashMap<String, String> MIME_TYPES=new HashMap<String, String>(); static { MIME_TYPES.put(".mp4", "video/mp4"); } @Override public boolean onCreate() { File f=new

Videoview Pausing and resuming

别说谁变了你拦得住时间么 提交于 2019-12-17 15:46:41
问题 I am new to android development and I am programming a game. My game has cutsceens that play before each level starts, cutsceens which are done through videoview. My problem is, that upon an application pause, the cutsceen starts from the beginning again when resumed. @Override public void onPause() { super.onPause(); video.pause(); } @Override public void onResume() { super.onResume(); video.resume(); } Our issue is that the video doesn't actually resume from where we paused it, but from the

How to play Youtube videos in Android Video View?

风格不统一 提交于 2019-12-17 15:28:29
问题 I am developing an android application which requires a youtube video player embedded within it. I successfully got the RTSP video URL from the API, but while trying to load this rtsp url in my android video view, it says " Can't play this video. ". Previously I developed a similar application in this method, and it worked fine at that time, but it also failing to load now. I'm sure about that, I'm getting the correct RTSP url from the API. rtsp://v6.cache6.c.youtube.com

How to customize android VideoView Error Dialogue

时光怂恿深爱的人放手 提交于 2019-12-14 03:26:38
问题 In my application i want to stream video. In case if mobile can not play that video VideoView shows dilogue like this what i want if to customize this dialogue and insert two buttons one to download this video and one to try to play an Low Quality video. right now in onErrorLitener of VideoView i am showing dialogue to user but in this way with my dialogue VideoView own dialogue also show on screen which i don't want. If i cant customize VideoView Error dialogue can i make it dont show on

ArCore Sceneform: Play .mp4 video when detect image

情到浓时终转凉″ 提交于 2019-12-13 17:01:07
问题 When I find an image, I want to place a text and a video above it. The text view is placed on the scene but the video is not, it is just added to my main layout in the middle. I'm using the component VideoView, I'm not sure that's the problem override fun onCreate(savedInstanceState: Bundle?) { (....) arFragment!!.arSceneView.scene.addOnUpdateListener { this.onUpdateFrame(it) } arSceneView = arFragment!!.arSceneView } private fun onUpdateFrame(frameTime: FrameTime) { val frame = arFragment!!

How to Display time of videoview in android

六月ゝ 毕业季﹏ 提交于 2019-12-13 16:14:38
问题 I have a VideoView for Play Video and MediaControler for it I want Display time of video in textview and change it per time of video I use this code for Playing video : private void play(String uri) { _player.setVisibility(View.VISIBLE); _player.setVideoURI(Uri.parse(uri)); MediaController mc = new MediaController(this); _player.setMediaController(mc); _player.start(); Display display = getWindowManager().getDefaultDisplay(); int width = display.getWidth(); int height = display.getHeight();

How to Stream Video from Http or RTSP Url in android

天涯浪子 提交于 2019-12-13 15:07:44
问题 I want to play a video from Http and Rtsp on android. currently i am trying with http link But when my activity starts, it just starts playing audio with blank black screen. No video is displaying. Here i have posted my code below. Thanks for any help in advance. and if anyone can provide a fresh running rtsp link for live streaming, i'll be very thankful. VideoView vidView = (VideoView)findViewById(R.id.myVideo); Uri stream = Uri.parse("http://www.androidbegin.com/tutorial/AndroidCommercial

Android VideoView Error 1,0

给你一囗甜甜゛ 提交于 2019-12-13 12:15:53
问题 I have an application thats main goal is to play a specific video file. it plays the video correctly sometimes. But other times it gives me this error: 03-21 14:52:36.181: I/AwesomePlayer(119): setDataSource_l('/data/data/my.package.name/files/MyMovie.mp4') 03-21 14:52:36.196: W/VideoView(26612): Unable to open content: /data/data/my.package.name/files/MyMovie.mp4 03-21 14:52:36.196: W/VideoView(26612): java.lang.IllegalArgumentException: The surface has been released 03-21 14:52:36.196: W