Control

Control values

GetAddress
Control.ChangeAdress
Control.CurrentAdress  
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.RealAdress
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
Зашли как: Anonymous (Anonymous)
mantis/simpletv/api/control.txt · Последние изменения: 20/01/2016 11:18 — SergeyVS
 
За исключением случаев, когда указано иное, содержимое этой вики предоставляется на условиях следующей лицензии: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki