Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notes #103

Closed
lovegaoshi opened this issue Jul 24, 2023 · 4 comments
Closed

notes #103

lovegaoshi opened this issue Jul 24, 2023 · 4 comments

Comments

@lovegaoshi
Copy link
Owner

https://stackoverflow.com/questions/46032563/how-to-call-javascript-method-in-react-native-on-android-platform

@lovegaoshi
Copy link
Owner Author

resolveURL:

const getBestBitrate = (data: any[]) => data.sort((a,b) => a.bandwidth < b.bandwidth)[0]

if (data.flac?.audio) {
return getBestBitrate(data.flac.audio).baseUrl
} elif (data.dolby?.audio) {
return getBestBitrate(data.dolby.audio).baseUrl
}
return getBestBitrate(data.audio).baseUrl

@lovegaoshi
Copy link
Owner Author

@lovegaoshi
Copy link
Owner Author

@lovegaoshi
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant