Play a recorded video and a timely video

Source: Internet
Author: User
Tags file system
Get the camera.
System.showsettings (0);/* Pop-up user settings: 0 to allow or deny access to the camera and microphone 1 to specify the local disk space to use for shared objects 2 to select the default camera and microphone 3 for the specified microphone gain and echo suppression settings * *
Mycam = Camera.get (); * New Capture Video Object * *
Myvideo.attachvideo (MYCAM); * Show this video/*
/* If deleted system.showsettings (0), this sentence, directly read the camera, do not eject the dialog box. * * Play a recorded video:
var nc:netconnection = new Netconnection ()/* Creates a Netconnection object that you can use with NetStream objects to play local video streaming (FLV) files. */
Nc.connect (null);/* You can use it to replay the local connection of the video (FLV) file from the HTTP address or local file system.
var ns:netstream = new NetStream (NC);/* Create a NetStream object that NetStream class provides methods and properties for playing Flash video (FLV) files from a local file system or an HTTP address. You can use the NetStream object to stream video through a Netconnection object.
Myv.attachvideo (NS);
Ns.play ("v.flv");


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.