full listings » Playback


Stop after track kattla

Allows you to stop playback after a specific track.


Stop after track



Description

This add-on adds a "Stop after this track" menu item to the tracks in your playlists.

Note:
If you are using Now Playing List you might need to hide and unhide the display pane after application startup for the menu item to appear in it's context menu. (If you have a fix for this please give me :-)




Release Notes

Rewritten to use custom sequence generators. Hopefully it is a bit more robust then using playbackControl inside of event handlers.
This fixes the bug where playback advances to the next track before stopping, and hopefully it fixes the accompanying crash too.




Images

(1)
  • Stop-after-track_thumbnail
 

Comments

(55)


mark32
mark32

Does exactly what it says, although I’m not using it with the Now Playing List extension.

over 4 years ago
mark32
mark32

Spoke too soon. Songbird just crashed after I tried to play another song immediately after the previous track had been stopped with this add-on. I noticed that the first time I used the function it advanced to the next track but then stopped playback before the track had started. (The Stop button was grayed-out.) However, the second time I used the function (the time it crashed), it advanced to the next track, didn’t play it, but didn’t actually stop playback either. (The Stop button was still lit up.) Once I double-clicked on a different track to play it, Songbird crashed and had to restart. Hope this is helpful in debugging.

over 4 years ago
kattla
kattla

Hmm... Mediacore is messy. I've uploaded a version that might fix the problem. Please try it and tell me if you still experiences the crash.

over 4 years ago
mark32
mark32

Thanks for the quick update! I’ve been testing for an hour now and haven’t been able to duplicate a crash since I installed the new version. Works like a champ!

over 4 years ago
Cato62
Cato62

Working as advertised! Very handy extension. Great job!

over 4 years ago
rolans
rolans

For me only that one option appears when I right click on the song.
I'm using Now Plaing so maybe it has something to do with that.

over 4 years ago
kattla
kattla

Hi rolans,
I'm not sure I understand what you mean. Do you mean that when you right click on a file you see the option "Stop after this track" but you see none of the things that used to appear before you installed the add-on?
I have Now Playing List installed too, so it shouldn't cause a problem. But to be sure you can try to temporarily disable Now Playing List and restart songbird to see if the problem still remains.

over 4 years ago
rolans
rolans

Yeah that's what I meant.
I'll try it with other addons and see if it's affected by any.

over 4 years ago
rolans
rolans

Yes it's definitely caused by the Now Playing List.
I'm running it on XP, so that build isn't quite stable yet.
Disabling Now Playing List causes your add-on to run fine.
I don't think it's a problem on your side.

over 4 years ago
nickm
nickm

Ah yes, context menus are quite a pain to code. You can have a look at the source for my More of the Same addon and try doing it that way. I remember it wasn't playing nice with the Now Playing addon until I changed the way I created the context menu.

over 4 years ago
orbanbalage
orbanbalage

Hey, thanks, I was missing this from Songbird. Would it be possible to add a key shortcut for it as well? Like in Winamp (Ctrl+V for example).

ps.
Grab and Drag 2.7.4 could not be installed because it is not compatible with Songbird 1.1.0pre.

over 4 years ago
kattla
kattla

Hi orbanbalage,

I might be able to add a key shortcut (haven't looked into it before, but it looks doable).
Don't Ctrl+V usually stand for 'paste'? Is it not confusing to use it to mean 'stop after track' too? And should it mean 'stop after current playing track' or 'stop after selected track'?
If you (or anyone) answers these questions, I will do my best to implement it.

(Also, what is 'Grab and Drag'?)

over 4 years ago
kattla
kattla

Hi nickm,

I feel kind of apathetic towards context menus at the moment. But I might poke at it a bit during the next release and hope it fixes rolans problem without blowing up in my face.

over 4 years ago
orbanbalage
orbanbalage

@kattla

sorry, wrong copypaste probably :S

true it is commonly paste, but it causes no issues in winamp though:
"Ctrl+V Stop after current track"
=> http://blog.winamp.com/2008/08/14/keyboard-shortcuts/

over 4 years ago
miden
miden

Hi,
Excellent extension, and works well for me (got a great tip form boosh)...BUT is it possible to incorporate ad" batch process" where all files can be tagged at once rather than having to do it manually for each file?

Anyhoo, still a great extension and thanks

about 4 years ago
miden
miden

Just a couple of problems however in the realtime running...1. It doesn't skip to the next track, and 2. It loses the Stop after this track tag after the song has played, so a user would have to re-tag every file again, and again, and again.. be cool if these two things could be addressed... Be a really useful add-on then.

about 4 years ago
miden
miden

Any response Kattla?

As I said it needs to skip to the next song after the track has stopped, so using say the spcae bar (default stop/start) you can then instantly start teh next song without having to arrow down first.

Also once a file is tagged, it should STAY tagged...At the moment it loses the tag after playing?? Anyway, any advice on whether these can be fixed would be appreciated.

about 4 years ago
kattla
kattla

Hi miden.

Sorry for the absence.

The intended use case for this add-on was something like this: I realize I really should go out to the store before they close, but I just want to finish listening to this song first. It is a delayed form of stopping playback. And it's a temporary thing, when I at a later date plays the same playlist I want the whole thing to be played unless I say otherwise.

It sounds like you want a mode of playback that always pauses between each track. Have I understood that correctly?

I am not using songbird at the moment, so if someone wants to have a go at improving any of my add-ons or take over maintaining them, I very much encourage you to do so.

about 4 years ago
miden
miden

Hi Kattla,

Thanks for replying.

Yes, it is this function I used most in Winamp. I use the player to play MP3 backing tracks (of my own creation from midis, again my own creations) in a live situation. And Songbird, as does Winamp also allows a seperate window for album art with which I have embedded bmp images of chord charts. It is why I favour it. The ability for the palyer to stop at the end of a song, and then automatically jump to the next track in playlist is vital.

I am totally new to Linux (heavy Windows user) and have NO idea on installing the other Linux players. Songbird is a nice easy DEB (so there is no compiling etc etc) package that just happened to be similar to Winamp.. When I saw your extension I thought great!!! But as I said in an earlier post if someone could just tweak it a little bit to do those things [stop at the end of a track and load, but not start the next track..AND to remember the tag instead of losing every time Songbird is restarted] that would be Excellent!!!

Anyway again thanks for your reply and I hope that explains it a little better.

about 4 years ago
miden
miden

Well I have had an attempt to try and figure out this code. But after reading lots on javascript and XUL, and tyring to use the extensions tools in songbird, I still really have no idea. IS there any way Kattla that you could at least change the code so the song "remembers" the setting of this extension? At the moment once the song is finished it reverts back to automatically advancing again??

Thanks
Dennis

about 4 years ago
kattla
kattla

Hi, i have uploaded an experimental version here: http://hcoop.net/~kattla/stop-after-track-0.1.3pre.xpi
I have added an option to not forget the state of a track after it is played. It is still forgotten if you restart songbird though.
I also added an option to stop after all tracks.
It still does not advance to the next track, to implement that I'd need to fix some related things first.

about 4 years ago
miden
miden

Kattla.... LEGEND!!! I will download that now. If you can figure out a way for it to be saved after Songbird closes would be excellent. Probably only need that to work within a specified playlist??
I don't even mind having to set up each song individually, doesn't need to be a "batch" operation.

I, for one, REALLY appreciate your efforts on this. Over the past days I think I have loaded up ALL the available Linux players, and Songbird is the best for me!! As I said i.a.p. all this programming stuff was "gobbledy-gook" to me :)

Thanks
Dennis

about 4 years ago
miden
miden

Hi Kattla, sorry, just tried that. It still "forgets" the setting when the song stops. It works in that it does not proceed to the next track, but the song still does "remember" the setting.

Just thought I would let you know. Unless of course I am doing something wrong (very possible).
But I followed the usual method for importing it into Songbird, just drag and drop the XPI onto the Songbird interface.

Dennis

about 4 years ago
miden
miden

OOPS!!! My bad big time... Jut re-read your post Kattla, especially the parts where you said added options... Just re-loaded Songbird and under the Tools-Options I found where this is set!

I just used the mouse "right-click"....

This now works brilliantly!!! Now if ONLY you could get it to "remember" when Songbird is re-started.... Maybe the guys from Songbird could help out here? I might post that question at the Get Satisfaction site.

Great Work Kattla!!

Dennis

about 4 years ago
kattla
kattla

Retaining the information across a re-start brings up the question of how to store it. Technically I could store it the same way preferences are stored (i think), but I'm pretty sure that would be the wrong thing to do. I am quite out of the loop regarding add-on development, so if you find advice from someone knowledgeable it would be very helpful =)

about 4 years ago
miden
miden

Hi Kattla,

I posted this over at the Get satisfaction site, and specifically asked if one of the Songbird reps could look at that question and perhaps lend a hand?

Also I am going to vote for it again :)

Great add-on..

Cheers
Dennis

about 4 years ago
miden
miden

Oh and so far so good with the 0.1.3 version, still stable :)

about 4 years ago
miden
miden

And I did forget to say, I asked it to import a new full mp3 list, and somehow ALL the songs automatically were tagged, "Stop After This Song" AND, when I re-opened the list (re-started songbird too) all the songs were still tagged. Did it 4 times.

So all we need is to advance to the next song and pause YAY!!!

Dennis

about 4 years ago
kattla
kattla

Sounds like you activated the 'stop after all tracks' option. With that active there is no need to remember anything because it will stop after all tracks anyway. Is this enough, or do we still have a problem when restarting songbird?

When implementing this add-on my first approach was to handle mediacore events and stop playback when appropriate. That approach proved surprisingly buggy, it even caused crashes for some! It did advance to the next track before stopping though.

My second approach was to use custom mediacore sequence generators. But that API was not implemented in songbird 1.0. I lucked out though in that the absence of any implementation caused songbird to continue playing the current song and then stop, which was exactly what I wanted anyway! There is a problem though in that songbird can't translate the currently playing song into a playlist position, which means that sometimes the wrong song is marked as playing in the playlist. It also caused me problems when I tried to implement advancing to the next track.

Now in songbird 1.1 it looks like custom sequences are finally implemented. However I can't seem to figure out how to use them, nothing I do seems to have any effect.

Now back to the issue of advancing to the next track, I see three options:
 1. Resurrect the original approach. I would probably need a lot of help fix the fickleness and fragility of it though.
 2. Get help with how to use custom sequences.
 3. Keep the way it works right now and add code to work around the problems. This seems like the most ugly and hackish solution, but it also looks most feasible to me right now.

about 4 years ago
miden
miden

Hi Kattla,

I got a response from Boosh, now this makes no sense to me but it might to you.....

[So it looks like all you need now is to move to the next track after its done playing. kattla should now how to do that, (all you need to do is use the next() command in the sbIRemotePlayer.idl library).]

Still so far so good Kattla and I still have not had it crash. Having it advance to the next song in the list would be good.

I will muck around with a few playlists now to ensure it all works with them too. So far I have only applied to the main library.

Dennis

about 4 years ago
miden
miden

Oh and in direct answer to your first question: No problems in re-starting Songbird so far. With both the options selected. I have nto re-booted the PC yet, just closed and re-started Songbird. But I think it will be fine.

D

about 4 years ago
miden
miden

Okay, just did some playlists. It still works, but what I have found is that you cannot manually stop the song. Example dbl clicking on a new track loads up the album art and I assume the track, but does not cause the current playing track to unload. It stops the current playing song, but you cannot load a new song UNTIL you let the current one finish.

This MAY have occurred using the main list, but I have not actually tried to stop a song mid-way to jump to a new one before, so maybe it was there all along??

Doesn't bother me as its not something I would do, but it might affect others. If you let the song play out, the XPI and Songbird function as expected.

Dennis

about 4 years ago
miden
miden

So Kattla, I will be taking this to a gig tomorrow (Saturday our time) and we will see how it goes there. I have a backup just in case.. ;)

D

In case you were wondering, I will be using Songbird to play my backing (self created from midis) MP3 tracks. It has the easiest to use album art, which is what I use for chord charts, out of ANY of the major linux players.
bfn

about 4 years ago
kattla
kattla

Sadly boosh's advice does not work in this case because of the messed up way it is implemented. I've got some ideas though - I will have something new for you to test soonish.

about 4 years ago
kattla
kattla

Also I am aware of the problem with manually changing the song. (Pausing / Stopping the currently playing song should always be possible though, please tell me if that is not true)
I will look into this further.

about 4 years ago
kattla
kattla

Hi I have uploaded a new version, this one should advance to the next track after stopping:
http://hcoop.net/~kattla/stop-after-track-0.1.3pre2.xpi

about 4 years ago
kattla
kattla

I might have spoken to soon, here is another one:
http://hcoop.net/~kattla/stop-after-track-0.1.3pre3.xpi

about 4 years ago
miden
miden

Thanks Kattla,
I will try that new one... awesome..will let you know how it goes.

D

about 4 years ago
miden
miden

Okay this now advances to the next song, but the tags don't get loaded? It plays the next song in the list with no problems EXCEPT the tags from the first song in the list stay static for all the songs.

Also the mouse click on a song does not load it, after the first song. IE I can dbl click the first song to play when Songbird first opens, but after that the mouse has no effect.

Kattla perhaps there are still too many "internal" bugs in Songbird to get XPI's like this, especially ones involving "Play" characteristics to allow your add-on to work properly???

I have been reading there are still quite a few bugs in it, so maybe its this. I don't know as I am not a programmer.

Dennis

about 4 years ago
kattla
kattla

I don't understand what you mean by 'tags'. Could you please explain?

Yes, I am aware about the inability to change song when the current song is set to be stopped after. (Don't know exactly what to do about it right now)

You might be right about songbird having to much internal bugs.

Also, coding in javascript is incredibly painful =)

about 4 years ago
miden
miden

Sure, the tags are where the extra data about a track is stored, like artist, title, album art etc etc
And I use the album art tag to store the chord charts to go along with the song, so I need these to load when the next song is chosen.

BUT, there is a work around as I noticed the "focus" bar on each track can be scrolled down the list using the down arrow on the keyboard, and as it does this it loads up the tags (well the album art at least)...SO with a combination of your XPI and using this method I can have songbird load up the next song using your XPI, whilst I manually call up the next songs' tags... Works okay too..

LOL, when I read your comment about coding in JS... I opened one, took one look at the first 2 lines and then said, "Nope...not fer me!!" .

It might be best to wait for future versions of Songbird.....Seems the Songbird staff are nto too interested in getting involved with peeps like you who do this extra work. I had to psot 3 times at the other place before the rep answered, and then apart from his "tip" which I passed on to you (turned out useless) he just said to leave you to your own workings as he is sure you would come up with a solution one day!!

Kattla thanks heaps for all you have done, I, for one, really, REALLY appreciate it. AND I can get it to work so its all good. I think the issues are now at Songbirds end, fwiw.

Take care,
Dennis

about 4 years ago
sceptre0
sceptre0

Any plans to support 1.1.2? I tried installing installing the extension and songbird became very unstable. Thanks.

about 4 years ago
EEKaWILL
EEKaWILL

It works in 1.1.2 all you need to do is download the .xpi file and unzip the install.rdf file and look for <em:maxversion>1.1.0a</em:maxversion> and change it too <em:maxversion>1.1.2</em:maxversion> that's all i did and it works for me

about 4 years ago
EEKaWILL
EEKaWILL

I was wondering if you could add the option to Play track after current track as well as stop after track

almost 4 years ago
Marko
Marko

Hi Kattla,

how about updating for current player versions?

Feature request:
Hotkey: "Strg + V" for Stoping after current track

Thx Marko

over 3 years ago
Marko
Marko

please PLEASE update!

almost 3 years ago
kattla
kattla

Hi, like I've said in http://addons.songbirdnest.com/addon/1430 I do no longer use songbird (and probably couldn't If I wanted to since they've removed linux support). I will not be updating this add-on. Sorry.

almost 3 years ago
Marko
Marko

works with Songbird 1.7.3 (as far as I use the addon), when using the following:

using the SB-dev-addon or hack in about:config : extensions.checkCompatibility = false

almost 3 years ago
shippman
shippman

This addon appears to NOT compatible with songbird on a mac... is there another addon that works on the mac version?

over 2 years ago



Download
Log in to Rate

Statistics
Downloads: 2,662

Average Rating:
4 out of 5  based on 8 ratings

Images: 1

Comments: 55

Last Updated: over 4 years ago
Details
Name: Stop after track

Author: kattla

Version: 0.1.2 version history

Categories:

Tags

Log in to Add a Tag
Share
Embed:

Share: