XWidgetSoft Forum
https://www.bbs.xwidget.com/

Playrcontrolcore volume stop working?
https://www.bbs.xwidget.com/viewtopic.php?f=3&t=5131
Page 1 of 1

Author:  Jimking [ October 12th, 2014, 6:54 am ]
Post subject:  Playrcontrolcore volume stop working?

Guys could you pls confirm if using the "playercontrolcore" and "%volume" to control the player's volume doesn't work in the latest version of XW..? (v1.9.2.903) :?
I try it wilth txt, image(click on) and roundline and nothing of them seem to respond to the command...
(the text recognizes the value but doesn't change)

Author:  hamid [ October 17th, 2014, 4:55 pm ]
Post subject:  Re: Playrcontrolcore volume stop working?

i tested with our old project (CleanPlayer), and it's working,
how do you using it?
make sure you have added the command/function to the Event of object

Author:  Jimking [ October 17th, 2014, 5:25 pm ]
Post subject:  Re: Playrcontrolcore volume stop working?

hamid wrote:
i tested with our old project (CleanPlayer), and it's working,
how do you using it?
make sure you have added the command/function to the Event of object

Make a NEW simple project hamid and you will see that it doesn't work..
In the same design, I only replaced it with the general volume control code/commands and worked... :?

The widget is posted days ago but you can test it by yourself..
http://jimking.deviantart.com/art/Techn ... -488056451

Author:  hamid [ October 17th, 2014, 7:29 pm ]
Post subject:  Re: Playrcontrolcore volume stop working?

i have tested it, and it works for me without any problems


but why you have used 2 text objects in each side of roundline?
maybe you wanted one to display value and another % sign?
but it has 0 on the one with % sign,
is it a mistake or it should be this way?


edit:
i have tested it with the VolumeCore,
am i suppose to change it to PlayerControlCore for testing?


edit2:
i have tested it with PlayerControlCore, and it's working,
maybe it wasn't working for you because you didn't add the commands for the PlayerControlCore,
the command for Cores are different:

example:
for VolumeCore, it is: [!DownVolume=10]
for PlayerControlCore, it is: [!VolumeDown] (it will change the volume by 5%)

Author:  Jimking [ October 18th, 2014, 12:45 am ]
Post subject:  Re: Playrcontrolcore volume stop working?

Quote:
but why you have used 2 text objects in each side of roundline?
maybe you wanted one to display value and another % sign?
but it has 0 on the one with % sign,
is it a mistake or it should be this way?

There are two txt objects:
- 0% (the bottom text without any tag assigned)
- The (%) txt (that has the corrisponding tag showing the percentage)
Quote:
edit:
i have tested it with the VolumeCore,
am i suppose to change it to PlayerControlCore for testing?


edit2:
i have tested it with PlayerControlCore, and it's working,
maybe it wasn't working for you because you didn't add the commands for the PlayerControlCore,
the command for Cores are different:

example:
for VolumeCore, it is: [!DownVolume=10]
for PlayerControlCore, it is: [!VolumeDown] (it will change the volume by 5%)

I know all this hamid! I added the commands but nothing... I'm not so rookie man!
The fact is that using the playercontrolcore volume % tag, not work for all the 3 objects (the txt recognizes the value but doesn't change, the click on commands to up/down WITH the corrisponding tags (!VolumeDown) don't work, the roundine either)
So something is wrong there.....

btw you have saw my pm..?

Author:  hamid [ October 18th, 2014, 1:22 am ]
Post subject:  Re: Playrcontrolcore volume stop working?

Quote:
btw you have saw my pm..?
yes, i'll do it later, maybe tomorrow,



Quote:
There are two txt objects:
- 0% (the bottom text without any tag assigned)
- The (%) txt (that has the corrisponding tag showing the percentage)

so what's the reason for using zero for bottom text? :!:




Quote:
I know all this hamid! I added the commands but nothing... I'm not so rookie man!
The fact is that using the playercontrolcore volume % tag, not work for all the 3 objects (the txt recognizes the value but doesn't change, the click on commands to up/down WITH the corrisponding tags (!VolumeDown) don't work, the roundine either)
So something is wrong there.....
but that's working for me,
ok, try this one:
Attachment:
techno_hq_player [test] [2014.10.18]1240.xwp [885.56 KiB]
Downloaded 496 times

Note:
the player should be opened when you want to change the volume,
because it couldn't access to the player when it's not opened
(so better to be playing or showing to see it's opened and responding)

Author:  Jimking [ October 18th, 2014, 1:51 am ]
Post subject:  Re: Playrcontrolcore volume stop working?

Quote:
yes, i'll do it later, maybe tomorrow,

Thanks!!! :D
Is something different, right?
Quote:
so what's the reason for using zero for bottom text?

Just part of the design. ;)
Quote:
Note:
the player should be opened when you want to change the volume,
because it couldn't access to the player when it's not opened
(so better to be playing or showing to see it's opened and responding)

You're right! :o
But I'm 100% sure that I was able to control the player's volume before playback....Hmm

Author:  hamid [ October 18th, 2014, 2:22 am ]
Post subject:  Re: Playrcontrolcore volume stop working?

Quote:
Thanks!!! :D
Is something different, right?
yes, it's amazing... :D
and i have seen you have added your name everywhere in widget ;)



Quote:
You're right! :o
But I'm 100% sure that I was able to control the player's volume before playback....Hmm
but as you told me before, you have used VolumeCore most of the time for widgets,
am i wrong?

edit:
i have found it here: ;)
http://bbs.xwidget.com/viewtopic.php?f=8&t=4744#p9063


and also you have told me before (in CleanPlayer Project) that it always automatically starts playing when you start the widget,
so maybe because of this, you have never seen this before

Author:  Jimking [ October 18th, 2014, 2:41 am ]
Post subject:  Re: Playrcontrolcore volume stop working?

Quote:
yes, it's amazing... :D
and i have seen you have added your name everywhere in widget ;)

I added a right click option so the message on the sign can be customized! ;)
I made it with a little trick using the shortcutcore instead of "edit" object
1) I didn't want it editable on mouse click
2) There is the possibility to add a click on command/shortcut..
Quote:
You're right! :o
But I'm 100% sure that I was able to control the player's volume before playback....Hmm
but as you told me before, you have used VolumeCore most of the time for widgets,
am i wrong?

To be honest I started using the player's volume control after your first suggestion but I made some player widgets since then and I don't remember this "bug" before..
Quote:
and also you have told me before (in CleanPlayer Project) that it always automatically starts playing when you start the widget,
so maybe because of this, you have never seen this before

Maybe....

Author:  hamid [ October 18th, 2014, 3:48 am ]
Post subject:  Re: Playrcontrolcore volume stop working?

Quote:
I added a right click option so the message on the sign can be customized! ;)
I made it with a little trick using the shortcutcore instead of "edit" object
1) I didn't want it editable on mouse click
just to note, it can also be done using promptbox, but promptbox is a simple box



Quote:
To be honest I started using the player's volume control after your first suggestion but I made some player widgets since then and I don't remember this "bug" before..

maybe it's not a bug, since the core couldn't control the player when the player not loaded yet,
but it also can be treated as bug if we decide to load the player at startup of widget, maybe better to have a option to start the player on start of widget

it doesn't start the player by refreshing the PlayerControlCore,
it will only start the player if a request is send to player (like stop,pause,loop,shuffle,...),
so as another solution, you can add a command to do one of these on start of widget,
but maybe better to wait for this option to be added to the core

Author:  Jimking [ October 18th, 2014, 4:22 am ]
Post subject:  Re: Playrcontrolcore volume stop working?

Quote:
but maybe better to wait for this option to be added to the core

Yes, I agree....
Quote:
just to note, it can also be done using promptbox, but promptbox is a simple box

Doesn't matter hamid. Just leave it as now..
If you can add the checked function for the right click options will be enough already.! :)

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/