exoplayer2.x

ExoPlayer not playing anymore, stuck on Player.STATE_BUFFERING

ぐ巨炮叔叔 提交于 2020-01-16 18:11:52
问题 I'm currently creating an app that gets a list of video from an API then plays them sequentially using ExoPlayer . Yesterday, everything is working fine but now I can't play the videos. The player tries to play the video but gets stuck in buffering state. To make sure that the videos on our server is not the reason that my app is not working, I looked for a sample mp4 video online and found this. It still didn't play. The answers on the other SO questions didn't work either. This are the

device ActivityManagerService report 'Low on memory' after hours of playing video

大憨熊 提交于 2019-12-25 03:47:07
问题 I am developing an Android video player by flutter which is using this lib(0.6.5) for the videos, and this lib uses exoplayer2 underlying. The player works quite good and smooth for the first few hours (~6 hours), and the videos are ~150-300MB each. However after ~6 hours of playing, processes start to die, below are some of the log: Process android.rockchip.update.service (pid 1215) has died Process com.android.keychain (pid 7666) has died Process com.android.externalstorage (pid 10029) has

com.google.android.exoplayer2.ParserException

萝らか妹 提交于 2019-12-23 03:18:23
问题 I Try to create dash format for video with help of MP4Box When i run command :- MP4Box -dash 2000 -rap -frag-rap -profile onDemand 1OaG8xKJPZg-320.mp4 1OaG8xKJPZg-720.mp4 it show some warningusing Ubuntu 16.4 then after i received 1OaG8xKJPZg-320_dash.mpd 1OaG8xKJPZg-320_dashinit.mp4 1OaG8xKJPZg-720_dashinit.mp4 these file i uploaded in google cloud with publically share link , for Reference i uploaded in google drive with my player activity https://drive.google.com/drive/folders/1t_YF

Error inflating class com.google.android.exoplayer2.ui.SimpleExoPlayerView

▼魔方 西西 提交于 2019-12-22 18:23:17
问题 One Strange thing: the code is working fine while using emulator, but crashes while running building an unsigned apk. when connected to android studio, it gives the following error: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tv2z.demo/com.tv2z.demo.DemoActivity}: android.view.InflateException: Binary XML file line #32: Binary XML file line #32: Error inflating class com.google.android.exoplayer2.ui.SimpleExoPlayerView at android.app.ActivityThread

Why can't I locate ProgressiveMediaSource?

柔情痞子 提交于 2019-12-22 05:33:45
问题 Looking at the ExoPlayer documentation, the "Hello World" example suggests that to play a standard video you should use a ProgressiveMediaSource (compared to many online tutorials I've seen suggesting you use an ExtractorMediaSource ) Looking at the source code for ExoPlayer, it claims that ExtractorMediaSource is deprecated, and ProgressiveMediaSource has replaced it: /** @deprecated Use {@link ProgressiveMediaSource} instead. */ In my own project I'm using ExoPlayer v2.9.5 -- which is the

Binding PlayerView with SimpleExoPlayer from a service

倖福魔咒の 提交于 2019-12-21 05:21:19
问题 I have implemented a Service to run the audio in background which runs perfectly but I am unable to get the instance of the SimpleExoPlayer from the service to the activity to update the UI and also the Audio plays twice in the background if I exit and reopen the activity. AudioPlayerService public class AudioPlayerService extends Service { private final IBinder mBinder = new LocalBinder(); private SimpleExoPlayer player; private Item item; private PlayerNotificationManager

Google ExoPlayer guide

醉酒当歌 提交于 2019-12-18 12:03:15
问题 I am struggling to build basic app with ExoPlayer. 回答1: First you need to add this in your build.gradle compile 'com.google.android.exoplayer:exoplayer:r2.1.1' 1. Your Layout File <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" > <com.google.android.exoplayer2.ui.SimpleExoPlayerView android:id="@+id/player

Quality selector for ExoPlayer 2

老子叫甜甜 提交于 2019-12-17 06:49:10
问题 I am currently developing a live and movie player application. I chose ExoPlayer version 2 to play the movie and I do not know much about it. I want to let the user choose the quality of a movie on the player screen, for example, 720p or 1080p or etc. But I do not know how to get a list of existing qualities and show them to the user. and the below code is my implementation of SimpleExoPlayer : private void initPlayer(String path){ Handler handler = new Handler(); // 1. Create a default

NoSuchMethodError for com/google/android/exoplayer2/upstream/DefaultAllocator

前提是你 提交于 2019-12-11 21:30:47
问题 I am using com.amazon.android:exoplayer-ui:r2.5.4 in my project I just upgraded IDE to Android Studio 3.3.1. in my build.gradle I have below code for compile compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 } While trying to build, I get this error: Task :app:mergeExtDexDebug FAILED AGPBI: {"kind":"error","text":"Default interface methods are only supported starting with Android N (--min-api 24): void com.google.android.exoplayer2.Player

Create MPD file from String

对着背影说爱祢 提交于 2019-12-11 21:17:27
问题 I've managed to create a MPD file that is perfectly playable when fed to ExoPlayer 2.6.0 via an URL (the MPD is hosted in a testing server). However, I need to create this MPD file in Android and feed it to ExoPlayer without requesting the file to the server. So far I've tried to understand the classes DashManifest & DashManifestParser with no success. Any ideas how to create the file in Android and feed it directly to ExoPlayer? 回答1: When playing an DASH stream you need to create a