Вверх ↑
Ответов: 287
Рейтинг: 5
#1: 2017-10-25 06:34:45 ЛС | профиль | цитата
flint2,Спасибо большое.Но событие onEndPlay не происходит.

Add(MainForm,2953706,343,266)
{
Height=117
link(onCreate,13443462:doInit,[])
}
Add(BASS_Init,13443462,406,280)
{
link(onInit,10183901:doCheck,[])
link(onError,11232751:doMessage,[(459,293)(459,328)])
}
Add(BASS_StreamCreateURL,1863145,658,280)
{
Name="InetStream"
link(onCreate,7574751:doPlay,[])
link(URL,2861385:Text,[])
}
Add(BASS_Version,10183901,469,280)
{
link(onCheckFailed,109118:doMessage,[(515,293)(515,286)])
}
Add(BASS_ChannelPlay,9406897,721,329)
{
Channel="InetStream"
}
Add(Message,11232751,469,322)
{
Message="Error BASS initialization"
Caption="Error"
Icon=1
}
Add(Message,109118,525,280)
{
Message="Incorrect version of BASS library "
Caption="Error"
Icon=1
}
Add(Edit,2861385,658,231)
{
Left=10
Top=15
Width=370
Text="http://dnl10.mp3crazy.me/dl/online/1HY0UMu6RLRZR86TOM76lw/1508286033/download_music/2017/04/vitalijj-gordejj-milaja-(mp3crazy.me).mp3"
}
Add(Button,3757077,602,280)
{
Left=90
Top=45
Caption="Пуск"
link(onClick,1863145:doCreate,[])
}
Add(Button,3963193,602,322)
{
Left=170
Top=45
Caption="Стоп"
link(onClick,1863145:doDestroy,[(641,328)(641,293)])
}
Add(Message,1770236,784,287)
{
Message="Конец"
Caption="Поток"
Icon=1
}
Add(BASS_ChannelPlayEx,7574751,714,280)
{
Channel="InetStream"
link(onEndPlay,1770236:doMessage,[])
}

карма: 0

0