Open anonymze opened 2 years ago
The issue seems related to this one: #324 But the fix didn't work for me. I added this in CDVSound.m (line 398):
if (audioFile.rate != nil){
float customRate = [audioFile.rate floatValue];
NSLog(@"Playing stream with AVPlayer & custom rate");
[avPlayer setRate:customRate];
} else {
NSLog(@"Playing stream with AVPlayer & default rate");
avPlayer.automaticallyWaitsToMinimizeStalling = true; // i added this line !
[avPlayer play];
}
There is my url where i get the audio file: http://viny.openstudio-lab.com/post/file/d45b1000-289f-4f5e-9a3d-c888332d78cd
Please note that this is not an https URL. Might matter, might not.
There is my url where i get the audio file: http://viny.openstudio-lab.com/post/file/d45b1000-289f-4f5e-9a3d-c888332d78cd
Please note that this is not an https URL. Might matter, might not.
Hello,
Same result with a https URL.
I assume you switch BasicAuth on/off for testing, or use an IP-based filter? I only get 401 for both http and https.
Hello,
Yes sorry, i completely forgot. There is an accessible URL: https://api.viny.club/post/file/47678658-88ab-4f6e-97f1-31d65b4cf152
Hello and thank you for your awesome work !
Bug Report
Problem
On iOs, the song is not playing and i got an error on the Xcode's console. I create my media with an https URL where i get my audio file (it can be a .mp3 or a .wav file).
What is expected to happen?
It should be playing the song, it works like a charm on Android.
What does actually happen?
I got this error on the Xcode's console (i suppose it is related to why it's not working):
Command or Code
There is my url where i get the audio file: https://api.viny.club/post/file/47678658-88ab-4f6e-97f1-31d65b4cf152
My code:
Environment, Platform, Device
Ionic + Capacitor / iOs / emulator iPhone on Xcode (tried on iPhone 11 and 12).
Version information
"@ionic-native/media": "^5.36.0", // tried with the last version of awesome cordova same result "cordova-plugin-media": "^5.0.4" "@capacitor/core": "^3.2.5" "@capacitor/ios": "3.2.5" "@ionic/angular": "^5.5.2", dev: "@angular/cli": "12.1.4" "@capacitor/cli": "^3.3.2",
Checklist