dcsimg
A Flash Developer Resource Site

Page 1 of 3 123 LastLast
Results 1 to 20 of 58

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

  1. #1
    Junior Member
    Join Date
    Mar 2002
    Posts
    15
    Hello,

    I've noticed that if you generate a swf file in MX, run it in the Flash Player, right click on the movie and select "Settings", that there is a tabbed menu that shows a Privacy, Local Storage, Microphone and Camera option.

    What's up with that? I haven't seen any documentation or threads on what you can do with an attached camera and a Flash MX movie. Video conferencing?

    Just curious,

    littlejobo

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Posts
    139
    That's what it's for, but there doesnt seem to be any documentation on it and I can't figure out how to use it.


  3. #3
    Moderator
    Join Date
    Aug 2000
    Posts
    1,455
    Hiya,

    This technology will be available with the release of the next generation server applications that Macromedia are working on.

    There's an announcement straight from the horses mouth here.

    For communication and collaboration solutions, developers will be able to use a new Macromedia communication server technology that will enable powerful capabilities including two-way audio and video as well as real-time data transfer with Macromedia Flash Player 6.
    I hope this helps!

    Regards,

    Steve

  4. #4
    Junior Member
    Join Date
    Mar 2001
    Posts
    27
    Yes, you're right.

    However I've found no actions in the new Action script documentation to control a camera or microphone device. Nor is there any documentation in the new user manual.

    I did find the following though in the docs:

    //-------------------------

    If you want the Actions panel to display code hints for object instances, you must add a special class suffix to each instance name. For example, to display code hints for the class MovieClip, you must name all MovieClip objects with the suffix _mc , as in the following examples:
    ... blah blah
    The following table shows the suffixes and their corresponding object classes:
    Suffix Object class
    _mc MovieClip
    ... blah blah
    _camera Camera
    _mic Microphone
    _stream NetStream
    _connection NetConnection
    _so SharedObject
    _video Video

    //-----------------------------

    movie_mc shows hints in the action window but cam_camera shows none. Looks like Macromedia dropped a few hints about whats comming in Flash 7.


  5. #5
    Senior Member
    Join Date
    Aug 2000
    Posts
    139
    I've got a feeling that it's all in there, but they dropped all the documentation (or most of it, I found two references in the manual).

    Or maybe it'll be an addon-path later with ColdfusionMX. Too bad I wanna use it with ASP :P

  6. #6
    Moderator
    Join Date
    Aug 2000
    Posts
    1,455
    Okay, I've done a little more digging.

    Camera.names returns the list of cameras attached to the computer, and there's also a get() function, but I'm not yet sure what that does - maybe capture???

    More to come...

    Regards,

    Steve

  7. #7
    Moderator
    Join Date
    Aug 2000
    Posts
    1,455
    The get() function returns an object, the attributes of which are...

    [quote]
    loopback: false
    quality: 0
    motionTimeOut: 2000
    motionLevel: 50
    bandwidth: 16384
    keyFrameInterval: 15
    nativeModes:
    [/code]

    No functions here that I can see though!

    The Microphone() object also has a names property and a get() function.
    The get function for this returns another object, with the following attributes...

    muted: false
    useEchoSuppression: 0
    gain: 50
    rate: 8
    silenceTimeOut: 2000
    silenceLevel: 10
    name: VIA Audio (WAVE)
    activityLevel: -1
    index: 0
    Again, no functions that I can see!

    Regards,

    Steve

  8. #8
    Moderator
    Join Date
    Aug 2000
    Posts
    1,455
    NetStream, NetConnection and Video all seem to be functions, but I can't get them to return anything other than NULL.

    SharedObject is used to store/read cookie like data on the client computer (basically to be used instead of cookies).

    Regards,

    Steve

  9. #9
    Senior Member
    Join Date
    Aug 2000
    Posts
    139
    There's gotta be a way to initialize this. It would be so much fun!

    All the new stuff in FlashMX and I can't think of anything to do -- aside play with the camera and mic settings. I'd try 3D stuff but the math involved in that is over my head

  10. #10
    Junior Member
    Join Date
    Mar 2001
    Posts
    27
    There must be an additional initialization function to which you pass the objects from Microphone.get() or Camera.get().

  11. #11
    Junior Member
    Join Date
    Mar 2002
    Posts
    15
    Are there any objects that display IP address within MX?

    littlejobo

  12. #12
    Senior Member
    Join Date
    Aug 2000
    Posts
    139
    Open up the standalone flash player in notepad or a hex editor, go through the garbage, and there are TONS of undocumented features related to the camera, microphone and net connections (for streaming). Now how to use them, I have no idea.

  13. #13
    Junior Member
    Join Date
    Mar 2001
    Posts
    27
    Or just download the player source code when it becomes available. I just don't have the patience to wait that long!

  14. #14
    Information Architect Subway's Avatar
    Join Date
    Feb 2000
    Location
    Switzerland
    Posts
    4,779
    interesting, very interesting ...

    I'm sure someone will figure it out, but i'm also sure you can't really use it without a server tool for all that. (ColdFusion MX)

    Fredi

  15. #15
    Senior Member
    Join Date
    Aug 2000
    Posts
    139
    at the flash player help site
    http://www.macromedia.com/support/flashplayer/help/
    it does mention that a movie may either send your camera information to a server or broadcast to another users, OR it can just display it locally.

    If all I can get working is the "Display Locally" I'll be happy.

    Then I can tint myself green :P

  16. #16
    Junior Member
    Join Date
    Mar 2002
    Posts
    12

    Smile

    More amazing things to come in a few months!

  17. #17
    Senior Member
    Join Date
    Mar 2000
    Posts
    111
    the only info I've seen is this enigmatic paragraph

    About creating a video object for a live stream

    You can create a video object to display a live video stream from a camera. To create a video object, you choose New Video Object from the Library panel options menu. Next, you assign a name for the object in the Property inspector. For information on assigning a name to a video object, see Working with imported video files.

    well that told us ...

  18. #18
    Junior Member
    Join Date
    Mar 2002
    Posts
    6
    These are some functions which are not documented, some which pertain to webcam and microphone control:

    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

    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

  19. #19
    Junior Member
    Join Date
    Mar 2002
    Posts
    6
    Instructions for Web Cam usage:
    The webcam is available under the Camera object.

    1. You have to attach it to a Video Object which you must create in your library. You may be able to create one using ActionScript.

    2. Once you have created a video-object, drag it onto your stage and give it an instance name (ie. myWebcam). Now you
    can attach your webcam ( if it is connected with your computer and working )with the following:

    _root.myWebcam.attachVideo(Camera.get(0));

    This should get you up and running.

  20. #20

    HOLY SHEEP ****

    holy sheep ****, that works.....

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