Gplay options via command line

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Gplay options via command line

3,544 次查看
manjunathjoshi
Contributor V

Hello all,

I am keen to know if gplay has command line options to set the volume or to mute.

When i do gplay --help on command prompt, only

gplay file_list

is shown.

But when i play using gplay sample.mp3,

i get options to pause,play,stop,mute etc.

My intention is to control the options via command line at the command gplay execution itself not while it is playing.

Regards,

Manju

标签 (2)
0 项奖励
回复
3 回复数

2,409 次查看
Yuri
NXP Employee
NXP Employee

  Please look at the enclosed.


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

2,409 次查看
manjunathjoshi
Contributor V

Hello Yuri,

Last line in chapter 1 says

Customers can operate the player through pressing keys from keyboard.

That's my question.

Can we do it in one shot. say for example:

gplay sample.mp3 -v 100%  or something like that to change the volume to 100%

or

gplay sample.mp3 -m to mute

Note: Above are just examples that i would like to have as a user.

Is there something like that??

Regards,

Manju

0 项奖励
回复

2,409 次查看
Yuri
NXP Employee
NXP Employee

You may try to use standard Linux features. As an example :

$ (echo "key_A" ; sleep 5 ; echo "key_B") | gplay "file_name"

Regards,

Yuri

0 项奖励
回复