WQYeo.SudoMediaPlayer 1.0.0

A .NET android Library that simplifies the process of preparing and setting up MediaPlayer.

Install-Package WQYeo.SudoMediaPlayer -Version 1.0.0
dotnet add package WQYeo.SudoMediaPlayer --version 1.0.0
<PackageReference Include="WQYeo.SudoMediaPlayer" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WQYeo.SudoMediaPlayer --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

To get started, simply create an instance of SudoPlayer class. Note that the properties are not static, so you can create multiple instances of the class to have multiple mediaplayer running a the same time.

MediaState enum is used to denote the current state of the mediaPlayer. You can use GetMediaState() method to check the current state of the mediaPlayer.

You can also set the mediaPlayer to be repeating by setting IsRepeat property.
You can also add your own custom events when the mediaPlayer ends by calling SetCompletionEvent(Action) method, where Action is your desired event.

Finally, to get your mediaPlayer prepared and started, call PreparePlayer() method and you will be all set and good to go!
The rest of the methods are self-explanatory.

There is also a Song class in the library to help simplify your task for storing song-datas.

To get started, simply create an instance of SudoPlayer class. Note that the properties are not static, so you can create multiple instances of the class to have multiple mediaplayer running a the same time.

MediaState enum is used to denote the current state of the mediaPlayer. You can use GetMediaState() method to check the current state of the mediaPlayer.

You can also set the mediaPlayer to be repeating by setting IsRepeat property.
You can also add your own custom events when the mediaPlayer ends by calling SetCompletionEvent(Action) method, where Action is your desired event.

Finally, to get your mediaPlayer prepared and started, call PreparePlayer() method and you will be all set and good to go!
The rest of the methods are self-explanatory.

There is also a Song class in the library to help simplify your task for storing song-datas.

Release Notes

First Release.

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 360 9/29/2017