Invoke on Strem not on Connection

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Invoke on Strem not on Connection

Benny
Hi,

in AS3 I have NetConnection.call and NetStream.send

In Red5 I can RTMPClient.invoke (like NetConnection.call) but is there a corresponding NetStream.send?

Thanks in advance and kind regards
Benny

--

---
You received this message because you are subscribed to the Google Groups "red5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Invoke on Strem not on Connection

Mondain
NetStream.send is available, if I'm not mistaken.


On Fri, Jun 24, 2016 at 2:24 PM Benny <[hidden email]> wrote:
Hi,

in AS3 I have NetConnection.call and NetStream.send

In Red5 I can RTMPClient.invoke (like NetConnection.call) but is there a corresponding NetStream.send?

Thanks in advance and kind regards
Benny

--

---
You received this message because you are subscribed to the Google Groups "red5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups "red5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Invoke on Strem not on Connection

Benny
But where? E.g. if I want to use ClientBroadcastStream there is only ClientBroadcastStream.pushMessage, but how do I build the message? And which pipe should I use?

Am Freitag, 24. Juni 2016 21:13:34 UTC+2 schrieb Mondain:
NetStream.send is available, if I'm not mistaken.


On Fri, Jun 24, 2016 at 2:24 PM Benny <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="F2oLJkIuDAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">benjami...@...> wrote:
Hi,

in AS3 I have NetConnection.call and NetStream.send

In Red5 I can RTMPClient.invoke (like NetConnection.call) but is there a corresponding NetStream.send?

Thanks in advance and kind regards
Benny

--

---
You received this message because you are subscribed to the Google Groups "red5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="F2oLJkIuDAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">red5interest...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups "red5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Invoke on Strem not on Connection

Benny
finally I got it working. I added the following to org.red5.proxy.StreamingProxy
public void streamSend(IServiceCall c) {
Notify n = new Notify(c);
Header h = new Header();
int ti = (int)(System.currentTimeMillis() - publishedTime);
h.setTimerBase(ti);
n.setHeader(h);
n.setTimestamp(h.getTimer());
rtmpClient.getConnection().getChannel(rtmpClient.getConnection().getChannelIdForStreamId(streamId)).write(n);
}

and its working like a charm.

kind regards

Am Freitag, 24. Juni 2016 23:10:46 UTC+2 schrieb Benny:
But where? E.g. if I want to use ClientBroadcastStream there is only ClientBroadcastStream.pushMessage, but how do I build the message? And which pipe should I use?

Am Freitag, 24. Juni 2016 21:13:34 UTC+2 schrieb Mondain:
NetStream.send is available, if I'm not mistaken.


On Fri, Jun 24, 2016 at 2:24 PM Benny <[hidden email]> wrote:
Hi,

in AS3 I have NetConnection.call and NetStream.send

In Red5 I can RTMPClient.invoke (like NetConnection.call) but is there a corresponding NetStream.send?

Thanks in advance and kind regards
Benny

--

---
You received this message because you are subscribed to the Google Groups "red5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to red5interest...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups "red5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Invoke on Strem not on Connection

Rajdeep Rath

Great job !! And thanks for sharing 👍

On Jul 3, 2016 10:02 PM, "Benny" <[hidden email]> wrote:
finally I got it working. I added the following to org.red5.proxy.StreamingProxy
public void streamSend(IServiceCall c) {
Notify n = new Notify(c);
Header h = new Header();
int ti = (int)(System.currentTimeMillis() - publishedTime);
h.setTimerBase(ti);
n.setHeader(h);
n.setTimestamp(h.getTimer());
rtmpClient.getConnection().getChannel(rtmpClient.getConnection().getChannelIdForStreamId(streamId)).write(n);
}

and its working like a charm.

kind regards

Am Freitag, 24. Juni 2016 23:10:46 UTC+2 schrieb Benny:
But where? E.g. if I want to use ClientBroadcastStream there is only ClientBroadcastStream.pushMessage, but how do I build the message? And which pipe should I use?

Am Freitag, 24. Juni 2016 21:13:34 UTC+2 schrieb Mondain:
NetStream.send is available, if I'm not mistaken.


On Fri, Jun 24, 2016 at 2:24 PM Benny <[hidden email]> wrote:
Hi,

in AS3 I have NetConnection.call and NetStream.send

In Red5 I can RTMPClient.invoke (like NetConnection.call) but is there a corresponding NetStream.send?

Thanks in advance and kind regards
Benny

--

---
You received this message because you are subscribed to the Google Groups "red5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups "red5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups "red5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.