A Flash Developer Resource Site

Results 1 to 18 of 18

Thread: [Resolved] [Resolved] [Resolved] [Resolved] [Resolved] [Resolved] [Resolved] [Resolved] [Resolved] [

  1. #1
    Danny Gomez Creations ® cosmiceye's Avatar
    Join Date
    Mar 2002
    Location
    under a palmtree in Jamaica waiting for psytopia 2005 to begin
    Posts
    982
    Oki, flashers out there, here is the thing. I need to work with video and sound at runtime, and I know these features can help to do the tricks. Its just that they are not documented, but I am asuming that some of u would like dive in these things, and maybe give us something more to go from. Thanks in advance.

    //:::::::::::features:::::::


    AsBroadcaster
    AsBroadcaster.broadcastMessage
    AsBroadcaster.initialize
    AsBroadcaster.addListener
    AsBroadcaster.removeListener
    ASconstructor

    Object.prototype.hasOwnProperty
    Object.prototype.isPrototypeOf
    Object.prototype.isPropertyEnumerable
    Object.prototype.toLocaleString

    Sound.prototype.setDuration
    Sound.prototype.getDuration
    Sound.prototype.setPosition
    Sound.prototype.getPosition

    SharedObject.prototype.connect
    SharedObject.prototype.send
    SharedObject.prototype.flush
    SharedObject.prototype.close
    SharedObject.prototype.getSize
    SharedObject.prototype.setFps
    SharedObject.deleteAll
    SharedObject.getDiskUsage
    SharedObject.getLocal
    SharedObject.getRemote

    LocalConnection.prototype.connect
    LocalConnection.prototype.send
    LocalConnection.prototype.close

    System.Product

    Accessibility.sendEvent

    Camera.prototype.setMode
    Camera.prototype.setQuality
    Camera.prototype.setKeyFrameInterval
    Camera.prototype.setMotionLevel
    Camera.prototype.setBandwidth
    Camera.prototype.setLoopback
    Camera.get

    Microphone.prototype.setSilenceLevel
    Microphone.prototype.setRate
    Microphone.prototype.setGain
    Microphone.prototype.setUseEchoSuppression
    Microphone.get

    MovieClip.prototype.attachAudio
    MovieClip.prototype.attachVideo

    NetConnection.prototype.connect
    NetConnection.prototype.close
    NetConnection.prototype.call
    NetConnection.prototype.addheader

    NetStream.prototype.close
    NetStream.prototype.attachAudio
    NetStream.prototype.attachVideo
    NetStream.prototype.send
    NetStream.prototype.publish
    NetStream.prototype.play
    NetStream.prototype.receiveAudio
    NetStream.prototype.receiveVideo
    NetStream.prototype.pause
    NetStream.prototype.seek

    Video.prototype.attachVideo
    Video.prototype.clear





    ////////////have fun

  2. #2

    Lightbulb

    wow.

  3. #3
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789
    interesting...

  4. #4
    Junior Member
    Join Date
    Jan 2001
    Posts
    16
    Originally posted by cosmiceye

    NetConnection.prototype.connect
    NetConnection.prototype.close
    NetConnection.prototype.call
    NetConnection.prototype.addheader

    NetStream.prototype.close
    NetStream.prototype.attachAudio
    NetStream.prototype.attachVideo
    NetStream.prototype.send
    NetStream.prototype.publish
    NetStream.prototype.play
    NetStream.prototype.receiveAudio
    NetStream.prototype.receiveVideo
    NetStream.prototype.pause
    NetStream.prototype.seek
    might these solve the streaming problem that was such a big issue earlier?

  5. #5
    Junior Member
    Join Date
    Feb 2001
    Posts
    13

    Wink now make it work!

    great!

    hints of neat features, but how can we make them work?
    any clues on how to control these building blocks??

    Perhaps someone could finally post a script where we all been waiting for in these forums:
    Something that saves the microphone and camera object to a file or server..

    Off course we dont wanna wait for the special server software! :P

    cheers,
    GuZ

  6. #6
    Danny Gomez Creations ® cosmiceye's Avatar
    Join Date
    Mar 2002
    Location
    under a palmtree in Jamaica waiting for psytopia 2005 to begin
    Posts
    982
    I managed to use the camera object, but the broadcasting part is left. If u have a webcam have a look-- >http://w1.736.telia.com/~u73602493/webcam/SensorWebCam.html

    the code for the camera object looks like this:

    /////code///////

    myVideo = camera.get();
    _root.theCam.webCam.attachVideo(myVideo);

    ////code////

    it took me several hours before I got it to discover that u have to make an empty embeded video source, which is the one u attach the object to.

    I downloaded actionviewer to view the videochat code on the mediatemple site, but with the demo version is no use. If anybody has the full version of actionviewer, please learn the code and post it I dont know how flashkit people feels about viewing code from swf-files, but I see it as stealing knowledge, and its worth it.

    to download the videochat.swf, rightklick+save as here--->
    http://mtcom.ssmx01.mediatemple.net/...idchatblue.swf

  7. #7
    X-PRESSIVE.COM
    Join Date
    Oct 2000
    Posts
    112
    The current version of the AS-Viewer does not support MX file format, as far as I know -but I may be wrong. Anyway, it would really be a huuuuge step forward if we'd be able to create something like a real audio/video chat.

    Mike

  8. #8
    Danny Gomez Creations ® cosmiceye's Avatar
    Join Date
    Mar 2002
    Location
    under a palmtree in Jamaica waiting for psytopia 2005 to begin
    Posts
    982
    damn straight!!! Finally some insight on the importence of this. I installed asv 2.5 yesterday to see what I could find. Some windows with error logs came up telling me stuff that it didnt recognaise, and I think it was about look&feel which is not important in this case. I actually could se the code, but the f*cking demo (im poor) only shows the first 25 rows the code. Anyway, this is what I got:


    function onResize () {
    tout("sw " + Stage.width);
    tout("sh " + Stage.height);
    sw = Stage.width;
    sh = Stage.height;
    key._width = sw;
    logo._x = sw - (logo._width + 5);
    logo._y = sh - (logo._height + 5);
    key._height = sh;
    }
    function doConnect () {
    nc = new NetConnection ();
    nc.onStatus = function (info) {
    };
    nc.setId = function (id) {
    _root.myId = id;
    _root.myVid = "v" + id;
    _root.pub.publish("cam_" + id);
    _root.users.connect(nc);
    };
    nc.connect("rtmp:/vidChat2");
    pub = new NetStream (nc);
    pub.attachVideo(cam);
    pub.attachAudio(mic);
    users = SharedObject.getRemote("users", nc.uri, false);
    ...


    the first function is just for semi-liquid-layout. But the following functions I could kill for ( or give life for, just a dramatic expression(whats my point))...

  9. #9
    Danny Gomez Creations ® cosmiceye's Avatar
    Join Date
    Mar 2002
    Location
    under a palmtree in Jamaica waiting for psytopia 2005 to begin
    Posts
    982
    by the way, has anybody tested my camera.get- toy? Come on check it out, those of you that has webcam, and give some feedback.

    http://w1.736.telia.com/~u73602493/w...sorWebCam.html

  10. #10
    X-PRESSIVE.COM
    Join Date
    Oct 2000
    Posts
    112
    Hmm.. -I have no cam installed, just a TV capture card. Your movie shows some kind of black/white pattern (quite slow). I already tested some Flash cam demos but since I have no cam installed, it always displays the current TV program from my capture card

    BTW: you have mail

    Mike

  11. #11
    Member
    Join Date
    Mar 2002
    Posts
    30
    Ahem..

  12. #12
    Junior Member
    Join Date
    Mar 2001
    Posts
    2

    cool

    .

  13. #13
    Junior Member
    Join Date
    Mar 2001
    Posts
    2

    to cosmiceye

    working on a similar project
    email me
    flashwiz88@hotmail.com

  14. #14
    Senior Member
    Join Date
    Oct 2000
    Posts
    381

    the cosmiceye...

    ... camara is great. I will try to experiment with my own codes, i have already the job from a client, and i must do it... Do we need a special server for it, or does it work easily without any special communication server?

  15. #15
    Senile member! :)
    Join Date
    Dec 2001
    Location
    Saunaswamp (transl)
    Posts
    2,296
    since tinCan will be out soon I think I can give some information on that stuff... here are some description of the things I know about:

    SharedObject.prototype.connect
    // connect the shared object to a netconnection

    SharedObject.prototype.send
    // send a message to all other SWF's connected to the shared Object. practically it envokes a method with the same name as the message of all connected SharedObjects .

    SharedObject.prototype.close
    //closes the connection between a remote shared object and tincan.

    SharedObject.prototype.setFps
    // set how often updates are made to the sharedObject.

    SharedObject.getRemote
    // create/connect to a sharedObject on the server

    MovieClip.prototype.attachAudio
    // reroute an audio stream to a movie Clip. a sound object can then be created to control it.


    NetConnection.prototype.connect
    //used to connect to a server like tincan.

    NetConnection.prototype.close
    // close the connection.

    NetConnection.prototype.call
    // invoke a method or command on the server.


    NetStream
    // the netstream object creates a oneway stream between flash and a server

    NetStream.prototype.close
    // stop the stream

    NetStream.prototype.attachAudio
    // add audio from a microphone object the stream.

    NetStream.prototype.attachVideo
    // add video from a camera object the stream.

    NetStream.prototype.send
    // similar to the sharedObjects method.

    NetStream.prototype.publish
    // send data to the server

    NetStream.prototype.play
    // define what to data to recieve.

    NetStream.prototype.receiveAudio
    // a method to specify if audio is to be recieved or not.
    NetStream.prototype.receiveVideo
    // about the same as above

    NetStream.prototype.pause
    // pauses or resumes the playback of the stream.

    NetStream.prototype.seek
    //seeks a specified number of seconds in a recorded stream.

    Video.prototype.attachVideo
    // attach a video stream to a videoobject

    Video.prototype.clear
    // clear the image on the videoobject...

    /Mirandir

  16. #16
    Flash Developer on a break
    Join Date
    Jun 2001
    Location
    The Netherlands
    Posts
    1,370
    Where did you get those new actionscript code from? Just curious..

    Jeroen

  17. #17
    Gross Pecululatarian Ed Mack's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    2,954
    I take it the person at the top ran a for in loop?

  18. #18
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789
    Originally posted by jeroen84
    Where did you get those new actionscript code from? Just curious..
    traced some global properties/pre defined stuff or something likt that... also some of the stuff is starting to come out due to flash remoting etcetera... trial and error...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center