Compile player 6.12.0, go to the logo, right-click the menu, and Display Error information. Then, player6.12.0
First download the Flex SDK 4.1, preferably in the drive letter root directory, such as D: \ sdks \ 4.1.0
Download ant and decompress it to drive D, such as D: \ ant-1.9.
Configure the environment variable ANT_HOME D: \ ant-1.9.
PATH % ANT_HOME % \ bin
CLASSPATH % ANT_HOME % \ lib
Note: The PATH and CLASSPATH must be placed after the jre path, preferably at the end.
Download and install python and add it to PATH. For example, C: \ python33
An error occurs during compilation:
Error Loading ---------- jvm. dll
Because flash builder is based on eclipse and eclipse is the java technology used to run java, jre is required.
Flash builder needs to run on a 32-bit jre. If the java we installed is 64, this error will occur.
Solution
1. Download and install 32 jre
2. Edit the FLEX_HOME \ bin \ jvm. config file and set java. home
For example:
# Java. home =
Java. home = D:/ProgramFiles/Java/jre6-32
Note: FLEX_HOME refers to the flex sdk directory, for example, D: \ sdks \ 4.1.0.
If modifying this java. home item does not work, modify JAVA_HOME in the system variable. And the java. home here is restored to null.
You need to close cmd and re-open cmd to make it take effect.
Re-compile and an error occurs. \ PlayerVersion. as (5): column: 52 error: Access attribute version is not defined.
Open PlayerVersion. as and change player: version to a specific version number such as "6.12.0.
Go to logo
Modify D: \ mongoplayer-master \ src \ flash \ com \ longtailvideo \ mongoplayer \ view \ View.
Protected functionsetupComponents (): void {
Varn: Number = 0;
SetupComponent (_ components. captions, n ++ );
SetupComponent (_ components. display, n ++ );
_ Playlist = _ components. playlist;
_ PlaylistLayer. addChild (_ playlistas DisplayObject );
// SetupComponent (_ components. logo, n ++ );
SetupComponent (_ components. controlbar, n ++ );
CbLayer = n;
SetupComponent(_components.doc k, n ++ );
}
As shown above, just comment out the red code.
Right-click the about menu
Modify D: \ javasplayer-master \ src \ flash \ com \ longtailvideo \ shareplayer \ view \ RightclickMenu.
/** Initialize therightclick menu .**/
Public functioninitializeMenu (): void {
Return;
SetAboutText ();
AddItem (about, aboutHandler );
If (Capabilities. isDebugger = true | _ player. config. debug! = Logger. NONE ){
Debug = new ContextMenuItem ('logging to '+ _ player. config. debug + '...');
AddItem (debug, debugHandler );
}
}
Add return to the first line of code. As shown in red.
Remove error display information in the middle of the video
Modify D: \ Alibaba player-master \ src \ flash \ com \ longtailvideo \ Alibaba player \ view \ components \ DisplayComponent.
Protected functionerrorHandler (event: PlayerEvent): void {
// SetDisplay (getIcon ('error'), (''+ event. message). replace (": ",": \ n "));
_ ErrorState = false;
}
As shown above, if you comment out the first line of code, the error message will not be displayed, but the onError event registered during setup will still be triggered, and the error information is complete.
The second line of code is originally true, which must be changed to false. The play button is displayed. Otherwise, no buttons are displayed in the video and cannot be played again.
After the error message display is removed, we need to add code in onError to display Chinese error information and customize the display mode. The errorHandler method is executed before the onError event is triggered. Therefore, modifying the error message to Chinese in onError does not have any effect.
In addition, the file must contain Content During setup. If it does not exist, you can write it as "default. flv" by default, register the onBeforPlay event, and add an attribute to the player to indicate that there is no video. You can simply execute the stop method in onBeforPlay. However, after updating the file content, you must change the added attribute to a video. Otherwise, the video cannot be played.
Compile player after compilation. js is the debugging version,