Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5456] iOS: Support FLAC files in audio player

GitHub Issuen/a
TypeNew Feature
Priorityn/a
StatusResolved
ResolutionWon't Do
Resolution Date2017-12-17T22:15:28.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterSebastian Klaus
AssigneeShak Hossain
Created2017-12-15T09:29:13.000+0000
Updated2017-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.

Comments

  1. Hans Knöchel 2017-12-15

    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:
       platform :ios, '9.0'
       
       target 'YOUR_APP_NAME' do
       
         pod 'OrigamiEngine', '~> 1.0.14'
       end
       
    Your app:
       var 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);
       
  2. Sebastian Klaus 2017-12-15

    And the AudioPlayer will never support it?
  3. Sharif AbuDarda 2017-12-15

    Hello, [~benutzername], This is not supported by the built-in iOS audio player. Besides, Hyperloop does provide a workaround for this. Thanks.
  4. Sebastian Klaus 2017-12-19

    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

JSON Source