Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does lf support RTMP Playback? #14

Closed
mrbemani opened this issue Feb 4, 2016 · 12 comments
Closed

Does lf support RTMP Playback? #14

mrbemani opened this issue Feb 4, 2016 · 12 comments
Labels

Comments

@mrbemani
Copy link

mrbemani commented Feb 4, 2016

I saw a "RTMPStream.play" Method in the source file, but I don't know how to use it, when I call it, application always crashes.

@mrbemani mrbemani changed the title Does lf supports RTMP Playback? Does lf support RTMP Playback? Feb 4, 2016
@shogo4405
Copy link
Owner

No. playback feature is exprimental.

@keithcml
Copy link

how about now??

@shogo4405
Copy link
Owner

Video(H264 Baseline) is works ok.
Audio is NO.

implementing now. difficult for me X)

@keithcml
Copy link

Then I can play muted video via RTMP. Thats enough for me at this moment!!

@timelincoln7648
Copy link

still no audio?

@shogo4405
Copy link
Owner

Audio(AAC(Main) is works ok. But buggy...

@shogo4405 shogo4405 added this to the 0.4.0 milestone Jul 11, 2016
@shogo4405 shogo4405 removed this from the 0.4.0 milestone Aug 6, 2016
@jackfreed
Copy link

how or where do u attach the audio for playing back?

@shogo4405
Copy link
Owner

@jackfreed
What did u mean?

@jackfreed
Copy link

we are currently using GLLFView, on which we attachStream the RTMPStream, but there is no audio, so i was thinking there had to be another object to attach to so we get audio as well?

@shogo4405
Copy link
Owner

@jackfreed

how or where do u attach the audio for playing back?

No way. It is a publiser-side job. Playback feature is exprimental. I think framework-side problem.

@jackfreed
Copy link

ok because i would like to experiment with the audio playback :-)

any hints, how to start ?

let lf = GLLFView(frame: CGRect.zero)
let conn = RTMPConnection()
let stream = RTMPStream(connection: conn)

lf.attachStream(stream)

should be enough (written from the top of my head) for the audio to play ?

@shogo4405
Copy link
Owner

let lf = GLLFView(frame: CGRect.zero)
let conn = RTMPConnection()
let stream = RTMPStream(connection: conn)
lf.attachStream(stream)

conn.connect("rtmp://your-rtmp-server/appName")
stream.play("your-stream-name")

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants