Coder Social home page Coder Social logo

Comments (8)

mekya avatar mekya commented on July 20, 2024 1

This rtmp library actually is independent of ExoPlayer.

Have you tested that this library does not work on Exo 2.0?

Bests,
A. Oguz

On Fri, Sep 30, 2016 at 12:58 PM, Carlo Alberto Negri <
[email protected]> wrote:

will you do it ?

(2.0 is a kind of major with lot of fixes)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#17, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADS8-0bggOiKr9X5Q5O-5H7uQSAYUYz1ks5qvN0ogaJpZM4KK6-D
.

from librtmp-client-for-android.

calber avatar calber commented on July 20, 2024 1

tested and not compatible, major changes in exo 2.0...

from librtmp-client-for-android.

PanCrucian avatar PanCrucian commented on July 20, 2024

any plan to support Exo 2.1.0? I tested too and this RTMPClient not compatible with Exo

from librtmp-client-for-android.

micHar avatar micHar commented on July 20, 2024

I tried to implement it based on the exoplayer 1.x sample.

public class RtmpDataSource implements DataSource {

private final RtmpClient rtmpClient;
private Uri uri;

public RtmpDataSource(Uri uri) {
    this.uri = uri;
    rtmpClient = new RtmpClient();
}

@Override
public long open(DataSpec dataSpec) throws IOException {
    rtmpClient.open(dataSpec.uri.toString(), false);
    return C.LENGTH_UNSET;
}

@Override
public void close() throws IOException {
    rtmpClient.close();
}

@Override
public int read(byte[] buffer, int offset, int readLength) throws IOException {
    return rtmpClient.read(buffer, offset, readLength);

}

@Override
public Uri getUri() {
    return uri;
}
}

Then tried to use it like this:

    DataSource.Factory dataSourceFactory = () -> new RtmpDataSource(Uri.parse(mediaUrl));
    Handler mainHandler = new Handler();
    ExtractorMediaSource source = new ExtractorMediaSource(Uri.parse(mediaUrl), dataSourceFactory, new DefaultExtractorsFactory(), mainHandler, null);
    player.prepare(source);
    player.setPlayWhenReady(true);

But it didn't work for me. It was a blind guess, though. Any ideas?

from librtmp-client-for-android.

mekya avatar mekya commented on July 20, 2024

Sorry i don't have any idea right now.

Nevertheless, i want to make it compatible with ExoPlayer 2.0, I don't have time to do that in these days.

Sorry for that

from librtmp-client-for-android.

micHar avatar micHar commented on July 20, 2024

I'm willing to help, but to be honest I'm not really an expert when it comes to streaming, so you would have to point me in the right direction. Right now I'm kind of stuck with the code above.

from librtmp-client-for-android.

mekya avatar mekya commented on July 20, 2024

I am sorry for the late reply.

Exoplayer 2 is now supported.

FYI

from librtmp-client-for-android.

ojw28 avatar ojw28 commented on July 20, 2024

FYI, we're planning to merge google/ExoPlayer#2503 into ExoPlayer, which will allow you to plug LibRtmp into any version of ExoPlayer (starting from the version where it's added).

from librtmp-client-for-android.

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.