Code Monkey home page Code Monkey logo

Comments (11)

martijn00 avatar martijn00 commented on August 15, 2024 4

I've pushed 2.8.3 with another fix. Can you guys try that one?

from exoplayerxamarin.

RealNathanCodes avatar RealNathanCodes commented on August 15, 2024 1

I works well for me too. I really appreciate your efforts on this.

from exoplayerxamarin.

18kushal avatar 18kushal commented on August 15, 2024

I have also same problem

from exoplayerxamarin.

zoriya avatar zoriya commented on August 15, 2024

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.

martijn00 avatar martijn00 commented on August 15, 2024

This should be fixed in 2.8.1.

from exoplayerxamarin.

RealNathanCodes avatar RealNathanCodes commented on August 15, 2024

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.

SamTh3D3v avatar SamTh3D3v commented on August 15, 2024

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:
image

from exoplayerxamarin.

martijn00 avatar martijn00 commented on August 15, 2024

Can you try 2.8.2?

from exoplayerxamarin.

SamTh3D3v avatar SamTh3D3v commented on August 15, 2024

@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.

RealNathanCodes avatar RealNathanCodes commented on August 15, 2024

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.

SamTh3D3v avatar SamTh3D3v commented on August 15, 2024

Works fine at my end. Thank you

from exoplayerxamarin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.