AIMP Forum

AIMP for Android => Предложения / Suggestions => Topic started by: ygao on October 03, 2024, 01:55:40

Title: way to get .aimpbpl playlists, then select it in order to play it.
Post by: ygao on October 03, 2024, 01:55:40
way to get .aimpbpl playlists, then select it in order to play it.
I can play.
can switch prev,next  playlist.
but don't select some single playlist to play it.
Title: Re: way to get .aimpbpl playlists, then select it in order to play it.
Post by: Artem on October 03, 2024, 08:04:14
You can switch between playlists via main menu
Title: Re: way to get .aimpbpl playlists, then select it in order to play it.
Post by: ygao on October 03, 2024, 14:33:02
it's my fault.
say clearly.
I want to say I can
        <service
            android:name="com.aimp.player.service.AppService"
            android:exported="true"
            android:foregroundServiceType="mediaPlayback">
            <intent-filter>
                <action android:name="android.media.browse.MediaBrowserService"/>
                <action android:name="com.aimp.service.action.addToBookmarks"/>
                <action android:name="com.aimp.service.action.addToFavorites"/>
                <action android:name="com.aimp.service.action.exit"/>
                <action android:name="com.aimp.service.action.exitOnClear"/>
                <action android:name="com.aimp.service.action.nextTrack"/>
                <action android:name="com.aimp.service.action.nextGroup"/>
                <action android:name="com.aimp.service.action.nextPlaylist"/>
                <action android:name="com.aimp.service.action.pause"/>
                <action android:name="com.aimp.service.action.play"/>
                <action android:name="com.aimp.service.action.playOrPause"/>
                <action android:name="com.aimp.service.action.prevTrack"/>
                <action android:name="com.aimp.service.action.prevGroup"/>
                <action android:name="com.aimp.service.action.prevPlaylist"/>
                <action android:name="com.aimp.service.action.rewind"/>
                <action android:name="com.aimp.service.action.fastForward"/>
                <action android:name="com.aimp.service.action.startFromBeginning"/>
                <action android:name="com.aimp.service.action.stop"/>
                <action android:name="com.aimp.service.action.toggleLiked"/>
                <action android:name="com.aimp.service.action.toggleRepeatMode"/>
                <action android:name="com.aimp.service.action.toggleShuffleMode"/>
                <action android:name="android.bluetooth.device.action.ACL_CONNECTED"/>
                <action android:name="android.bluetooth.device.action.ACL_DISCONNECTED"/>
            </intent-filter>
        </service>
But not
<action android:name="com.aimp.service.action.setPlayingPlaylist(ae6f91f3-f39d-494b-b045-2f3463ec0ecb.aimpbpl , Default)"/>
<action android:name="com.aimp.service.action.setPlayingPlaylist(UUIDFAVORITES.aimpbpl , myfavorites)"/>
something like this.
changing  the playing playlist.
Title: Re: way to get .aimpbpl playlists, then select it in order to play it.
Post by: Artem on October 03, 2024, 17:01:57
The com.aimp.service.action.playShortcut intent should help in your case. It receives the playlist UUID in the PlaylistID key
Title: Re: way to get .aimpbpl playlists, then select it in order to play it.
Post by: ygao on October 03, 2024, 17:59:39
# am start-service -a com.aimp.service.action.playShortcut                                                                                                         
Starting service: Intent { act=com.aimp.service.action.playShortcut }
Error: Not found; no service started.

the com.aimp.service.action.playShortcut  not exported.
not in the 
 <service
            android:name="com.aimp.player.service.AppService"
            android:exported="true"
            android:foregroundServiceType="mediaPlayback">
            <intent-filter>
                <action android:name="android.media.browse.MediaBrowserService"/>
                <action android:name="com.aimp.service.action.addToBookmarks"/>
                <action android:name="com.aimp.service.action.addToFavorites"/>
                <action android:name="com.aimp.service.action.exit"/>
                <action android:name="com.aimp.service.action.exitOnClear"/>
                <action android:name="com.aimp.service.action.nextTrack"/>
                <action android:name="com.aimp.service.action.nextGroup"/>
                <action android:name="com.aimp.service.action.nextPlaylist"/>
                <action android:name="com.aimp.service.action.pause"/>
                <action android:name="com.aimp.service.action.play"/>
                <action android:name="com.aimp.service.action.playOrPause"/>
                <action android:name="com.aimp.service.action.prevTrack"/>
                <action android:name="com.aimp.service.action.prevGroup"/>
                <action android:name="com.aimp.service.action.prevPlaylist"/>
                <action android:name="com.aimp.service.action.rewind"/>
                <action android:name="com.aimp.service.action.fastForward"/>
                <action android:name="com.aimp.service.action.startFromBeginning"/>
                <action android:name="com.aimp.service.action.stop"/>
                <action android:name="com.aimp.service.action.toggleLiked"/>
                <action android:name="com.aimp.service.action.toggleRepeatMode"/>
                <action android:name="com.aimp.service.action.toggleShuffleMode"/>
                <action android:name="android.bluetooth.device.action.ACL_CONNECTED"/>
                <action android:name="android.bluetooth.device.action.ACL_DISCONNECTED"/>
            </intent-filter>
        </service>
Title: Re: way to get .aimpbpl playlists, then select it in order to play it.
Post by: ygao on October 03, 2024, 18:59:27
You can switch between playlists via main menu
ok,thanks a lot.
I got it.
am start-activity -a com.aimp.service.action.playShortcut -n  com.aimp.player/com.aimp.player.ui.activities.ShortcutsActivity   --es  PlaylistID  "UUID:FAVORITES"
it's working.
But is there a  way to get export  all playlists  uuid/myfavaite formate like app's log export?
Title: Re: way to get .aimpbpl playlists, then select it in order to play it.
Post by: Artem on October 03, 2024, 20:11:17
You can use export functionality in playlist manager. Save playlists to xspf and next open the files as plain text
Title: Re: way to get .aimpbpl playlists, then select it in order to play it.
Post by: ygao on October 04, 2024, 02:06:54
I check it.no way do what i want.
what I mean is  the human readable name(playlist name  in  manager)  and  the playlist UUID for all playlists. not the playlist’s every play item.
sorry I can't export playlist.  https://www.aimp.ru/forum/index.php?topic=73502.0
But I can export app's  log.
Title: Re: way to get .aimpbpl playlists, then select it in order to play it.
Post by: Artem on October 04, 2024, 08:07:04
Ok, I will make UUID display in the manager
Title: Re: way to get .aimpbpl playlists, then select it in order to play it.
Post by: ygao on October 04, 2024, 09:32:51
thanks  a  lot.
if  you  would  make  it  with
  uuid.txt.  like  this.

4e8e5f40-8b69-11ed-a861-0242ac120002/name(in the app display)
ce8e5f40-8b69-11ed-a861-0242ac120002/name9
se8e5f40-8b69-11ed-a861-0242ac120002/name10
UUID:FAVORITES/my favorates

would be  much better.
Title: Re: way to get .aimpbpl playlists, then select it in order to play it.
Post by: Artem on October 04, 2024, 13:42:37
if  you  would  make  it  with
  uuid.txt.  like  this.

How? You unable to export the files...
Title: Re: way to get .aimpbpl playlists, then select it in order to play it.
Post by: ygao on October 04, 2024, 15:40:25
if I enable logging.   the log file I  can get it throuth share.
            Intent intent = new Intent();
            intent.setAction("android.intent.action.SEND");
            File logFile = Logger.getLogFile();
            Objects.requireNonNull(logFile);
            Uri sharedUri = SAF.getSharedUri(this, logFile);
            intent.addFlags(1);
            intent.addFlags(2);
            intent.putExtra("android.intent.extra.STREAM", sharedUri);
            intent.setDataAndType(sharedUri, "application/octet-stream");
            startActivity(Intent.createChooser(intent, getString(R.string.playlist_contextmenu_share)));
it‘s  working for me.

Title: Re: way to get .aimpbpl playlists, then select it in order to play it.
Post by: Artem on October 04, 2024, 21:11:15
Ok