On 5/11/06, Suzy Lawson <[EMAIL PROTECTED]> wrote:
> I think I'm getting confused b/w sending binary data over the socket
> and sending binary (or text) data over a binary protocol.
Binary socket means there's no application-layer protocol (above TCP).
Use your own protocol. You can do anything using the capability to
send and receive raw bytes.
> For example, is it possible to send binary documents (e.g. pdfs and
> jpegs) through this socket via the writeUTFBytes() method? If so, when
> something binary is sent/received...how does it know what type it
> is...i.e. jpeg/video stream.
Develop your own protocol! Send the file type in the first two bytes
or something. The client and the server need to speak a language here.
> Also, can I stream video through this socket if I have a non Flash
> Media Server implementation managing everything?
I'm not sure--you'd have to dig into the RTMP protocol and understand
what Video.publish() does exactly.
One crude way of publishing video is to create a Bitmap object out of
every frame as the video plays and send the bitmap bytes to the
server. Probably very stupid but it'll work.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development
Computer software development
Software design and development
Macromedia flex
Software development best practice
YAHOO! GROUPS LINKS
Visit your group "flexcoders" on the web.
To unsubscribe from this group, send an email to: [EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.