![]() |
#1 |
Senior Member
Join Date: Jun 2015
Location: Hungary
Posts: 496
|
Circular seeker crashes listening to streams
This skin has a nice circular seeker that works fine when listening to music on disk but it crashes Winamp when you try to listen to online music. How shall I edit CircSlider.m to disable the circular seeker while listening to streams?
|
![]() |
![]() |
![]() |
#2 |
Late skinner & Moderator
Join Date: May 2003
Location: Argentina
Posts: 1,610
|
I think the extended behaviour is to disable the seeker if playing a stream. Try to apply something from seek.m (from Big Bento scripts).
And songinfo.m (library file usually find on lib/com) has some useful commands like songinfo_isStream. |
![]() |
![]() |
![]() |
#3 |
Senior Member
Join Date: Jun 2015
Location: Hungary
Posts: 496
|
Thanks, Victhor. I have found this in seek.m:
code: But I do not know how to use something like this in CircSlider.m. I do not really know the logic and syntax of maki, all I can relatively easily do is change some variables. |
![]() |
![]() |
![]() |
#4 |
Late skinner & Moderator
Join Date: May 2003
Location: Argentina
Posts: 1,610
|
Mhmm... it's a sneaky script, I've tried a couple of things with no luck (though I'm not getting a crash when streaming), maybe later I'll give it another shot.
|
![]() |
![]() |
![]() |
#5 |
Quinto Black CT Developer
Join Date: Sep 2016
Posts: 589
|
You might try adding this line ...
PHP Code:
P.S. And I would change the line <WasabiXML version="1.2"> to 1.36. |
![]() |
![]() |
![]() |
#6 |
Senior Member
Join Date: Jun 2015
Location: Hungary
Posts: 496
|
Thanks, PeterK. Getting there. This is how I added your code to System.onScriptLoaded():
PHP Code:
Adding your code to System.onPlay(), too, would probably fix the latter, too, but there is no System.onPlay() section in CircSlider.m. How do I add a System.onPlay() section? As for changing WasabiXML version to 1.36, it causes a null object called error in cars.maki. So either cars.m should be updated for WasabiXML v1.36, which I do not know how to do, or WasabiXML version should be kept at 1.2. |
![]() |
![]() |
![]() |
#7 | |
Quinto Black CT Developer
Join Date: Sep 2016
Posts: 589
|
PHP Code:
Quote:
P.S. Null Object Called appears when the script cannot find an id, which was declared in the script but is (apparently) missing in the corresponding xml file. |
|
![]() |
![]() |
![]() |
#8 |
Senior Member
Join Date: Jun 2015
Location: Hungary
Posts: 496
|
Thanks again.
![]() 1. Where do I put the System.onPlay() section in CircSlider.m? 2. Did I add your code correctly to the System.onScriptLoaded() section or should it be cleaned up? OK, I will recompile it as you suggest. Perhaps, it went wrong on my machine because I had compiled it before setting the version to 1.36. |
![]() |
![]() |
![]() |
#9 | ||
Quinto Black CT Developer
Join Date: Sep 2016
Posts: 589
|
Quote:
![]() Quote:
P.S. You might also set the default_visible of the Main Window to 1. PHP Code:
|
||
![]() |
![]() |
![]() |
#10 |
Senior Member
Join Date: Jun 2015
Location: Hungary
Posts: 496
|
No more guru meditations, thanks.
![]() Switching from music on disk to a stream does not unload seeker animation and still crashes Winamp. On the other hand, switching to Alfa Romeo History from another skin while listening to a stream no longer crashes Winamp but then switching to music on disk does not start seeker animation, either. What should be added to CircSlider.m (and where) to stop seeker animation when switching from music on disk to a stream? And what should be added to start seeker animation when switching from a stream to music on disk? |
![]() |
![]() |
![]() |
#11 |
Senior Member
Join Date: Jun 2015
Location: Hungary
Posts: 496
|
Crashes fixed
Peter, you pointed me in the right direction, thank you!
Adding a System.onPlay() section did not help so I removed it. Instead, I added your code to the Timer4.onTimer() section (in addition to the System.onScriptLoaded() section) like this: PHP Code:
I wonder why this workaround is not needed for Adil's Boom, which also has a circular seeker. |
![]() |
![]() |
![]() |
#12 |
Quinto Black CT Developer
Join Date: Sep 2016
Posts: 589
|
This is great news. In order to make the amimatedLayer disappear during streaming you need to add the line AnimatedLayer2.gotoFrame(0); and put all the rest within the else section:
PHP Code:
|
![]() |
![]() |
![]() |
#13 |
Senior Member
Join Date: Jun 2015
Location: Hungary
Posts: 496
|
Peter, you are my hero! Thank you very much.
![]() |
![]() |
![]() |
![]() |
#14 | |
Quinto Black CT Developer
Join Date: Sep 2016
Posts: 589
|
Quote:
Always a pleasure. ![]() |
|
![]() |
![]() |
![]() |
#15 |
Senior Member
Join Date: Jun 2015
Location: Hungary
Posts: 496
|
Thanks Peter, again. Something is still missing. If Winamp starts up with a playlist of music on disk and I start playing it then the seeker properly progresses. Then, when I switch to a playlist of online music, the seeker properly becomes inactive. And you can switch back and forth with proper seeker behavior.
However, if Winamp starts up with a playlist of online music and I start playing it, the seeker is properly idle. But when I switch to a playlist with music on disk, it will still remain idle. ![]() This is the content of my playlist of online music (loungebarradio.m3u): code: |
![]() |
![]() |
![]() |
#16 |
Senior Member
Join Date: Jun 2015
Location: Hungary
Posts: 496
|
Figured it out. The if statements should only be added to Timer4.onTimer(), not to System.onScriptLoaded(). Restoring System.onScriptLoaded() to this fixes it:
PHP Code:
|
![]() |
![]() |
![]() |
#17 |
Senior Member
Join Date: Jun 2015
Location: Hungary
Posts: 496
|
Published the fixed skin at DeviantArt.
|
![]() |
![]() |
![]() |
#18 | |
Quinto Black CT Developer
Join Date: Sep 2016
Posts: 589
|
Quote:
I am glad you got it done, Ariszló. And thanks for the credits. ![]() |
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|