Warning: Declaration of action_plugin_acl::register(Doku_Event_Handler $controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/acl/action.php on line 15

Warning: Declaration of action_plugin_description::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/description/action.php on line 0

Warning: Declaration of action_plugin_googleanalytics::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/googleanalytics/action.php on line 0

Warning: Declaration of action_plugin_keywords::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/keywords/action.php on line 0

Warning: Declaration of action_plugin_popularity::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/popularity/action.php on line 0

Warning: Declaration of action_plugin_safefnrecode::register(Doku_Event_Handler &$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/safefnrecode/action.php on line 0

Warning: Declaration of action_plugin_translation::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/translation/action.php on line 0

Warning: Declaration of action_plugin_authad::register(Doku_Event_Handler $controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/authad/action.php on line 0

Warning: Declaration of action_plugin_extension::register(Doku_Event_Handler $controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/extension/action.php on line 0

Warning: Declaration of action_plugin_styling::register(Doku_Event_Handler $controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/styling/action.php on line 0

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/acl/action.php:15) in /var/www/iptv.gen12/public_html/dokuwiki/inc/actions.php on line 38

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/acl/action.php:15) in /var/www/iptv.gen12/public_html/dokuwiki/lib/tpl/dokuwiki/main.php on line 12
PlayList [SimpleTV]

Инструменты сайта


mantis:simpletv:api:playlist

PlayList

error,NumberOfAdded,NumberOfRefreshed,NameAddedChannel = LoadPlayList(FileName,p,TypeMedia,SilentMode,Imulate)

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'

error,NumberOfAdded,NumberOfRefreshed,NameAddedChannel = LoadPlayList_UTF8(FileName,p,TypeMedia,SilentMode,Imulate)

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
No 
Return Value
No

id = AddItemButton(table)

Description
Add item button
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  

RemoveItemButton(id)

Description
Remove item's button
SimpleTV v.0.4.8 b9 or above  
Parameters
id returned by AddItemButton
Return Value
No

table = GetCurrentChannelInfo()

Description
return info about current playing channel 
SimpleTV v.0.4.8 b9 or above  
Parameters
none
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)
mantis/simpletv/api/playlist.txt · Последние изменения: 30/04/2016 15:06 — SergeyVS