[Red5] NetStream.send not working in record mode
Manuel Raña
info at vengava.com
Wed Dec 24 03:04:44 PST 2008
i was going to do it today but, i think i got it working!!!
NetStream.send in record mode ( AMF3 )
For sure, it isn't the correct way to do it ( but i did my best ;) , and
should be revised/corrected/ or sent to junk folder but i'm getting
function/params inserted in flv along with audio/video using AMF3. The
pieces were already in red5 code, of course!!!
This is what i did:
1.- i start publishing a stream with audio/video ( myself talking ) in
"record" mode
2.- change some UIComponents values ( up to 4)
3.- pushed a "ns.send" button at random intervals while saying a word or
moving my head
4.- create an Object with 4 properties which values are updated from
components values
5.- call NetStream.send("onNetStreamSendTest", objectWithUpdatedValues)
6.- function is called on the client apparently at the time i say that word
or move my head
7.- update components while playing back the stream and seems to work
i'll do some more tests later today.
i'm not an expert and surely it's not the final fix but i can say at this
moment is working but should be revised by developers.
i haven't used jira nor tools llike diff, is it OK to send to jira or
wherever it has to be sent to, with file names and changed line numbers for
revision?
Manuel
2008/12/23 Tyler Kocheran <rfkrocktk at gmail.com>
> Did you file a bug report? Be sure to do that, and I'll vote for it too :)
>
> On Tue, Dec 23, 2008 at 12:05 PM, Manuel Raña <info at vengava.com> wrote:
>
>> Hi
>>
>> I've been trying to make NetStream.send (in record mode) work, with no
>> success
>> I remembered that i've used that functionality with red5 in the past.
>> Googling, i found this mail from Joachim:
>>
>>
>> http://osflash.org/pipermail/red5commits_osflash.org/2006-August/000749.html
>>
>> So i installed red5-0.6.3 and test it, and confirmed that it worked with
>> that version using a Flex client with AMF0 encoding (i'm passing an Object
>> with 4 properties as params and the client function is called at the times
>> it should and with the object successfully)
>>
>> With red5 0.7 and 0.8-RC1 the client function is called on the client when
>> playing a recorded flv with embbeded data (recorded with a previous red5
>> version) but i can't use ns.send successfully while recording.
>>
>> I want to ask developers if there are any plans to fix that functionality,
>> since it's a nice and very usefull feature from fms/red-0.6.3 in my opinion
>>
>> I could provide a flv with embbeded function (and params) since it works
>> in 0.6.3
>>
>> Thanks so much!!
>>
>>
>>
>>
>> 2008/12/21 Manuel Raña <info at vengava.com>
>>
>> Hi all,
>>>
>>> I was trying to reproduce the same funtionality as this old example:
>>>
>>> http://www.adobe.com/devnet/flashmediaserver/articles/rmi_fms2_04.html
>>>
>>> And found the following problems:
>>>
>>>
>>> 1- If i call
>>> ns.publish("something", "record");
>>> ns.send("myFunc", myObject);
>>> the function call is embedded in flv and following ns.send calls too
>>> the problem is that produces a negative timestamp:
>>> o.r.s.stream.consumer.FileConsumer - Skipping message with negative
>>> timestamp.
>>>
>>> 2- If i call
>>> ns.publish("something", "record");
>>> and later, at a push of a button
>>> ns.send("myFunc", myObject);
>>> data isn't embbeded in flv
>>>
>>> 3- If a play a recorded stream with embbeded function call i get:
>>> o.r.s.stream.provider.FileProvider - Unexpected type? 15
>>>
>>> 4- But i'm able to make myFunc() to be called on my client by inserting
>>> this code:
>>>
>>> case Constants.TYPE_FLEX_STREAM_SEND:
>>> msg = new FlexStreamSend(tag.getBody());
>>> break;
>>>
>>> At line 149 of this file:
>>>
>>> org.red5.server.stream.provider.FileProvider.java
>>>
>>> but timestamps are negative...
>>>
>>> So it seems that NetStream.send, at least for recording mode is not
>>> working.
>>> I'm trying to make things this way because it's perfect for my needs.
>>> If anyone can suggest another way of embbeding function calls or
>>> cuePoints on the fly while recording, i'm all ears...
>>>
>>> Thanks
>>>
>>>
>>>
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
>
>
> --
> And do this, knowing the time, that now it is high time to awake out of
> sleep;
> for now our salvation is nearer than when we first believed.
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20081224/4186a5fc/attachment-0001.html>
More information about the Red5
mailing list