Playback: Open videos in external player for now
This commit is contained in:
parent
9b9c70b99a
commit
f816b37f47
2 changed files with 7 additions and 0 deletions
|
@ -48,6 +48,12 @@ MediaPlayer {
|
|||
player.stop();
|
||||
|
||||
py.call('main.play_episode', [episode_id], function (episode) {
|
||||
if (episode.video) {
|
||||
player.inhibitPositionEvents = false;
|
||||
Qt.openUrlExternally(episode.source);
|
||||
return;
|
||||
}
|
||||
|
||||
// Load media / prepare and start playback
|
||||
player.episode = episode_id;
|
||||
player.source = episode.source;
|
||||
|
|
1
main.py
1
main.py
|
@ -263,6 +263,7 @@ class gPotherSide:
|
|||
else episode.url,
|
||||
'position': episode.current_position,
|
||||
'total': episode.total_time,
|
||||
'video': episode.file_type() == 'video',
|
||||
}
|
||||
|
||||
def report_playback_event(self, episode_id, position_from, position_to, duration):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue