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}
Timeshift.EpgOffsetRequest
Timeshift.EpgId
Playing
Control.CurrentLen
Control.CurrentTime
Control.Buffering
Control.Peers
Events
Control.Reason
Control.Action = "dodefault"|"repeat"|"stop"|"nothing"
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)
Execute Action from Control menu (Preferences)
id - ID of Action key (number or string from version 0.5 b12.7.6)
list of actions
Sample
m_simpleTV.Control.ExecuteAction(105)
or from version 0.5 b12.7.6
m_simpleTV.Control.ExecuteAction('KEY_OPEN_URL')
number = GetState()
return current state
libvlc_NothingSpecial=0,
libvlc_Opening,
libvlc_Buffering,
libvlc_Playing,
libvlc_Paused,
libvlc_Stopped,
libvlc_Ended,
libvlc_Error
boolean = IsVideo()
boolean = SetPosition(pos(0.0 - 1.0) number)
number or nil = GetPosition()
boolean = SetRawPosition(pos(0.0 - 1.0) number)
from version 0.5.0 b12.7.6
set position directly(skip all filters(like timeshift etc)
pos(number or nil),lenght(number or nil) = GetRawPosition()
from version 0.5.0 b12.7.6
get position, length directly(skip all filters(like timeshift etc)
number or nil = GetLength()
return length of media in ms or nil on error
boolean = IsSeekable()
string_UTF8 = GetTitle()
SetTitle(string_UTF8)
boolean = IsAD()
return true if current playing is AD
SetPlayRate(number)
number = GetPlayRate()
PlayAddressT(params table)
local t = {}
t.address = '' utf8 string
arbitrary address or
$InternationalID=xxx[address][$OPT:yyy]
xxx - channel id
address - if specified then will be replaced channel address
$OPT:yyy - if specified then will be added to channel address
t.title opt,by default empty
t.timeshiftOffset opt,by default 0 (ms, unsigned)
t.epgId opt,by default -1
t.position opt,by default -1.0
t.insertInRecent opt,by default true
Restart(global - boolean opt(true),pos - number opt)
global - true - all stream, false - only current stream(from multiaddressinfo,torrent etc, if present)
pos - new position of the stream (opt)
index,id = GetMultiAddressIndex()
get current index and id from multiaddressinfo
SetMultiAddressId(Id number)
set current id to multiaddress
SetMultiAddressIndex(Index number)
set current index to multiaddress
return all extra meta info
SetVolume(number vol,boolean ShowSlider(opt def=true))
number = GetVolume()
return number in range 0.0-1.0 or nil on error
SetMute(number mode)
mode - -1 - toggle, 0 - reset, 1 - set
boolean = GetMute()
return boolean or nil on error
SetNewAddressT(param - table)
param.address (empty string - use old address)
param.position (-1)
param.timeshiftOffset number(0)
param.epgId number(-1))
table = GetCurrentChannelInfo()
return value t
t.["Id"] - channelID
t.["Name"]
t.["Title"]
t.["Address"]
t.["Logo"]
t.["RealAddress"]
t.["MultiSize"]
t.["MultiIndex"]
t.["MultiHeader"]
t.["MultiChangeTitle"]
t.["MultiAddress"]
t.["MultiName"]
t.["MultiTable"] = {
[0] = {
["Id"]
["Name"]
["Checked"]
["Address"]
}
....
}
ChangeChannelName(newName stringUTF8,channelId number,tryFindEpg - boolean(optional,by default false))
ChangeChannelLogo(newLogo stringUTF8,channelId number,type - string(optional,by default 'CHANGE_IF_EMPTY'))
type - 'CHANGE_IF_EMPTY'
'CHANGE_IF_NOT_EQUAL'
'CHANGE_ALWAYS'
SetChaptersDesc(param table)
t = {}
t.allTime - optional (auto)
t.current - optional (1)
t.chapters = {}
t.chapters[1].name - string
t.chapters[1].seekpoint - number
....
t.chapters[n].name
t.chapters[n].seekpoint
Deprecated, use PlayAddressT()
PlayAddress(address string,title string(""),timeshiftOffset number(0),insert_in_recent boolean(true))
PlayAddress_UTF8
utf8 version of PlayAddress