Jwplayer 6.12.0 compile, go to logo, go to right-click menu, go to error message display, etc.

Source: Internet
Author: User

Download First Flex SDK 4.1, preferably in a disk descriptor directory, such as D:\sdks\4.1.0

then download Ant , unzip to D under the plate, such as D : \ant-1.9

Configuring environment Variables ant_home D:\ant-1.9

PATH%ant_home%\bin

CLASSPATH%ant_home%\lib

Note: PATH and the CLASSPATH part, must be placed in JRE of the PATH after that, it's best to put it at the end.

Download and install python , and you want to add it to PATH the. such as C:\python33

An error occurred during the compilation process:

Error Loading —————————— Jvm.dll

because Flash Builder is based on Eclipse the and Eclipse is used by Java Technology Java operational Needs JRE

and Flash Builder need to run on + bit of JRE on if we install the Java is a - , then there will be such a mistake.

Solutions

1. Download the installed JRE

2. Edit the flex_home\bin\jvm.config file , set the java.home

For example :

#java. home=

Java.home=d:/programfiles/java/jre6-32

Note : Flex_home means that Flex SDK directories, such as D:\sdks\4.1.0

If you modify this entry Java.home no effect, the system variable will be Java_home modified under. and restore the java.home here to null.

need to close cmd , re-open cmd to function.

start compiling again, an error occurs, \playerversion.as (5): column : Error : Properties of Access version not defined.

will be playerversion.as Open, set jwplayer::version modified to " 6.12.0 "and other specific version numbers.

go to logo

Modify D:\jwplayer-master\src\flash\com\longtailvideo\jwplayer\view \view.as in the

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.dock,n++);

}

As above, comment out the red code.

right button. About Menu

Modify D:\jwplayer-master\src\flash\com\longtailvideo\jwplayer\view \ rightclickmenu.as in the

/** 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 in the first line of code return can be. As in the Red section.

Remove the error display information from the middle of the video

Modify D:\jwplayer-master\src\flash\com\longtailvideo\jwplayer\view\components \ displaycomponent.as in the

Protected Functionerrorhandler (event:playerevent): void {

Setdisplay (GetIcon (' Error '), (' +event.message). Replace (":", ": \ n"));

_errorstate = false;

}

as above, the first line of code is commented out, the error message will not be displayed, but will still trigger Setup when registering the OnError event, and the error message is complete.

the second line of code was originally true, here to change to false . This will show the play button, otherwise no buttons appear in the video and cannot be played again.

after removing the error message, we need to OnError Add code to display error messages in Chinese and customize how they are displayed. The ErrorHandler method is executed before the onError event is triggered, so the onError It is not useful to modify the error message in Chinese.

another: Setup when the file must have content in it. If it does not, it can be written by default as "default.flv", then register the onbeforplay event and add an attribute to the player, indicating no video, You can execute the stop method in Onbeforplay. However, remember to update the file content, you need to modify the added properties to have video, otherwise it will not play.

Jwplayer 6.12.0 compile, go to logo, go to right-click menu, go to error message display, etc.

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.