Rename project to just_audio
This commit is contained in:
parent
0574c041c5
commit
108821871d
27 changed files with 51 additions and 51 deletions
|
@ -1,3 +1,3 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.ryanheise.audio_player">
|
||||
package="com.ryanheise.just_audio">
|
||||
</manifest>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.ryanheise.audio_player;
|
||||
package com.ryanheise.just_audio;
|
||||
|
||||
import android.media.MediaPlayer;
|
||||
import android.media.MediaTimestamp;
|
||||
|
@ -45,9 +45,9 @@ public class AudioPlayer implements MethodCallHandler, MediaPlayer.OnCompletionL
|
|||
public AudioPlayer(final Registrar registrar, final long id) {
|
||||
this.registrar = registrar;
|
||||
this.id = id;
|
||||
methodChannel = new MethodChannel(registrar.messenger(), "com.ryanheise.audio_player.methods." + id);
|
||||
methodChannel = new MethodChannel(registrar.messenger(), "com.ryanheise.just_audio.methods." + id);
|
||||
methodChannel.setMethodCallHandler(this);
|
||||
eventChannel = new EventChannel(registrar.messenger(), "com.ryanheise.audio_player.events." + id);
|
||||
eventChannel = new EventChannel(registrar.messenger(), "com.ryanheise.just_audio.events." + id);
|
||||
eventChannel.setStreamHandler(new EventChannel.StreamHandler() {
|
||||
@Override
|
||||
public void onListen(final Object arguments, final EventSink eventSink) {
|
|
@ -1,4 +1,4 @@
|
|||
package com.ryanheise.audio_player;
|
||||
package com.ryanheise.just_audio;
|
||||
|
||||
import io.flutter.plugin.common.MethodCall;
|
||||
import io.flutter.plugin.common.MethodChannel;
|
||||
|
@ -6,17 +6,17 @@ import io.flutter.plugin.common.MethodChannel.MethodCallHandler;
|
|||
import io.flutter.plugin.common.MethodChannel.Result;
|
||||
import io.flutter.plugin.common.PluginRegistry.Registrar;
|
||||
|
||||
/** AudioPlayerPlugin */
|
||||
public class AudioPlayerPlugin implements MethodCallHandler {
|
||||
/** JustAudioPlugin */
|
||||
public class JustAudioPlugin implements MethodCallHandler {
|
||||
/** Plugin registration. */
|
||||
public static void registerWith(Registrar registrar) {
|
||||
final MethodChannel channel = new MethodChannel(registrar.messenger(), "com.ryanheise.audio_player.methods");
|
||||
channel.setMethodCallHandler(new AudioPlayerPlugin(registrar));
|
||||
final MethodChannel channel = new MethodChannel(registrar.messenger(), "com.ryanheise.just_audio.methods");
|
||||
channel.setMethodCallHandler(new JustAudioPlugin(registrar));
|
||||
}
|
||||
|
||||
private Registrar registrar;
|
||||
|
||||
public AudioPlayerPlugin(Registrar registrar) {
|
||||
public JustAudioPlugin(Registrar registrar) {
|
||||
this.registrar = registrar;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue