android-videoview

java.io.FileNotFoundException: No content provider:

試著忘記壹切 提交于 2020-08-27 07:14:29
问题 i have problem to reproduce a video with videoView.setVideoPath(); in fact video doesn't reproduce..i don't know why. Video's path is correct. This is my code: public class MainActivity extends AppCompatActivity { private VideoView videoView; private int position = 0; private MediaController mediaController; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); videoView = (VideoView) findViewById(R.id

save last position of videoView saved by sharedprefrence and start in last position (android studio)

眉间皱痕 提交于 2020-07-22 04:14:09
问题 save last position of videoView saved by sharedprefrence and start in last position (android studio) hello I serch for my problam in stackaverflow and other refrences but I dont get my answer . I use VideoView In my app I want to save the last position of videview in a sharedPrefrence to start again from the last position but it start in 0 every time please check my code and tel me what should i do. package com.rewass.qurankurdishaudiotranslatev2.activitys; import android.content.Context;

Stretch to fill VideoView, aspect ratio of VideoView

我只是一个虾纸丫 提交于 2020-07-05 01:43:04
问题 I try to stretch video in aim to fill videoview. The target is to create view that in device look like the first pic (like it look in layout preview). Most of the answers to this questions refer to this link. I tried this but I still didn't fill video view. This my layout code : <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"

Delegate for Android-VideoView

心已入冬 提交于 2020-06-29 04:18:47
问题 I used the VideoView class in Android(Kotlin). Here I tried to find a way to assign a direct decrypt key to the video player . I used AES-128 Encryption. Shif language(AVPlayer) provides a delegate method to an AV player. I tried to same way in android. But doesn't Help. IS there any way to assign encryption keys to VideoView in Android. Thank you. my m3u8 content #EXTM3U #EXT-X-TARGETDURATION:8 #EXT-X-MEDIA-SEQUENCE:16 #EXT-X-VERSION:3 #EXT-X-KEY:METHOD=AES-128,URI="123.key" #EXTINF:8,

Play Vimeo video in Android , video url containing iframe

房东的猫 提交于 2020-06-23 04:41:26
问题 Hello i am working on android application in which i want to play vimeo videos , i am getting response from Api in json and playing video using webview and it is playing good , but the webview is displaying very small and the playing video is also small my problems are I want playing video width to be according to android device width. I can get it from Displaymetrics but how to set to iframe ? I want to inflate custom view of media controller for playing videos. Custom controller like play

Adding images to video with help of this MediaCodec Api

岁酱吖の 提交于 2020-05-17 08:33:25
问题 I am trying to add waterMark to the video by using this library but i couldn't the get the desired result as shown in the library https://github.com/MasayukiSuda/Mp4Composer-android . can anyone point out or help me how to solve it thanks what i tried mp4Composer = new Mp4Composer(videoItem.getPath(), videoPath) // .rotation(Rotation.ROTATION_270) .size(720, 720) .fillMode(FillMode.PRESERVE_ASPECT_FIT) .filter(new GlWatermarkFilter(BitmapFactory.decodeResource(context.getResources(),R

Xamarin Forms Android video (VideoView) black flash on page load or back key + looping

烈酒焚心 提交于 2020-03-11 14:51:28
问题 I followed this guide/copied the sample from here for implementing a Video Player for both iOS and Android in Xamarin forms: https://docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/custom-renderer/video-player/ The videoplayer works but on page load it will shortly flash black. Also when going back it would shortly flash the videoplayer in front of the previous page. You could try: videoView.setZOrderOnTop(true); but this gave me problems with other pages where the video would

How to know which android devices support video playback?

自闭症网瘾萝莉.ら 提交于 2020-02-01 09:20:12
问题 I've made an app to view vine videos on Android devices. These are basically .mp4 videos being loaded into a VideoView . From the following documentation (http://developer.android.com/guide/appendix/media-formats.html), mp4 video playback is supported on Android version 3+ devices. I've already added a android:minSdkVersion="11" to the manifest file to filter out older android versions from downloading the app, but I'm still getting feedback from users running newer versions of Android (eg. 4