FMPlayer Component Description

FMPlayer Component Description
A, Version : the v0.5
Second, the assembly parameters :
Third, the need Flash Player 8.0 or later to support
four component method description :
I. Method
    a) setAutoPlay (auto: Boolean) : Void
        Setting the auto playback function;
    B) Load (path: String): Void
        load media files;
    C) Play (): Void
        playing a media file;
    D) PAUSE (): Void
        pauses media video;
    E) sTOP (): Void
        stop media video;
    F) Close (): Void
        Close media player;
    G) setPlayheadTime (T: Number The): Void
        set the play time percentage, in the range (0 <t < . 1);
    H) isPlaying (): Boolean
        returns the current state of play;
    I) the setVolume (V: Number The): Void
        set the volume range (0 <= V <= 100);
    J) getVolume (): Number The
        Get current playback volume;
    K) getPlayUrl (): String
        Gets the currently playing media file path;
    L) the getPosition (): Number the
        Get the number of seconds of the current time of playing media files;
    m) getDuration (): Number The
        acquires the total number of seconds the currently playing media file;
    n-) TRIM (str: String): String
        removed string str ends spaces;
    O) LTRIM ( str: string): string
        removed string str left spaces;
    P) RRIM (str: string): string
        removed string str right spaces;
    Q) toMTime (T: number The): string
        of 10: 20.5 shows the number of times forms;
    R & lt ) toTime (t: number): String
        amount of time displayed in the form of 10:20;
II listener event
    a) start ()
        start buffer;
    B) play ()
        to start playback;
    C) pAUSE ()
        to pause playback;
    D) STOP ()
        to stop playback;
    E) complete ();
        playback is complete;
    F) Progress (et: Object)
        Play progress;
        et.data to progress, in the range (0 <= et.data <=. 1)
    G) Time (et: Object);
        current playback time and total time value;
        et.data.position is currently playing time value (in seconds);
        et.data.duration total time value (in seconds);
    H) error ();
        media file is no error;
    I) playerror ()
        media player control error;
    J) Status (et: Object)
        playback state coder;
        et.data status code
V. Function :
    1, can customize the player interface;
    2, the player can support MediaPlayer supported media file;
    3, player components required to support MediaPlayer the ActiveX controls, currently only supports IE browser;
    4, control and real-time display playback progress, you can control playback volume;
six examples of the effect of the picture :
 Original Address [url] http://www.klstudio.com/post/101.html [/ url]

Reproduced in: https: //my.oschina.net/u/585111/blog/219445

Guess you like

Origin blog.csdn.net/weixin_33712881/article/details/92008285