Skip to content

Use local cover image from www directory (iOS) #115

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Use local cover image from www directory (iOS) #115

wants to merge 1 commit into from

Conversation

GitFr33
Copy link

@GitFr33 GitFr33 commented Jan 25, 2018

See #66

line 107 in musicControls.m [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]; seemed to be pointing to /var/mobile/Containers/Data/Application/XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Documents instead of /var/containers/Bundle/Application/XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/app_name.app/www/

Replacing it with NSString * baseCoverImagePath = [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/www/"]; seems to make the iOS version behave the way the Android version does with regard to cover image path.

Please correct me if there is a better way to do this.

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

Successfully merging this pull request may close these issues.

1 participant