alaabataineh / php-rtmp-client

Automatically exported from code.google.com/p/php-rtmp-client
1 stars 0 forks source link

Wowza expects MixedArrays #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have server-side code in Wowza, and when a Flash client connects, it's always 
sending MixedArrays. So my code is written only to accept that. However when 
php-rtmp-client sends data, it sends it as Array instead of MixedArray. Here is 
a simple hack to force it to always send MixedArray

Index: SabreAMF/AMF0/Serializer.php
===================================================================
--- SabreAMF/AMF0/Serializer.php        (revision 26)
+++ SabreAMF/AMF0/Serializer.php        (working copy)
@@ -67,7 +67,7 @@
                     }

                     // Pure array
-                    if (!$type) $type = SabreAMF_AMF0_Const::DT_ARRAY;
+                    if (!$type) $type = SabreAMF_AMF0_Const::DT_MIXEDARRAY;
                 }

                 // Its an object

Original issue reported on code.google.com by dro...@gmail.com on 25 Mar 2011 at 11:17