Closed glopez-askit closed 5 months ago
RNTP on android uses exoplayer; see https://developer.android.com/media/media3/exoplayer/supported-formats https://github.com/google/ExoPlayer/issues/1947
PLS is probably not supported out of the box
RNTP on android uses exoplayer; see https://developer.android.com/media/media3/exoplayer/supported-formats google/ExoPlayer#1947
PLS is probably not supported out of the box
Thank you very much, but I have even tried with the address that contains the PLS file, and the error is the same.
[playlist]
numberofentries=1
File1=https://cast6.my-control-panel.com/proxy/unica/stream
Title1=
Length1=-1
version=2
The address is https://cast6.my-control-panel.com/proxy/unica/stream
, it's working on iOS
, the problem is Android
.
ru sure? i put https://cast6.my-control-panel.com/proxy/unica/stream in place of
and it works fine.
Hi i tried but diidm't work i am having same issue. getting output {"buffered": 0, "duration": 0, "position": 0}
here is code await TrackPlayer.add([ { id: 1, url: "https://cast6.my-control-panel.com/proxy/unica/stream.mp3", // Load media from the network title: "Avaritia", artist: "deadmau5", album: "while(1<2)", genre: "Progressive House, Electro House", date: "2014-05-20T07:00:00+00:00", // RFC 3339 currentIndex: index, // artwork: "http://example.com/cover.png", // Load artwork from the network //duration: 402, // Duration in seconds }, ]); await TrackPlayer.play();
weell dont add .mp3 just use the stream url
On Tue, Jan 23, 2024, 12:39 PM Ammar khan @.***> wrote:
ru sure? i put https://cast6.my-control-panel.com/proxy/unica/stream in place of
and it works fine.
Hi i tried but diidm't work i am having same issue. getting output {"buffered": 0, "duration": 0, "position": 0}
here is code await TrackPlayer.add([ { id: 1, url: "https://cast6.my-control-panel.com/proxy/unica/stream.mp3", // Load media from the network title: "Avaritia", artist: "deadmau5", album: "while(1<2)", genre: "Progressive House, Electro House", date: "2014-05-20T07:00:00+00:00", // RFC 3339 currentIndex: index, // artwork: "http://example.com/cover.png", // Load artwork from the network //duration: 402, // Duration in seconds }, ]); await TrackPlayer.play();
— Reply to this email directly, view it on GitHub https://github.com/doublesymmetry/react-native-track-player/issues/2239#issuecomment-1906880458, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZMOVVVJNZKOLVUYHQ4MCNDYQANWTAVCNFSM6AAAAABCGEQYGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBWHA4DANBVHA . You are receiving this because you commented.Message ID: @.*** com>
https://cast6.my-control-panel.com/proxy/unica/stream
weell dont add .mp3 just use the stream url … On Tue, Jan 23, 2024, 12:39 PM Ammar khan @.> wrote: ru sure? i put https://cast6.my-control-panel.com/proxy/unica/stream in place of https://github.com/doublesymmetry/react-native-track-player/blob/47b2d08033563ef4d7e76a7f061c244ac3dba1ec/example/src/assets/data/playlist.json#L3 and it works fine. Hi i tried but diidm't work i am having same issue. getting output {"buffered": 0, "duration": 0, "position": 0} here is code await TrackPlayer.add([ { id: 1, url: "https://cast6.my-control-panel.com/proxy/unica/stream.mp3", // Load media from the network title: "Avaritia", artist: "deadmau5", album: "while(1<2)", genre: "Progressive House, Electro House", date: "2014-05-20T07:00:00+00:00", // RFC 3339 currentIndex: index, // artwork: "http://example.com/cover.png", // Load artwork from the network //duration: 402, // Duration in seconds }, ]); await TrackPlayer.play(); — Reply to this email directly, view it on GitHub <#2239 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZMOVVVJNZKOLVUYHQ4MCNDYQANWTAVCNFSM6AAAAABCGEQYGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBWHA4DANBVHA . You are receiving this because you commented.Message ID: @. com>
Hi just tried without .mp3 still didn't worked: await TrackPlayer.add([ { id: 1, url: "https://cast6.my-control-panel.com/proxy/unica/stream", // Load media from the network title: "Avaritia", artist: "deadmau5", album: "while(1<2)", genre: "Progressive House, Electro House", date: "2014-05-20T07:00:00+00:00", // RFC 3339 currentIndex: index, // artwork: "http://example.com/cover.png", // Load artwork from the network //duration: 402, // Duration in seconds }, ]); await TrackPlayer.play();
**Hi can you telll me which version you are using for this package? i'm using ^4.0.1**
whelp. this url works with the example app and i suggest you to also fork the example, use your url to rule out any device issues or your app setup first
On Tue, Jan 23, 2024, 12:50 PM Ammar khan @.***> wrote:
https://cast6.my-control-panel.com/proxy/unica/stream
weell dont add .mp3 just use the stream url … <#m-7224350574644903054> On Tue, Jan 23, 2024, 12:39 PM Ammar khan @.> wrote: ru sure? i put https://cast6.my-control-panel.com/proxy/unica/stream https://cast6.my-control-panel.com/proxy/unica/stream in place of https://github.com/doublesymmetry/react-native-track-player/blob/47b2d08033563ef4d7e76a7f061c244ac3dba1ec/example/src/assets/data/playlist.json#L3 https://github.com/doublesymmetry/react-native-track-player/blob/47b2d08033563ef4d7e76a7f061c244ac3dba1ec/example/src/assets/data/playlist.json#L3 and it works fine. Hi i tried but diidm't work i am having same issue. getting output {"buffered": 0, "duration": 0, "position": 0} here is code await TrackPlayer.add([ { id: 1, url: "https://cast6.my-control-panel.com/proxy/unica/stream.mp3 https://cast6.my-control-panel.com/proxy/unica/stream.mp3", // Load media from the network title: "Avaritia", artist: "deadmau5", album: "while(1<2)", genre: "Progressive House, Electro House", date: "2014-05-20T07:00:00+00:00", // RFC 3339 currentIndex: index, // artwork: "http://example.com/cover.png http://example.com/cover.png", // Load artwork from the network //duration: 402, // Duration in seconds }, ]); await TrackPlayer.play(); — Reply to this email directly, view it on GitHub <#2239 (comment) https://github.com/doublesymmetry/react-native-track-player/issues/2239#issuecomment-1906880458>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZMOVVVJNZKOLVUYHQ4MCNDYQANWTAVCNFSM6AAAAABCGEQYGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBWHA4DANBVHA https://github.com/notifications/unsubscribe-auth/AZMOVVVJNZKOLVUYHQ4MCNDYQANWTAVCNFSM6AAAAABCGEQYGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBWHA4DANBVHA . You are receiving this because you commented.Message ID: @. com>
Hi just tried without .mp3 still didn't worked: await TrackPlayer.add([ { id: 1, url: "https://cast6.my-control-panel.com/proxy/unica/stream", // Load media from the network title: "Avaritia", artist: "deadmau5", album: "while(1<2)", genre: "Progressive House, Electro House", date: "2014-05-20T07:00:00+00:00", // RFC 3339 currentIndex: index, // artwork: "http://example.com/cover.png", // Load artwork from the network //duration: 402, // Duration in seconds }, ]); await TrackPlayer.play();
**Hi can you telll me which version you are using for this package? i'm using ^4.0.1**
image.png (view on web) https://github.com/doublesymmetry/react-native-track-player/assets/62397964/9b834423-6d37-4a97-b355-b4f631a3fe4a
— Reply to this email directly, view it on GitHub https://github.com/doublesymmetry/react-native-track-player/issues/2239#issuecomment-1906895422, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZMOVVRNWHT5HN34ZO5XN2LYQAPAFAVCNFSM6AAAAABCGEQYGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBWHA4TKNBSGI . You are receiving this because you commented.Message ID: @.*** com>
actually seeing your screenshot does it not work? its a stream so the log in ur screenshot looks normal
actually seeing your screenshot does it not work? its a stream so the log in ur screenshot looks normal
Nope by default even there is no track it shows all content 0. So surely its bug in 4.1 i just verify by down the version to 3.2 and there same ur that you proved and also check with mine url its also working at that version.
So anybody who is having same issue like playing audio using url doesn't not work on android but working on iOS you can downgrade to 3.2 its working there
And also I'm requesting the this package manager please have a look and please fix the issue i wasted alot of time on it.Hopefully we see the fix soon thanks.
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
Describe the Bug I have the following streaming URL for my radio station:
https://cast6.my-control-panel.com/stream/unica/stream.pls
I'm attempting to use the
react-native-track-player
library to play audio from this URL. I've implemented it as follows:And in the
service.stream.js
section:The issue arises when pressing the play button on Android, and the console displays the following message:
Strangely, this issue only occurs on Android; the configuration works perfectly on iOS.
Steps To Reproduce
Code To Reproduce Unfortunately, I can't provide a simple code example to replicate the bug.
Replicable on Example App? I'm unsure if this bug can be replicated in the React Native Track Player Example App.
Environment Info:
How I can Help
What can you do to help resolve this? I need to confirm if the library truly supports the format of my streaming URL.
Have you investigated the underlying JS or Swift/Android code causing this bug? Yes.
Can you create a Pull Request with a fix? No.