The flvplayer we made consists of the following parts:A video object used to display video images,Three buttons are used to play, pause, and stop a video respectively,And a dynamic text used to display the buffer loading progress.
1. Create three button components, named "play", "pause", and "stop" respectively, and drag and drop one of their instances to the scene stage.
2. Create a video component, drag an instance to the scene stage, and assign its instance name myvideo.
3. Place a dyna
Content of this article:1: Make your own Pop3HelperHandling of mail formats is troublesome2: Use the off-the-shelf pop3 classLumiSoft. Net. POP3.Client;There are two solutions3: Use IMAP to receive emailsMore functions than pop3.4: send an email through SMTPAbout Mailbox unavailable. The server response was: 5.7.1 Unable to relay for xx error handling
Writing a POP3 receiving program is not very easy. The main problem is how to handle the mail format.The processing method is not too complicated.
This article is from the first step of Flash MX Professional 2004.
Author: Chen Bing
Create a full-featured flvplayer
The flvplayer we made consists of the following parts:A video object used to display video images,Three buttons are used to play, pause, and stop a video respectively,And a dynamic text used to display the buffer loading progress.
1. Create three button components, named "play", "pause", and "stop" respectively, and drag and drop one of their instances to the scene stage.
2. Cre
and displays the conversation content of the client. On this basis, play your creativity, you can fully develop a program language (C #)-level chat room!
Client Main Source code:
public void Sendmeg ()/Send information
{
Try
{
int Port=int32.parse (textBox3.Text.ToString ());//Remote host port
Try
{
Tcpclient=new TcpClient (Textbox1.text,port);//Create TcpClient object instance}
catch (Exception le)
{
MessageBox.Show ("TcpClient Error:" +le.) message);
}
String strdateline=datetime.now.tosh
Use the video, netconnection, and netstream classes to load and play FLV files. Process the corresponding event in the script:
Netstatusevent-when the netconnection object executes the connect () method, netstatus is changed. When the netstream object executes the play () method, error handling is also monitored by it.
The securityerrorevent-netconnection object executes the listener for a connect () error.
This article is selected from the "Flash MX Professional 2004 First Step" book
Author Chen Bing
To create a fully functional FLV player
This FLV player we will make consists of several parts:
A video object for displaying a video image,
Three buttons to play, pause, and stop the video, respectively,
and a dynamic text to display the progress of the buffer mount.
1. Create three button symbols, named "Play", "pause", "Stop", and drag each instance to the scene stage, respectively.
2. Create a
server when users access the server, At the same time, the programmer configures the probability of being accessed by FLV, flv4, and flv5 in the code in advance, Therefore, users sometimes obtain video sources from flv.bn.youtube.com, sometimes from flv4.bn.youtube.com, or from flv5.bn.youtube.com, When a user creates a request with an unstable server (that is, watching videos on an unstable server, for example, if flv.bn.youtube.com is unstable today ), this bug will occur. Although there ar
we made consists of the following parts:A video object used to display video images,Three buttons are used to play, pause, and stop a video respectively,And a dynamic text used to display the buffer loading progress. 1. Create three button components, named "play", "pause", and "stop" respectively, and drag and drop one of their instances to the scene stage. 2. Create a video component, drag an instance to the scene stage, and assign its instance name myvideo. 3. Place a dynamic text on the
[Knowledge point]1. Construct the video netconnection and netstream;2. Use soundtransform to control the volume. (This consumes some energy. In As2, setvolume can be used, but as3 won't work );3. Pause pause () and Resume playback of paused video streams using resume ();4. onmetadata is used to receive video information (for example, the total video time data. duration );5. Use NetStatusEvent. NET_STATUS to start and end the video stream. If the value
object cannot be used for Alpha channels, hybrid modes, filters, masks, or scale9grid.
The video data cannot be copied to the bitmapdata object (bitmapdata. Draw.
Videos cannot be cached in bitmap format.
Video data cannot be embedded in SWF files. Stagevideo can only be applied to films from netstream objects.
Depending on underlying hardware devices, some color spaces may not be supported. In this case, flash player selects an alternative color
I checked the materials and practiced socket programming myself. Today I want to implement point-to-point chat. The principle is almost the same. It can be divided into two operations: server and client.
Server:
1) create a tcplistener object and initialize
Private tcplistener;Private tcpclient client;Private networkstream netstream;Private streamreader streamr;Private streamwriter streamw;Private thread mainthread;Private thread;Private void s
Import flash. Events. netstatusevent;Import flash. Media. video;Import flash.net. netconnection;Import flash.net. netstream;
Private var mync: netconnection;Private var client: object;Private var videostream: netstream;Private var video: video;Private var videourl: string;
Mync = new netconnection ();Mync. Connect (null );Client = new object ();Videostream = new n
the request message by reading the network stream object Networkstream netstream = Client. getstream (); // Read the client request data and save it to an array. Byte [] Buffer = New Byte [ 2048 ]; Int Required elength = netstream. Read (buffer, 0 , 2048 ); String Requeststring = encoding. utf8.getstring (buffer, 0 , Cancelength ); // Output request message on the server side Co
A video object is used to display real-time or recorded video streams. The video object can be a real-time video captured through the camera. Get method, or a real-time video file or a recorded video file or MP3 audio file played using the netstream. Play method.To display video streams, you must first place the video object to the stage, and then use the video. attachvideo method to attach the video stream to the video object. 1: my_cam = camera. Get
+ "\ r \ n";byte[] Arraytosend = System.Text.Encoding.UTF8.GetBytes(Stringtosend.tochararray ());Netstream.write (arraytosend,0,arraytosend.length);}3.2 Acceptance of the Promise codeThe SMTP server responds to each one. The following code implements the ability to accept a promise code.private string Readfromnetstream (ref NetworkStream NetStream){byte[] bb=new byte[512];Netstream.read (BB,0,BB. Length);String read=system.text.encoding.utf8.getstrin
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.