Comments (18)
from spotube.
Now it works! Amazing work 💪🥳
Feel free to close this issue cause has been fixed
from spotube.
It says the just_audio_macos
native plugin is missing
I guess the flutter pub dependencies weren't resolved correctly. Try running:
$ flutter clean
$ flutter pub get
$ flutter run -d macos
from spotube.
Tried, same error:
flutter: [Player._playTrack()] (-1002) unsupported URL
flutter: #0 AudioPlayer._load (package:just_audio/just_audio.dart:778:9)
<asynchronous suspension>
#1 AudioPlayer._setPlatformActive.setPlatform (package:just_audio/just_audio.dart:1346:28)
<asynchronous suspension>
from spotube.
That's a really weird bug. Can you debug following line in your IDE & check the currentTrack.uri
if it's a valid URL string or not visually?
spotube/lib/components/Player/Player.dart
Line 144 in cb12376
from spotube.
The uri is present: spotify:track:1tNJrcVe6gwLEiZCtprs1u
, but doesn't seem a valid URL
from spotube.
Thanks. And that's seems to be ok since the currentTrack isn't yet converted into a YoutubeTrack. Can you debug this line & see if the ytTrack.uri
contains a valid URL string?
spotube/lib/components/Player/Player.dart
Line 159 in cb12376
from spotube.
The app crashes on this method (line 142):
await player
.setAudioSource(
AudioSource.uri(Uri.parse(currentTrack.uri!)),
preload: true,
)
I've added a catchError
and the error is PlayerException ((-1002) unsupported URL)
It never reaches the line 156
from spotube.
I've made some changes there. Try pulling the new modifications & see if works now
from spotube.
Now I'm getting a crash here
spotube/lib/components/Player/Player.dart
Line 160 in 8a1f3a3
with error:
[Player._playTrack()] (-11828) Cannot Open
from spotube.
How does the ytTrack.uri
look? Is it a valid URL string? I guess it's the AVFoundation
framework of Mac OS isn't recognizing the URL as a valid URL because there's no mimetype in the headers
If this is the case then ytTrack.uri!+".mp3"
should fix issue
from spotube.
I've tried to add .mp3
but th error is the same.
I also tried to open the URL in the browser but I get this error: Access to rr2---sn-hpa7zned.googlevideo.com was denied. You don't have authorisation to view this page.
from spotube.
Can you provide me the URL you're getting in ytTrack.uri
from spotube.
https://rr1---sn-hpa7kn7d.googlevideo.com/videoplayback?expire=1644528990&ei=_jAFYreKA4vH7gPgrK34DQ&ip=185.2.145.1&id=o-AICUwqQ1-FhTZuzxUAf2_o9fTpJPTwRAYU-ejwPkojYD&itag=251&source=youtube&requiressl=yes&mh=L_&mm=31%2C29&mn=sn-hpa7kn7d%2Csn-hpa7zned&ms=au%2Crdu&mv=m&mvi=1&pl=23&initcwndbps=1230000&vprv=1&mime=audio%2Fwebm&ns=hSvkWc72lZa6EOGP9pk_TwgG&gir=yes&clen=3003106&dur=169.181&lmt=1633027712541531&mt=1644506999&fvip=1&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=6432434&n=Pa3YXadXYq_YCUs&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAL1hqVIVGu-IbTNWRZsW6j7CS8Xu9xyATSR8kHDu706GAiEAlJHbvD3OQ7uZaF_3DJz11F4g5PwGyoIXGYB3gWTtUts%3D&sig=AOq0QJ8wRQIgWpC7pdIdU19nm29yS-fMoSENeFPLLhtMg-sH_9BM2ocCIQC6wBSJvA8EJcwNQAVHiJ3ZHVF9KWIzzJSUQwYkG98vxA%3D%3D
from spotube.
If I go with the browser without the .mp3 added I can listen to the song.
from spotube.
I found out the actual issue is Mac OS & iOS CoreAudio not supporting WebMedia codec aka webm
, weba
& webp
in previous versions. Spotube was pulling the audio/webm
audio file to get best possible bitrate but it doesn't work on all Macs currently
I've updated the code to pull only audio/mp4
audio in Macs which comes with a downside of having 140 kbps bitrate instead 251 kbps of the audio/webm
Please, pull from git & see if audio works now or not
from spotube.
Glad it worked
from spotube.
Taiko2k/Tauon#717 (comment)
@KRTirtho
Am I curious:
- Are we downloading the songs in " DASH MP4's" codec and renaming the file to .mp3 because of this issue?
- If so, then why are doing it the wrong way to 'get the things' done?!
from spotube.
Related Issues (20)
- Titlebar misaligned HOT 1
- The "Play" button in cards has too little clickable area
- Not properly Downlooaded
- Add search option.
- Spotube has an update on latest bug HOT 6
- IOS volume slider placement
- Playlist share button does not work
- Spotube can't handle special characters
- app that must be reopened twice to start HOT 1
- Windows 64 Bit download link download v3.7.0 instead of v3.7.1 HOT 3
- Future bug: youtube ad injection into videos HOT 1
- Drag & Drop edit for playlist
- Compact display mode HOT 6
- A 'Now Playing' app for the Tidbyt display HOT 1
- Update HOT 2
- Spotube opens with totally empty window HOT 1
- Can't Read Text In Music Player
- Spotube Connect's server doesn't listen on IPv6 interfaces
- Spotube can't be sideloaded with AltStore or SideStore on iOS
- Syncing database from ViMusic
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spotube.