update eaf package
This commit is contained in:
@@ -31,6 +31,8 @@ class AppBuffer(Buffer):
|
||||
def __init__(self, buffer_id, url, config_dir, arguments, emacs_var_dict, module_path):
|
||||
Buffer.__init__(self, buffer_id, url, arguments, emacs_var_dict, module_path, True)
|
||||
|
||||
self.background_color = QColor(0, 0, 0)
|
||||
|
||||
self.add_widget(VideoPlayerWidget())
|
||||
self.buffer_widget.play(url)
|
||||
|
||||
@@ -99,12 +101,12 @@ class VideoPlayerWidget(QWidget):
|
||||
self.media_player.setMedia(QMediaContent(QUrl.fromLocalFile(url)))
|
||||
self.media_player.play()
|
||||
|
||||
@interactive()
|
||||
@interactive
|
||||
def play_forward(self):
|
||||
video_position = self.media_player.position()
|
||||
self.media_player.setPosition(video_position + self.video_seek_durcation)
|
||||
|
||||
@interactive()
|
||||
@interactive
|
||||
def play_backward(self):
|
||||
video_position = self.media_player.position()
|
||||
self.media_player.setPosition(max(video_position - self.video_seek_durcation, 0))
|
||||
|
||||
Reference in New Issue
Block a user