Add file name and other info to track
This commit is contained in:
parent
afbcea1f38
commit
79975710e4
|
@ -122,7 +122,14 @@ IMessageAudioProps) => {
|
|||
|
||||
setLoading(true);
|
||||
try {
|
||||
await TrackPlayer.add([{ url: `${url}?rc_uid=${user.id}&rc_token=${user.token}` }]);
|
||||
await TrackPlayer.add([
|
||||
{
|
||||
url: `${url}?rc_uid=${user.id}&rc_token=${user.token}`,
|
||||
title: file.title,
|
||||
artist: file.author_name,
|
||||
duration
|
||||
}
|
||||
]);
|
||||
} catch {
|
||||
// Do nothing
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue