English 中文(简体)
How to play background audio in iOS with Trigger.io?
原标题:
  • 时间:2012-05-01 15:44:18
  •  标签:
  • trigger.io

I m attempting to build a streaming audio application with Trigger.io s framework.

Seeing that its API currently does not feature any audio-related methods, I tested it with basic HTML5 audio tags. Streaming MP3 and AAC worked in this case, but not when the application is backgrounded, even in iOS 5, which typically allows background audio in web apps.

Is there any to background audio in a Trigger.io application?

问题回答

Update, April 2013: We added a native audio playback API on our v1.4.39 platform: http://docs.trigger.io/en/v1.4/modules/media.html#createaudioplayer

Using this API, audio will continue to play when the user changes focus from the app.


Original answer:

Trigger doesn t yet support background audio playback.

The device manufacturers (rightly!) put some restrictions on being able to do work as a background service: we ve not yet linked together starting and controlling playback in your JavaScript, with the non-JavaScript code that would actually do the playing.

It s on our roadmap, however: currently scheduled for completion in May 2012.





相关问题
How to configure iOS application icons in trigger.io?

I am trying to configure the iOS applications icons but adding this to the config.json doesn t work. { "author": "myemail", "config_version": "2", "description": "My Extension ...

How to play background audio in iOS with Trigger.io?

I m attempting to build a streaming audio application with Trigger.io s framework. Seeing that its API currently does not feature any audio-related methods, I tested it with basic HTML5 audio tags. ...

Screencast of native Trigger.io features?

I need to build a mobile application for a client. I ve been looking at solutions like Trigger.io to simplify the task for me. I ve read through the documentation but I haven t found any examples of ...

热门标签