• english so bad! *sad* *sad* *sad*

    video layer not working!
    hotspot and layer use same .flv

    test url:
    http://demo.cd168.cn/aoling/

    1、
    <hotspot name="Vanilla" style="cssVideo1" videourl="%FIRSTXML%/files/athousandyear.flv" ath="47.9585" atv="2.27474" width="279" height="147" rx="1.93477" ry="42.6124" rz="0.153884" />

    2、
    <style name="cssVideo1" devices="all" url="%SWFPATH%/plugins/videoplayer.swf" alturl="%SWFPATH%/plugins/videoplayer.js"
    capture="false" distorted="true" range="135" buffertime="0.2" outofrangevolume="0.2" pausedonstart="false" loop="true"
    onhover="showtext('open player', worksText)"
    onclick="send2mplayer(get(videourl))"
    />

    3、
    <action name="send2mplayer">
    pause();
    fadein(ctVideo, 1.0, 1.0);
    set(rusumeVideo, get(name));
    set(hotspotTime, get(time));
    freezeview(true);
    if(layer[mplayer].videourl == %1,
    layer[mplayer].play();,
    layer[mplayer].playvideo(%1);
    );
    if(hotspotTime GT 5,
    sub(hotspotTime, 5);
    layer[mplayer].seek(get(hotspotTime))
    );
    </action>

    4、
    <layer name="mplayer" url="%FIRSTXML%/plugins/videoplayer.swf" alturl="%FIRSTXML%/plugins/videoplayer.js"
    capture="true" handcursor="false" zorder="2" align="top" x="0" y="25" width="960" height="540"
    pausedonstart="false" loop="false" volume="1.0" buffertime="0.3" ignoremetadata="true" updateeveryframe="true"
    onvideoready="sync"
    onvideocomplete="mplayer_stop"
    onover="screen_mouse(over)"
    onout="screen_mouse(out)"
    sync="syncTime()"
    videourl=""
    />

    5、
    <action name="syncTime"></action>


    Edited once, last by redgull (May 23, 2014 at 7:37 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!