Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cordova-plugin-music-controls2 for streaming #101

Open
massimilianocom opened this issue Mar 29, 2024 · 1 comment
Open

cordova-plugin-music-controls2 for streaming #101

massimilianocom opened this issue Mar 29, 2024 · 1 comment

Comments

@massimilianocom
Copy link

From what I read, it's a nice plugin but very little is explained about everything.
For example, can it work for audio streaming such as web radio?
Is it possible to dynamically change the artist name, song title and how?
Can the covers be taken online or only locally?

@pinguluk
Copy link

pinguluk commented Jul 10, 2024

For example, can it work for audio streaming such as web radio?

Yes, just pass the information here

MusicControls.create({
	track       : 'Time is Running Out',		// optional, default : ''
	artist      : 'Muse',						// optional, default : ''
	album       : 'Absolution',     // optional, default: ''
 	cover       : 'albums/absolution.jpg',		// optional, default : nothing
	// cover can be a local path (use fullpath 'file:///storage/emulated/...', or only 'my_image.jpg' if my_image.jpg is in the www folder of your app)
	//			 or a remote url ('http://...', 'https://...', 'ftp://...')

 

Is it possible to dynamically change the artist name, song title and how?

Just call the create method again, but with the new info

 

Can the covers be taken online or only locally?

Both

MusicControls.create({
	...
 	cover       : 'albums/absolution.jpg',		// optional, default : nothing
	// cover can be a local path (use fullpath 'file:///storage/emulated/...', or only 'my_image.jpg' if my_image.jpg is in the www folder of your app)
	//			 or a remote url ('http://...', 'https://...', 'ftp://...')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants