add seek to node, add get
This commit is contained in:
parent
fcd460d61a
commit
aaf7cf2b5c
@ -73,7 +73,7 @@ class GetSourceFromPlaylist:
|
|||||||
self.seek, self.out, self.first, self.last
|
self.seek, self.out, self.first, self.last
|
||||||
)
|
)
|
||||||
|
|
||||||
self.node['in'] = self.seek
|
self.node['seek'] = self.seek
|
||||||
self.node['out'] = self.out
|
self.node['out'] = self.out
|
||||||
|
|
||||||
def last_and_next_node(self, index):
|
def last_and_next_node(self, index):
|
||||||
@ -161,9 +161,9 @@ class GetSourceFromPlaylist:
|
|||||||
|
|
||||||
# loop through all clips in playlist and get correct clip in time
|
# loop through all clips in playlist and get correct clip in time
|
||||||
for index, self.node in enumerate(self.clip_nodes['program']):
|
for index, self.node in enumerate(self.clip_nodes['program']):
|
||||||
self.seek = get_float(self.node['in'], 0)
|
self.seek = get_float(self.node.get('in'), 0)
|
||||||
self.duration = get_float(self.node['duration'], 20)
|
self.duration = get_float(self.node.get('duration'), 20)
|
||||||
self.out = get_float(self.node['out'], self.duration)
|
self.out = get_float(self.node.get('out'), self.duration)
|
||||||
|
|
||||||
# first time we end up here
|
# first time we end up here
|
||||||
if self.first and \
|
if self.first and \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user