Coder Social home page Coder Social logo

Comments (10)

mekya avatar mekya commented on August 20, 2024 1

Hi @Ryder68 ,

As this library is a wrapper of librtmp client. It mainly inherits same behaviours from librtmp. For the url you provided cannot be parsed correctly by librtmp, so we need to help librtmp to parse it correctly.

In short, to play such a url you provided, you should add the playpath variable to the url like below. Pay attention that there is a space between rtmp url and the playpath variable.

"rtmp://video.f10.bdpcdn.net/vod/mp4:Media/2017/08/09/14/cn9-809082017.mp4 playpath=/mp4:Media/2017/08/09/14/cn9-809082017.mp4"

I have tested the url above and it is playing for me. I hope it will play for you as well.

--
Quick Info:

playpath=path
Overrides the playpath parsed from the RTMP URL. Sometimes the rtmpdump URL parser cannot determine the correct playpath automatically, so it must be given explicitly using this option.

For more info take a look at the documentation
https://rtmpdump.mplayerhq.hu/librtmp.3.html

from librtmp-client-for-android.

mekya avatar mekya commented on August 20, 2024 1

I couldn't even play this url(rtmp://118.107.84.3/live/vtc11_public) with VLC.

I think we can add this parameter automatically to the url so that it will become convenient for you ;)

from librtmp-client-for-android.

Ryder68 avatar Ryder68 commented on August 20, 2024 1

I understand.
Thank you so much.
Have a nice day <3

from librtmp-client-for-android.

mekya avatar mekya commented on August 20, 2024 1

You're welcome,
Closing issue, just ping me if you have any question.

btw, we provide media server and sdks at http://antmedia.io . If you want to subscribe to newsletter for new updates, please send an e-mail to contact at antmedia dot io

Thank you

Regards,

from librtmp-client-for-android.

Ryder68 avatar Ryder68 commented on August 20, 2024

Hi @mekya
I tried adding playpath and it played well that link, although it was inconvenient.
But with this link: rtmp://118.107.84.3/live/vtc11_public
It does not seem to work.
I tried: rtmp://118.107.84.3/live/vtc11_public playpath=/vtc11_public

Tks so much! <3

from librtmp-client-for-android.

Ryder68 avatar Ryder68 commented on August 20, 2024

@mekya Thank you so much.
If can, please add that parameter automatically in this lib.
In addition, if same as that link then playpath will look like ?
Ex:
rtmp://125.212.132.219:1935/standard/_definst_/mp4:standard_720p
=> rtmp://125.212.132.219:1935/standard/_definst_/mp4:standard_720p playpath=???

rtmp://118.107.84.3/live/vtc11_public
=> rtmp://118.107.84.3/live/vtc11_public playpath=???

from librtmp-client-for-android.

mekya avatar mekya commented on August 20, 2024

@Ryder68
if I played these urls somehow with VLC or something else, I would find out the playpath

Have you played the urls you have provided in any media player?

from librtmp-client-for-android.

Ryder68 avatar Ryder68 commented on August 20, 2024

@mekya
I played that stream in VLC on windows 7.
This is screenshot:
rtmp://125.212.132.219:1935/standard/_definst_/mp4:standard_720p

image

from librtmp-client-for-android.

mekya avatar mekya commented on August 20, 2024

I event succeed to play on VLC in mac however it starts to play too late. It does not play smoothly either.
Anyway, I tried to play on Exoplayer. It gives an error in audio track.

08-16 09:48:07.037 27806-27806/com.google.android.exoplayer2.demo E/EventLogger: internalError [21.36, audioTrackUnderrun [61568, 320, 527]]

This error is out of scope of this library.

Let me say something about playpath, if there is a "mp4:" in the url and and the url does not finish with "mp4:..." then librtmp does not correctly parse the url and playpath should be provided.

from librtmp-client-for-android.

kmasterycsl avatar kmasterycsl commented on August 20, 2024

For someone still faces this issue.
Try append to the url like this "rtmp://URL live=1"

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.