вызов другой функции, когда Flowplayer завершения воспроизведениявызов другой функции, когда Flowplayer полная игра
Привет всем я использую FlowPlayer на моем сайте. Когда flowplayer завершает воспроизведение аудиофайла, я хочу вызвать другую функцию, которая перенаправляет меня на другую страницу.
это код:
load_player = function() {
flowplayer("player",
{
src:HOST + "app/webroot/flow_player/flowplayer-3.2.7.swf",
wmode:'opaque'
},
{
// define an advertisement using content plugin
plugins:{
content:{
url:HOST + 'app/webroot/flow_player/flowplayer.content.swf',
// plugin is initially hidden
display:'none',
// no background and decorations
backgroundGradient:'none', backgroundColor:'transparent', border:0,
// position and dimensions
bottom:0, right:0, width:0, height:0
}
},
onFinish:function() {
window.location = "first_instruction";
}
});
};
в пути функции onFinish жестко закодирован в window.location. Я хочу, чтобы он был динамичным. когда он вызывается индексной страницей, он должен перенаправить меня в first_instruction, когда он вызывается first_instruction, он должен перенаправить меня на second_instruction.
'first_instruction' не звучит как действительный URL ... или что-заполнитель в ваш пример? –