PlayList
Parameters
FileName - string
p - table
p.TypeSourse = 1 - type of source (0 - mdb, 1 - m3u, 2 - xml (now is not аvailable)
p.DeleteBeforeLoad = 0 - delete all item by media mode
p.TypeSkip = 1 - 0 - skip if found, 1 - refresh if found, 2 - don't find, add always
p.TypeFind = 0 - 0 find by name, 1 find by address
p.AutoSearch = 1 - auto search logo and epg
p.NumberM3U = 1 - 1 - considers a numbers from m3u
p.Find_Group = 1 - 1 - considers a groups from m3u
p.TypeCoding = 0 - -1-auto 0 - plane text 1- UTF8 2- unicode
p.BorpasFileFormat=0
p.ExtFilter = '' - the name of extended filter
p.ExtFilterLogo = '' - the logo of extended filter (from ver. 0.4.8 b9)
p.ExtFilterLogoForce = 0 - 1- forcing set the logo of extended filter(if they not empty in DB) (from ver. 0.4.8 b9)
p.AutoNumber = 0 - auto numbering
p.UpdateID=UpdateID - unique ID of source
p.NotDeleteWhenRefresh - don't delete if a channel not present (only with UpdateID)
p.ShowProgressWindow - 1 - Show progress/cancel window
p.ProgressWindowHeader header of progress window
p.ProgressWindowHideCancel - 1 - hide cancel button
TypeMedia - int 0- channel,1-files,2-records,3-video
SilentMode - int 1 - not show error message
Imulate - boolean true - don't actual loading, only checking syntax and counting
Return Value
error - boolean false - error
NumberOfAdded - int
NumberOfRefreshed - int
NameAddedChannel - string - names of added channels ending -'$end'
Description
utf8 version of LoadPlayList
SavePlayList
Parameters
Return Value
RefreshPlayList()
Description
Deprecate, use RefreshChannelList
RefreshChannelList(ID number(opt),UpdateIMG boolean(opt))
Description
Refresh channel list from database
Parameters
ID - Id of channel, if not present do all
UpdateIMG - refresh channels image
Sample
RefreshChannelList() --refresh all
RefreshChannelList(123) --refresh id=123
RefreshChannelList(123,true) --refresh id=123 and image
table = PlaylistGetSelectedItems(number)
Description
Parameters
Return Value
boolean = PlaylistIsVisible(number)
Description
Parameters
Return Value
PlaylistShow(number,boolean)
Description
Parameters
Return Value
RefreshExtFilter()
Description
Refresh extended filter
SimpleTV v.0.4.8 b9 or above
Parameters
Return Value
Description
Parameters
Example
t.Image = 'E:\\1\\error.png'
t.EventFunction = 'ShowExtInfo_OnToolTip'
t.IsTooltip = true --opt default = false
t.Mode = 7 --opt default=7 ( bitmask 1 - main playlist 2 - OSD playlist 4 - OSD playlist fullscreen)
t.DrawOnChannel = true --opt default =true
t.DrawOnGroup = true --opt default =false
t.MediaMode = 0 --opt default -1 (-1 all, 0 - channels, 1 - files, etc)
t.AlignH = 1 --opt default 0 (0 - left,1-right )
t.ExtFilterID =2 --opt default 0
t.MaxSize =14 --opt default 0
m_simpleTV.PlayList.AddItemButton(t)
function ShowExtInfo_OnToolTip(ChannelID) --event function if t.IsTooltip = true
local header = 'Lua header'
local text = 'Lua text\nString 1\nString 2'
return header,text
end
function ShowExtInfo_OnPress(ChannelID) --event function if t.IsTooltip = false
m_simpleTV.Interface.MessageBox( '' .. ChannelID,m_simpleTV.Common.string_toUTF8('Тест'),0) --MB_OK
end
Description
Remove item's button
SimpleTV v.0.4.8 b9 or above
Parameters
id returned by AddItemButton
Return Value
table = GetCurrentChannelInfo()
Description
return info about current playing channel
SimpleTV v.0.4.8 b9 or above
Parameters
Return Value
table or nil (on error)
all strings in UTF8
fields :
Id - id from db
Name - name from db
Address - address from db
RealAddress - playing address from lua scripts
Title - title
ExtTitle - ext title (from ace and etc) may be nil
MultiIndex - index of multi address (may be nil)
MultiHeader - header of multi address (may be nil)
MultiAddress - address from multi address (may be nil)
MultiName - name from multi address (may be nil)
MultiChangeTitle - boolean - multi address may change main title (may be nil)