Enumeration
#Window
#WebGadget
EndEnumeration
OpenWindow(#Window,0,0,480,600,"Онлайн TV",#PB_Window_SystemMenu|#PB_Window_ScreenCentered)
SetWindowColor(0,RGB(0, 0, 0))
;{/////////////////////////////////Кнопки каналов//////////////////////////////////////////////////
HyperLinkGadget(31, 25, 390, 190, 15, "Вести ( Russia | Новости )", $ffffff )
HyperLinkGadget(32, 25, 410, 190, 15, "РТР-Планета ( Russia | Новости )", $ffffff )
HyperLinkGadget(33, 25, 430, 190, 15, "Первый ( Russia | Новости )", $ffffff )
HyperLinkGadget(34, 25, 450, 190, 15, "EuroSport ( Russia | Спорт )", $ffffff )
;/////////////////////////////////////////////////////////////////////////////////////////////////
HyperLinkGadget(35, 270, 390, 190, 15, "O-TV ( Ukraine | Музыка )", $ffffff )
HyperLinkGadget(36, 270, 410, 190, 15, "Корбина ТВ ( Russia | Музыка )", $ffffff )
HyperLinkGadget(37, 270, 430, 190, 15, "A-ONE ( Russia | Музыка )", $ffffff )
HyperLinkGadget(38, 270, 450, 190, 15, "MTV ( Russia | Музыка )", $ffffff )
HyperLinkGadget(39, 270, 470, 190, 15, "icq tv онлайн ( Russia | Музыка )", $ffffff )
;/////////////////////////////////////////////////////////////////////////////////////////////////
HyperLinkGadget(40, 25, 490, 190, 15, "Твой строй ( Russia | Научный )", $ffffff )
HyperLinkGadget(41, 25, 510, 190, 15, "NASA TV ( Eng | Научный )", $ffffff )
;/////////////////////////////////////////////////////////////////////////////////////////////////
HyperLinkGadget(42, 270, 510, 190, 15, "Первый Игровой ( Russia | Образов)", $ffffff )
HyperLinkGadget(43, 270, 530, 190, 15, "Discover Greece ( Russia | Образов)", $ffffff )
HyperLinkGadget(44, 270, 550, 190, 15, "Nat Geo WILD ( Russia | Образов)", $ffffff )
HyperLinkGadget(45, 270, 570, 190, 15, "National Geograph ( Russia | Образов)", $ffffff )
;/////////////////////////////////////////////////////////////////////////////////////////////////
HyperLinkGadget(46, 25, 550, 190, 15, "Comedy Club ( Russia | Юмор )", $ffffff )
HyperLinkGadget(47, 25, 570, 190, 15, "НСТ ТВ ( Russia | Юмор )", $ffffff )
;}/////////////////////////////////////////////////////////////////////////////////////////////////
For h=31 To 47
SetGadgetColor(h, #PB_Gadget_FrontColor, $5C5C5C) ;цвет
SetGadgetColor(h, #PB_Gadget_BackColor, $000000) ;фон
Next h
Procedure TV_File(pol.s, str.s)
;{---------Загрузка изобр.--------------------------------
Buffer$=Space(512)
GetFullPathName_(str.s, Len(Buffer$),@Buffer$,@FilePart)
img$ = PeekS(@Buffer$)
;}--------------------------------------------------------
Html.s
Html + ""
Html + ""
Html + ""
Html + ""
Html + ""
Html + ""
SetGadgetItemText(#WebGadget, #PB_Web_HtmlCode, Html)
EndProcedure
Procedure TV_File_2(pol.s)
Html.s
Html + ""
Html + ""
Html + ""
Html + ""
SetGadgetItemText(#WebGadget, #PB_Web_HtmlCode, Html)
EndProcedure
;{------------------------Web Плеер------------------------------------------
;{---------Загрузка изобр.---------------------------------------------------
FileName$="imgs/img_3.png"
Buffer$=Space(512)
GetFullPathName_(FileName$,Len(Buffer$),@Buffer$,@FilePart)
img$ = PeekS(@Buffer$)
;}---------------------------------------------------------------------------
Html.s
Html + ""
Html + "
"
Html + "
"
Html + "
Выбери телеканал
"
Html + "
"
WebGadget(#WebGadget,5,5,480,380,"about:blank",#PB_Web_Mozilla)
While GetGadgetAttribute(#WebGadget, #PB_Web_Busy) <> 0
While WindowEvent()
Delay(0)
Wend
Wend
SetGadgetItemText(#WebGadget, #PB_Web_HtmlCode, Html)
;}----------------------------------------------------------------------------
Repeat
Event= WaitWindowEvent()
Window=EventWindow()
Gadget=EventGadget()
Select Event
Case #PB_Event_Gadget
Select EventGadget()
Case 31
TV_File("http://www.vesti.ru/video1.asx?vid=onair","imgs/вести_2.png")
Case 32
TV_File("mms://live.rfn.ru/rtr-planeta_128","imgs/РТР-Планета.png")
Case 33
TV_File("http://www.1tv.ru/owa/win/ort6_itv.asx_file_z?p_ch=1tvdoc&p_bt=500","imgs/первый_канал.png")
Case 34
TV_File("http://a1439.l3192233438.c31922.g.lm.akamaistream.net/D/1439/31922/v0001/reflector:33438","imgs/EuroSport.png")
Case 35
TV_File("http://212.26.146.148/asxgen/wmtencoder/otv","imgs/O-TV.png")
Case 36
TV_File("mms://85.21.138.210/mclips4","imgs/Корбина.png")
Case 37
TV_File("http://www.aillin.ru/stream/aone2_client_sl","imgs/a_one.png")
Case 38
TV_File("http://76.73.49.218/mtvl2j3nkj34?MSWMExt=.asf","imgs/mtv_1.png")
Case 39
TV_File("http://s52wm.castup.net/995090001-52.wmv?ct=RU&rg=EE&aid=509&st=0&ts=0&cu=EBE016AC-731E-4F23-B225-31AC8EF602B3","imgs/icq.png")
Case 40
TV_File("mms://212.1.238.70/ts_tv4","imgs/Твой-строй.png")
Case 41
TV_File("http://playlist.yahoo.com/makeplaylist.dll?id=1369080&segment=149773","imgs/NASA.png")
Case 42
TV_File("mms://217.20.164.164:8000/1gtv.asf","imgs/Первый-Игровой.png")
Case 43
TV_File("mms://84.254.38.223:35900","imgs/discovery.png")
;----------------------------------------------------------------
Case 44
TV_File_2("http://nashgorod.pnz.ru/xxx/Nat_Geo_Wild.js")
Case 45
TV_File_2("http://nashgorod.pnz.ru/xxx/National_Geo.js")
Case 46
TV_File_2("http://nashgorod.pnz.ru/xxx/Comedy_Club.js")
Case 47
TV_File_2("http://nashgorod.pnz.ru/xxx/NST.js")
EndSelect
EndSelect
If Event=#PB_Event_CloseWindow
Break
EndIf
ForEver