Coder Social home page Coder Social logo

ti-audioplayer's Introduction

ti-audioplayer

btw: I have not documented any of all this fully yet.

I built these out of sheer and utter frustration at how old and 'different to each other' the current versions are in Titanium. I also built them to provide some parity between the APIs.

The current Titanium AudioPlayer is still based on Matt Gallagher's AudioStreamer which is nearly a decade old!! And also AVPlayer since arrived on iOS since then, for a long time! (The Java version is very similar to the Titanium version. )

I used them for the AmazingRadio apps. These have live streaming and remote url tunes, playlists etc, with seeking:

Soon these two modules will have the same module ID. (Studio is a pain when trying to create dual platform modules.)

NOTE: The iOS version also has some extra features, such as responding to the lockscreen remote controller and the ability to set the lockscreen now playing info (NB: Image MUST be cached locally first for lockscreen use).

ti-audioplayer's People

Contributors

kosso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ti-audioplayer's Issues

Seeking

Hi,

is it possible to seek remote audio sources?

Improvements to standard player?

OK, more events. But why did you developed? In any cases a good work, not tested yet.

PS I'm missing getSessionId() for controling virtualizer

Stopp player when phone call

Hi.
Great job. Im new for appcelerator and have two questions.
1- How to stop the palyer when phone call
2- when I play audio and starts another app and go back to player-app it starts a new player session and bath are playing.

setting buffer time

I've noticed android buffering quite a bit and taking a fair amount of time, I'm going to start digging around. Any ideas if there is a way of setting a buffering value ?

Android playback rate - half or double 1x speed

Strange speed rate differences - currently, android is playing back the remote mp3 at half the normal rate. As I implement my Common JS interface into my app I will try and unravel the differences.

Android onInfo Unknown media issue ERRORS

Got the android playback working ! finally ๐Ÿ˜„ - however in the app when an mp3 plays back I get alerts (as the player has an error event handler) and it fires 4/5 time with onInfo Unknown media.

I will have to suppress this... you seen it before?

android playback error

the module wont run on android using 6.0.1 / 6.0.3.GA - on Android 6.0 I get module errors in the playback.

04-10 19:12:30.047: I/TiAPI(16615): player state change: 4
04-10 19:12:30.047: I/TiAPI(16615): STATE_STARTING
04-10 19:12:30.061: I/TiAPI(16615): player state change: 3
04-10 19:12:30.061: I/TiAPI(16615): STATE_PLAYING
04-10 19:12:30.064: I/TiAPI(16615): player ERROR: {"type":"error","source":{"time":0,"volume":1,"url":"https://archive.org/download/testmp3testfile/mpthreetest.mp3","playing":false,"metadata":null,"paused":false,"streaming":false,"apiName":"com.kosso.audioplayerandroid","bubbleParent":true,"_events":{"durationavailable":{},"error":{},"complete":{},"playerstatuschange":{},"change":{},"seekcomplete":{},"progress":{}}},"message":"Unknown media error.","code":0,"bubbles":false,"cancelBubble":false}

I haven't got any deeper in the debugging - but have tried on gennymotion / device and siwtched SDKs so far.

I'm just using your iOS example code and switching between the modeuls with this:

var audioplayer = (OS_IOS)?require('com.kosso.audioplayerios'):require('com.kosso.audioplayerandroid');

using Alloy - to detect if iOS or not. The example code is your little example demo that was bundled in the ios module code. If I get any further info i'll post here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.