Re: [Rhythmbox-devel] start player with 'play queue' as source
- From: Jonathan Matthew <jonathan d14n org>
- To: rhythmbox-devel gnome org
- Subject: Re: [Rhythmbox-devel] start player with 'play queue' as source
- Date: Sat, 2 Jan 2010 13:05:55 +1000
On Sat, Jan 2, 2010 at 11:04 AM, Ron Croonenberg <ronc depauw edu> wrote:
> Hello,
>
> I am trying to figure out how to get the player started (in python) with as
> source for playing songs/tracks the 'play queue'
I don't think there's a (good) way to do that presently. You can
probably make it work in some conditions, though. What's the end goal
here?
>
> I tried something like this:
>
> shell.props.shell_player.set_playing_source(shell.props.playqueue_source)
It might be better to stop playback instead. Then, selecting a source
and starting playback will cause that to become the playing source.
> shell.props.sourcelist.select(shell.props.playqueue_source)
This will crash if the play queue is visible as a side pane rather
than a source.
> shell.props.shell_player.play()
shell.props.shell_player.playpause() might work better here.
shell_player.play() only works if there's already something selected
for playback, so it's not very useful.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]