[AC-5456] iOS: Support FLAC files in audio player
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | n/a |
| Status | Resolved |
| Resolution | Won't Do |
| Resolution Date | 2017-12-17T22:15:28.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | n/a |
| Reporter | Sebastian Klaus |
| Assignee | Shak Hossain |
| Created | 2017-12-15T09:29:13.000+0000 |
| Updated | 2017-12-19T09:55:00.000+0000 |
Description
Is there a possibility to play .flac files with the AudioPlayer yet?
Or exists any third party module, which will do this?
Any help would be appreciated.
The built-in audio-players in iOS do not support this. A simple solution would be to use [OrigamiEngine](https://github.com/ap4y/OrigamiEngine) in Hyperloop like this: Podfile:
Your app:platform :ios, '9.0' target 'YOUR_APP_NAME' do pod 'OrigamiEngine', '~> 1.0.14' endvar ORGMEngine = require('ORGMEngine/ORGMEngine'); var player = new ORGMEngine(); let url = NSURL.URLWithString('file.flac'); // I think it's only the name of the file in the final product / bundle. Maybe try around a bit here player.playUrl(url);And the AudioPlayer will never support it?
Hello, [~benutzername], This is not supported by the built-in iOS audio player. Besides, Hyperloop does provide a workaround for this. Thanks.
Got it working. Thanks. But one question still exists. How do I add an eventListener to the _didChangeState_ in https://github.com/ap4y/OrigamiEngine/blob/master/Example/iOS/ORGMEngine%20Example/ORGMPlayerViewController.m#L159