TakuSemba / RtmpPublisher

Rtmp client on Android. Live Video Streaming.
Apache License 2.0
621 stars 149 forks source link

Update RTMP URL after running? #22

Open Chapoly1305 opened 5 years ago

Chapoly1305 commented 5 years ago

I wonder if there was a chance to change the rtmp url address after run the program is there a way use other rtmp address, not just the coded in address?

AlexUrrutia commented 5 years ago

Yes, just create a text input field that has the RTMP path and a button to connect/disconnect

namespace7 commented 5 years ago

I wonder if there was a chance to change the rtmp url address after run the program is there a way use other rtmp address, not just the coded in address?

Take user URL input in EditText and pass it to URL Variable !

vit1967 commented 5 years ago

Hepl me please^ How can write RTMP URL (what app/{stream-key} need?) for translate video from android (local ip1) to PC (local ip2) through WiFi (I can't connect to nginx-rtmp under Docker ) ?

namespace7 commented 5 years ago

@vit1967
You should be more clear about the Issue! what're you trying to do? what you have done till now !

vit1967 commented 5 years ago

@vit1967 You should be more clear about the Issue! what're you trying to do? what you have done till now !

Im my case problem was successfully resolved by change... private val url = BuildConfig.STREAMING_URL to private val url = "rtmp://192.168.1.51:1935/live/s" //BuildConfig.STREAMING_URL
in MainActivity.kt (192.168.1.51 =ip of my PC with nginx-docker) Thanks for the good code)) But keep it simple ;)

vit1967 commented 5 years ago

At the same time the question: I would also, in addition to the video, transmit "to the other side, through the nginx", also any messages. Is this possible using only nginx (and Real-Time Messaging Protocol, and this library)? Or do I have to hang a separate chat server for this?

namespace7 commented 5 years ago

@vit1967 you can also receive the video using ffmpeg library . write a command which will keep listening to a port number and play whenever there is a incoming stream locally.