exoplayer2.x

ExoPlayer PlayerView OnClickListener not working

谁说我不能喝 提交于 2020-06-25 03:50:10
问题 In my app, I want to handle user click on PlayerView however OnClickListener not being called and no exception is thrown. I added app:use_controller="false" to XML PlayerView . I tried to set OnTouchListener but I need MotionEvent.ACTION_UP to be called which is also not happening(because I don't want to handle the case when the user is scrolling, I need to handle the case when the user taps on PlayerView). class FeedHolder extends RecyclerView.ViewHolder { private TextView displayName,

Decoder init failed playing a list of videos on Flutter with Chewie

走远了吗. 提交于 2020-04-30 08:50:04
问题 I'm developing a Flutter app to show sequentially videos downloaded from internet. I'm using the Chewie component to show the videos. This is the UI logic to load the Chewie Widget: class SliderScreen extends StatefulWidget { static String id = 'SliderScreen'; @override _SliderScreenState createState() => _SliderScreenState(); } class _SliderScreenState extends State<SliderScreen> { SliderViewModel vModel; @override void initState() { super.initState(); } @override void dispose() { if (null !

Decoder init failed playing a list of videos on Flutter with Chewie

余生颓废 提交于 2020-04-30 08:48:38
问题 I'm developing a Flutter app to show sequentially videos downloaded from internet. I'm using the Chewie component to show the videos. This is the UI logic to load the Chewie Widget: class SliderScreen extends StatefulWidget { static String id = 'SliderScreen'; @override _SliderScreenState createState() => _SliderScreenState(); } class _SliderScreenState extends State<SliderScreen> { SliderViewModel vModel; @override void initState() { super.initState(); } @override void dispose() { if (null !

What cause java.net.MalformedURLException: no protocol: when trying to replace json array asset file to api Json array data?

我怕爱的太早我们不能终老 提交于 2020-04-18 05:48:28
问题 Instead of passing/reading data from json asset file, i am trying to use direct JSON data from api. (i am passing json array data using Intent) Same content data of json asset is using in api. is previous code (it read data from JSON asset file) @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.sample_chooser_activity); sampleAdapter = new SampleAdapter(); ExpandableListView sampleListView = findViewById(R.id.sample_list);

Exoplayer error in Recyclerview, Source error None of the available extractors

假装没事ソ 提交于 2020-04-13 08:06:12
问题 I am using ExoPlayer to stream videos in a RecyclerView. I am implementing the ExoPlayer inside my RecyclerView Adapter's bind method inside my ViewHolder. The video format I am using is m3u8 and the URL I am using works in a browser. So I know that the video link is valid. I've also testing a youtube link in there. Here is the code from the Recyclerview adapter's ViewHolder -> class ViewHolder private constructor(val binding: FeedRowBinding) : RecyclerView.ViewHolder(binding.root) { fun bind

Exoplayer error in Recyclerview, Source error None of the available extractors

回眸只為那壹抹淺笑 提交于 2020-04-13 08:06:09
问题 I am using ExoPlayer to stream videos in a RecyclerView. I am implementing the ExoPlayer inside my RecyclerView Adapter's bind method inside my ViewHolder. The video format I am using is m3u8 and the URL I am using works in a browser. So I know that the video link is valid. I've also testing a youtube link in there. Here is the code from the Recyclerview adapter's ViewHolder -> class ViewHolder private constructor(val binding: FeedRowBinding) : RecyclerView.ViewHolder(binding.root) { fun bind

How to implement Exoplayer 2.11.1 in android?

六眼飞鱼酱① 提交于 2020-04-11 02:16:08
问题 i am trying to implement exoplayer this is my exoplayer version implementation 'com.google.android.exoplayer:exoplayer:2.11.1' i am creating a music player app and i don't know anything about exoplayer i am trying to implement exoplayer from last 2 days but it's not working. i couldn't understand anything in the official documentation . i find many example and tutorial but it's all about playing video using exoplayer . many example's are using deprecated methods. I am trying to implement

What is the best way to clear up resources in Android?

二次信任 提交于 2020-01-25 06:48:30
问题 I am building an application just like Spotify using ExoPlayer. I am starting a player notification when the song starts playing and it should be getting played even when the app is put into the background. Therefore, I need to release the player and save the last played song when the user deliberately clears the app off from the Ram but onDestory() is not reliable as stated here. So, I thought doing resource cleaning in onActivityDestroyed() in a custom Application but that failed too.

How to make a Video Player using Native Android that have resolution switching ability like we see in YouTube?

梦想的初衷 提交于 2020-01-21 19:41:24
问题 I want to use a video player eg. using ExoPlayer in android app which will support switching of resolution like we see in YouTube. My API have video files for 480p,720p,1080p. I want to give those options in the player and can switch it from the player itself and will play the respective files from URL. I have seen solutions like track selector etc,but does that work for online files? I have links like : www.example.com/videos/480/demo.mp4 www.example.com/videos/720/demo.mp4 www.example.com

How to make a Video Player using Native Android that have resolution switching ability like we see in YouTube?

﹥>﹥吖頭↗ 提交于 2020-01-21 19:39:07
问题 I want to use a video player eg. using ExoPlayer in android app which will support switching of resolution like we see in YouTube. My API have video files for 480p,720p,1080p. I want to give those options in the player and can switch it from the player itself and will play the respective files from URL. I have seen solutions like track selector etc,but does that work for online files? I have links like : www.example.com/videos/480/demo.mp4 www.example.com/videos/720/demo.mp4 www.example.com