exoplayer

Using the flac extension in Exoplayer in Android

偶尔善良 提交于 2019-12-24 06:31:12
问题 I'm trying to use ExoPlayer library with flac extension in my android application. And I faced with the following problems: Not all files can be played (as far as I understand the problem with the files with a high bitrate); not all devices able to play audio files in flac format (in the emulator and on the Samsung Galaxy S5 - played, but on Sony Xperia XA - something like a white noise instead of audio. All devices with Android 6.0. I tried to compile flac extensions with version 1.3.1 and 1

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

Playing one video after another in android Broghtcove Exoplayer implementation

左心房为你撑大大i 提交于 2019-12-23 01:06:23
问题 I am trying to play one video after another using Brightcove Exoplayer in android. I am able to catch the eventtype "completed" at the end of the first video and then I am trying to play the next video. But its stuck at the end of the first video. The second video is not playing. I am getting a NullPointerException. What am I doing wrong? This is my code: public class MainActivity extends BrightcovePlayer { private final String TAG = this.getClass().getSimpleName(); @Override protected void

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

ExoPlayer 2 Playlist Listener

南楼画角 提交于 2019-12-21 06:51:53
问题 I'm using the new features from ExoPlayer 2.x to play a list of audio files like this: List<MediaSource> playlist = new ArrayList<>(); ... ConcatenatingMediaSource concatenatedSource = new ConcatenatingMediaSource( playlist.toArray(new MediaSource[playlist.size()])); mExoPlayer.prepare(concatenatedSource); mExoPlayer.setPlayWhenReady(true); This is working fine, but in order to update my UI accordingly, I need to know which track is currently playing and the progress of this track. Is there

Release ExoPlayer in RecyclerView

三世轮回 提交于 2019-12-21 05:50:56
问题 I am implementing the ExoPlayer in a RecyclerView. But while scrolling the Video stops, but not the audio. How can I release the ExoPlayer in the RecyclerView? Or how can I get the position of the Recycled Object so I am able to release the ExoPlayer? This is my Data Object public class enter code here Video { private String url; private Context context; Boolean playWhenReady = false; int currentWindow = 0; long playbackPosition = 0; ExoPlayer player; public Video(String url, Context context)

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

Android: Dynamically Blur Surface with Video

爱⌒轻易说出口 提交于 2019-12-21 02:34:16
问题 I am building an Android application where an ExoPlayer plays a video onto the surface of a SurfaceView, and I am investigating whether it is possible to dynamically blur the playing video. Blurring techniques that involve first generating a bitmap of the view to blur will not work, since the surface part of a SurfaceView does not appear in bitmaps. Surfaces and views used to have built-in blurring effects in older versions of Android (e.g. Surface.FX_SURFACE_BLUR), but seem to have been

How to play video full screen in landscape using exoplayer

馋奶兔 提交于 2019-12-20 11:49:11
问题 I am using exoplayer to play video from url in my android app. In portrait everything work as expected (using viewpager, fragments and tabs inside activity). My goal is to play the video in full screen when the user is in landscape. It means only the video will play in landscape and all other details will desapear and return back to the original layout when portrait. How can I achieve this please? or what is the best way to achieve this? any sample code will be appreciate. 回答1: i am a noob so

ExoPlayer - play local mp4 file in SD card

夙愿已清 提交于 2019-12-20 10:35:04
问题 I am using the Exoplayer Demo app and want to preload a MP4 video from SD card. I have tried out the implementation from this post, but it does not work. There is no such class called DemoUtil.java in my exoplayer Demo. Instead used: public static final Sample[] LOCAL_VIDEOS = new Sample[] { new Sample("Some User friendly name of video 1", "/mnt/sdcard/video1.mp4", Util.TYPE_OTHER), }; I also could not use the their snippet of code mentioned for SampleChooserActivity.java. (Kept giving me