[Red5] Number values in remote SharedObject mixed up
Mondain
mondain at gmail.com
Wed Jan 21 13:11:43 PST 2009
Thats an interesting hack.. :)
On Wed, Jan 21, 2009 at 7:12 AM, Dorian Roy <Dori at nroy.de> wrote:
> I just found an even more quirky workaround: use a Date object to store the
> Number in the SO ( e.g. new Date(0xFFFFFF ) and use Date.getTime() to
> retrieve it. This way all numbers I tested are returned correctly ;)
>
> On 20.01.2009, at 18:52, Mondain wrote:
>
> I wasn't involved with the SO number fix that I can recall, but as a
> work-around you could send your values as Strings or separate R, G, and B
> values.
> Paul
>
> On Tue, Jan 20, 2009 at 5:23 AM, Dorian Roy <Dori at nroy.de> wrote:
>
>> Hi,
>>
>> I just ran into a strange issue. I use a remote SO to store RGB color
>> values with Red5 0.7. When a client gets notified of changes to these
>> numbers, the read value differs from the original value sometimes.
>>
>> For example: I write 0xC6E6FB (Decimal: 13035259) and the another client
>> reads this as -5. My first thought was that this is misinterpreted to be a
>> signed integer, but casted to an uint I get 4294967291 as the result, which
>> equals 0xFFFFFFFB.
>>
>> On the other hand, a value of 0x141719 works fine. It also doesn't seem to
>> be an issue of too many bits as even a 32-bit value like 0x100000000 works
>> fine.
>>
>> So I'm pretty lost right now. I read that 0.8 RC1 contains some fixes
>> related to SharedObjects, but at the moment I can't test it. Does anybody
>> know if this is a known issue or have any clue what's going on here?
>>
>> Thanks, Dorian
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>
>
>
> --
> http://gregoire.org/
> http://osflash.org/red5
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
--
http://gregoire.org/
http://osflash.org/red5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20090121/c9be1271/attachment.html>
More information about the Red5
mailing list