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
Control [SimpleTV]

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


mantis:simpletv:api:control

Control

Control values

GetAddress
Control.ChangeAddress
Control.CurrentAddress  
Control.ChangeAddress_UTF8
Control.CurrentAddress_UTF8    
Control.ChannelID
Control.CurrentTitle
Control.CurrentTitle_UTF8   - utf8 version of Control.CurrentTitle (from v 0.4.8 b8)
Control.EventPlayingInterval
Control.EventTimeOutInterval
Control.MainMode =  enum {STATIC_MODE=-1,NORMALWIN=0,PIPWIN,MULTIPIP,RECMODE,SCAN_MODE,SCAN_PREVIEW_MODE,SERF_MODE,TIMESHIFT_MODE}
Playing
Control.CurrentLen
Control.CurrentTime
Control.Buffering
Control.Peers
Events
Control.Reason
Control.Action
Control.ChannelID
Control.RealAddress
Record
Control.RecordChannelName   - current channel name (string_utf8)
Control.RecordEpgName       - current epg name (may be empty)  (string_utf8)
Control.RecordFileName      - current file name (string_utf8)

ExecuteAction(id)

SimpleTV ver
SimpleTV v.0.4.7 r3 (500) or above
Description
Execute Action from Control menu (Preferences)
Parameters
id - ID of Action key (type: number)
List of actions (ID)
Sample
m_simpleTV.Control.ExecuteAction(105)

PlayAddress(address string,title(opt) string)

Description
Play address

PlayAddress_UTF8(address string_utf8,title(opt) string_utf8)

SimpleTV ver
SimpleTV v.0.4.7 r8 or above
Description
utf8 version of PlayAddress

string_utf8 = GetMetaInfo(index)

SimpleTV ver
SimpleTV v.0.4.8 b8 or above
Description
get vlc meta info

number = GetState()

SimpleTV ver
SimpleTV v.0.4.8 b8 or above
Description

return current state

  libvlc_NothingSpecial=0,
  libvlc_Opening,
  libvlc_Buffering,
  libvlc_Playing,
  libvlc_Paused,
  libvlc_Stopped,
  libvlc_Ended,
  libvlc_Error

boolean = IsVideo()

SimpleTV ver
SimpleTV v.0.4.8 b8 or above
Description

boolean = SetPosition(pos(0.0 - 1.0) number)

SimpleTV ver
SimpleTV v.0.4.8 b8 or above
Description

number or nil = GetPosition()

SimpleTV ver
SimpleTV v.0.4.8 b8 or above
Description

number or nil = GetLength()

SimpleTV ver
SimpleTV v.0.4.8 b8 or above
Description
return length of media in ms or nil on error

boolean = IsSeekable()

SimpleTV ver
SimpleTV v.0.4.8 b8 or above
Description

string_UTF8 = GetTitle()

SimpleTV ver
SimpleTV v.0.4.8 b9 or above
Description

SetTitle(string_UTF8)

SimpleTV ver
SimpleTV v.0.4.8 b9 or above
Description

boolean = IsAD()

SimpleTV ver
SimpleTV v.0.4.8 b9 or above
Description
return true if current playing is AD

SetPlayRate(number)

SimpleTV ver
SimpleTV v.0.4.8 b9 or above
Description
set play rate 

number = GetPlayRate()

SimpleTV ver
SimpleTV v.0.4.8 b9 or above
Description
 get play rate 

Restart(global - boolean opt(true),pos - number opt)

SimpleTV ver
SimpleTV v.0.4.8 b9 or above
Description
 restart  current stream
Parameters
 global - true - all stream, false - only current stream(from multiaddressinfo,torrent etc, if present)
 pos - new position of the stream (opt)  

number = GetMultiAddressIndex()

SimpleTV ver
SimpleTV v.0.4.8 b9 or above
Description
 get current index from multiaddressinfo

table = GetMetaExtra()

SimpleTV ver
SimpleTV v.0.4.8 b9 or above
Description
return all extra meta info

SetBackground(info table)

SimpleTV ver
SimpleTV v.0.4.8 b9 or above
Description
Set backround in main view, example -  http://iptv.gen12.net/bugtracker/view.php?id=1018

RestoreBackground()

SimpleTV ver
SimpleTV v.0.4.8 b9 or above
Description
Set backround in main view to default

SetVolume(number vol,boolean ShowSlider(opt def=true))

SimpleTV ver
SimpleTV v.0.4.8 b9 or above
Description
vol - range 0.0 - 1.0

number = GetVolume()

SimpleTV ver
SimpleTV v.0.4.8 b9 or above
Description
return number in range 0.0-1.0 or nil on error

SetMute(number mode)

SimpleTV ver
SimpleTV v.0.4.8 b9 or above
Description
mode -  -1 - toggle,  0 - reset,  1 - set

boolean = GetMute()

SimpleTV ver
SimpleTV v.0.4.8 b9 or above
Description
return boolean or nil on error
mantis/simpletv/api/control.txt · Последние изменения: 01/07/2019 21:15 — SergeyVS