The flex streaming media player in the project is finally completed completely. It is very difficult to do the work in detail! 1 (feelings)

Source: Internet
Author: User

Today, I was depressed. In the morning, the leaders asked me what I was studying recently. I swallowed up and said nothing, and the leaders said, "I didn't show what I saw ", I was so angry that I thought I was always playing online at work and took away my network card (and then indirectly gave it back to me ).

I feel like I am not playing, I am always busy searching and solving my questions. Sometimes I may be away from direct tasks, but it is also to accumulate knowledge for better work. Besides, I have been busy experimenting with ideas recently. Although many ideas have been proved unfeasible, I am actually studying them.

It is unpleasant to be approved by leaders! In the afternoon, I started to solve the actual problem a little bit. At that time, my idea was to work well. I started to work as an artist and debug the problem a little bit. Some features have also been modified without substantial progress, I just adjusted the function location, merged some functions, and added some control statements to the skin of the application artist (this still took a long time ).

After the artist finished, it was really beautiful. In the evening, the whole function was mainly started. In the morning, the Director said that the full screen function would be required. The page was ready in the afternoon to support full screen, but full screen is not as simple as you can imagine. The main problems involved are the Positioning Method of components and full screen control of video objects in the videoplayer control.

1. Positioning Method of the component: It mainly uses two of top left bottom right to locate the component. This method is a good positioning method, especially when full screen is required.

2. Full Screen Control of video objects in the videoplayer control: I spent most of the night trying to solve the problem. I would like to thank http://flash.9ria.com/thread-35960-1-1.html for making it easier. In full screen mode, I used "capabilities. screenresolutionx; videoplayer. Height = capabilities. screenresolutiony;" in "ideoplayer. width = capabilities. screenresolutionx and capabilities. capacity ". In normal mode, a detour is taken when the video object is controlled to return to the original state. First, I want to indirectly adjust the video object by the size of the videoplayer outside the video object. There are two major mistakes: a. I thought videoplayer only had one subobject that I added. Originally, it had three subcontrol objects, and the video object was placed in the third subcontrol of videoplayer. B. The current width and height of videoplayer are used, and the original height and width values should be kept. Finally, based on the experiment, we found that the width and height of the video object can be directly controlled. The wide and high values are from the master ApplicationProgramInitialized and saved in advance.

Later, I solved many minor problems. The main one was that after the video was played, I moved the control bar and the playback function became invalid. Originally, the seek method was used. In normal playback mode, moving and sliding control was fine. Later, the play method was used to control the Playback Start Point through the second parameter.

Although the original plan was disrupted, I finally took it seriously and did not blame the leaders for being lazy.

 

Next article: Key announcementCode

 

Related Article

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.