Comments (11)
I've pushed 2.8.3 with another fix. Can you guys try that one?
from exoplayerxamarin.
I works well for me too. I really appreciate your efforts on this.
from exoplayerxamarin.
I have also same problem
from exoplayerxamarin.
I'm getting the same issue but i've a build log a bit longer:
1> obj\Debug\android\src\mono\com\google\android\exoplayer2\analytics\AnalyticsListenerImplementor.java:4: error: AnalyticsListenerImplementor is not abstract and does not override abstract method onRenderedFirstFrame(EventTime,Surface) in AnalyticsListener
1> public class AnalyticsListenerImplementor
1> ^
1> Note: Some input files use or override a deprecated API.
1> Note: Recompile with -Xlint:deprecation for details.
1> Note: Some input files use unchecked or unsafe operations.
1> Note: Recompile with -Xlint:unchecked for details.
1> 1 error
1>D:\Documents\Visual Studio 2017\Projects\MusicApp\MusicApp\obj\Debug\android\src\mono\com\google\android\exoplayer2\analytics\AnalyticsListenerImplementor.java(4,8): error : error: AnalyticsListenerImplementor is not abstract and does not override abstract method onRenderedFirstFrame(EventTime,Surface) in AnalyticsListener
1>D:\Documents\Visual Studio 2017\Projects\MusicApp\MusicApp\obj\Debug\android\src\mono\com\google\android\exoplayer2\analytics\AnalyticsListenerImplementor.java(4,8): error : public class AnalyticsListenerImplementor
1>D:\Documents\Visual Studio 2017\Projects\MusicApp\MusicApp\obj\Debug\android\src\mono\com\google\android\exoplayer2\analytics\AnalyticsListenerImplementor.java(4,8): error :
I had this issue just after updating to v 2.8.0.
from exoplayerxamarin.
This should be fixed in 2.8.1.
from exoplayerxamarin.
I have Visual Studio 15.7.1 and I installed 2.8.1 in a brand new solution, when I build I also get, "AnalyticsListenerImplementor is not abstract and does not override abstract method onRenderedFirstFrame(EventTime,Surface) in AnalyticsListener".
from exoplayerxamarin.
I am still getting that exception on the latest version (2.8.1)
error: AnalyticsListenerImplementor is not abstract and does not override abstract method onRenderedFirstFrame(EventTime,Surface) in AnalyticsListener
public class AnalyticsListenerImplementor
The exception points to the following java code:
from exoplayerxamarin.
Can you try 2.8.2?
from exoplayerxamarin.
@martijn00, i am still facing the same exception using 2.8.2!
I am targeting Android API version 27, using Xamarin.Android SDK version: 8.2.0.16, and here is the sample code i am using:
private SimpleExoPlayer _player;
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
var mediaUrl = "http://api-streaming.youscribe.com/v1/products/2919465/documents/3214936/audio/stream";
var mediaUri = Android.Net.Uri.Parse(mediaUrl);
var userAgent = Util.GetUserAgent(this, "ExoPlayerDemo");
var defaultHttpDataSourceFactory = new DefaultHttpDataSourceFactory(userAgent);
var defaultDataSourceFactory = new DefaultDataSourceFactory(this, null, defaultHttpDataSourceFactory);
var extractorMediaSource = new ExtractorMediaSource(mediaUri, defaultDataSourceFactory, new DefaultExtractorsFactory(), null, null);
var defaultBandwidthMeter = new DefaultBandwidthMeter();
var adaptiveTrackSelectionFactory = new AdaptiveTrackSelection.Factory(defaultBandwidthMeter);
var defaultTrackSelector = new DefaultTrackSelector(adaptiveTrackSelectionFactory);
_player = ExoPlayerFactory.NewSimpleInstance(this, defaultTrackSelector);
_player.Prepare(extractorMediaSource);
_player.PlayWhenReady = true;
// Set our view from the "main" layout resource
SetContentView(Resource.Layout.Main);
}`
from exoplayerxamarin.
I also tried with 2.8.2 and continue to get that exception. In my case I boiled it down to as simple as I could. I created a brand new forms solution, included the nuget reference and tried to build with no calls to the library and no other custom code.
from exoplayerxamarin.
Works fine at my end. Thank you
from exoplayerxamarin.
Related Issues (20)
- Where are the releases?
- MAUI Support HOT 1
- 'SimpleCache' does not contain a constructor HOT 9
- Add guava dependency HOT 2
- Add IPlayerEventListener to ExoPlayer cause the app crash. HOT 3
- Sample documentation out of date. HOT 5
- 'SimpleCache' does not contain a constructor that takes 3 arguments HOT 2
- Java.Lang.AbstractMethodError: 'abstract method " Player$Listener.onTimelineChanged HOT 15
- Both IPlayer.IListener And IPlayer.IAnalyticsListener AbstractMethodError HOT 1
- Expose DataSource.Factory.CreateDataSource() HOT 5
- Support for Media3? HOT 3
- MonoAndroid bindings issues: IMediaSourceFactory and DownloadService HOT 8
- Showing subtitle on Exoplayer (Leanback) HOT 8
- Upgrade ExoPlayer to 2.18.3
- HLS Playback using Xamarin.Forms HOT 3
- Migrating ExoPlayer to androidx.media3.exoplayer HOT 16
- Video stutters with ExoPlayer but not with MediaPlayer HOT 5
- Getting Track Metadata (Xamarin Exoplayer 2.18.1) HOT 1
- Monodroid support HOT 2
- PARAMETER_TS_ALLOW_NON_IDR_AVC_KEYFRAMES
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exoplayerxamarin.