new version of vlc.py

This commit is contained in:
rimach 2011-12-03 00:45:05 +01:00
parent 2c225c19a0
commit 8412caf006
2 changed files with 259 additions and 235 deletions

File diff suppressed because it is too large Load Diff

View File

@ -297,11 +297,12 @@ class WebkitPlayer(MediaPlayer):
def load(self, display):
log.debug(u'load vid in Webkit Controller')
controller = display.controller
if display.hasAudio:
if display.hasAudio and not controller.media_info.is_background:
volume = controller.media_info.volume
vol = float(volume) / float(100)
else:
vol = 0
print vol
path = controller.media_info.file_info.absoluteFilePath()
if controller.media_info.is_background:
loop = u'true'