Re: [Rhythmbox-devel] start player with 'play queue' as source

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

> 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.


This will crash if the play queue is visible as a side pane rather
than a source.


shell.props.shell_player.playpause() might work better here. 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]