prise en charge du rtmp
This commit is contained in:
parent
d5ea1ffc2c
commit
16edbd9141
3 changed files with 12 additions and 9 deletions
|
|
@ -89,10 +89,11 @@ class Radioob(ReplApplication):
|
|||
return 1
|
||||
try:
|
||||
player_name = self.config.get('media_player')
|
||||
media_player_args = self.config.get('media_player_args')
|
||||
if not player_name:
|
||||
self.logger.debug(u'You can set the media_player key to the player you prefer in the radioob '
|
||||
'configuration file.')
|
||||
self.player.play(radio.streams[0], player_name=player_name)
|
||||
self.player.play(radio.streams[0], player_name=player_name, player_args=media_player_args)
|
||||
except (InvalidMediaPlayer, MediaPlayerNotFound), e:
|
||||
print '%s\nRadio URL: %s' % (e, radio.streams[0].url)
|
||||
|
||||
|
|
|
|||
|
|
@ -147,10 +147,11 @@ class Videoob(ReplApplication):
|
|||
return 4
|
||||
try:
|
||||
player_name = self.config.get('media_player')
|
||||
media_player_args = self.config.get('media_player_args')
|
||||
if not player_name:
|
||||
self.logger.info(u'You can set the media_player key to the player you prefer in the videoob '
|
||||
'configuration file.')
|
||||
self.player.play(video, player_name=player_name)
|
||||
self.player.play(video, player_name=player_name, player_args=media_player_args)
|
||||
except (InvalidMediaPlayer, MediaPlayerNotFound), e:
|
||||
print '%s\nVideo URL: %s' % (e, video.url)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue