because with the current implementation the audio needs to be preload and at least be played one time to get
the audio id which is needed to get the audio duration with the current getDuration API.
I've describes the problem in detail here:
https://discuss.cocos2d-x.org/t/audioengine-interface-improvement/34034
* change USE_NET_WORK to USE_SOCKET and add xmlhttprequest default for ios platform
* change USE_NET_WORK to USE_SOCKET and add xmlhttprequest default for android platform
* v2.0 skeleton optimize
* v2.0 skeleton offical source file
* Rename jsbDragonBones to dragonbones
Rename jsbSpine to spine
Rename editor to middleware
Rename EditorManager to MiddlewareManager
* Rename Macro.h to MiddlewareMacro to avoid duplication of name
* Middleware update by js
* recover other ini generate
* Update cocos2dx-file.json
* createArrayBuffer support null point
* Rename MiddlewareMacro
* skeleton windows 工程
* add checkspace before write buffer
* add math include
* modify dragonBones to dragonbones
* modify dragonBones to dragonbones
* modify dragonBones to dragonbones
* remove useless code
* Change copyright time
* add context2d fill & rect method for android
* workaround: draw a hairline to cover the border
* fix clear&fillrect parameter error
* add empty impl on Apple
* add empty Imple in win32
* enable "SUBPIXEL_TEXT_FLAG" flag to make the text more clear on Android
* move putImageData impl to native
* add empty _fillImageData impl on win32 & apple
* remove “experimental” in audio dir
* update audio bindings
* fix "{" match error
* no need "experimental" for thread pool
* remove both out-of-date js api files
* init add webview files form creator 1.10
* refine header & namespace to compile works
* add webview auto bindings, need check manually
* update webview auto bind
* add setFrame interface to support set View Rect
* uniform file name with other ui modules
* adapt to iOS
* [feature] android implement recieve http header param, handle it in android http request (#2)
* [feature] Recieve http header param, handle it in android http request
* [feature] implement abort and header api
* /2.0 -> /2
* remove task when abort
* [feature] Implement ios and mac downloader abort api (#3)
* [feature] Implement ios and mac downloader abort api
* use DLLOG to show log
* judge NSURLSessionTask state with NSURLErrorCancelled
* [adjust] Modify downloader from auto bind to manually (#4)
* [adjust] Modify Downloader createDownloadFileTask api from auto bind to manually
* Modify ini file
* [bug] fix Cocos2dxDownloader.java syntax error
* [bug] CCDownloader-android creatCoTask don't deleteLocalRef header str
* Less opengl binding files.
* recreateBuffer in CanvasRendereringContext2D constructor.
* gl.bindFrameBuffer(gl.FRAME_BUFFER, null) needs to set to default frame buffer .
* Fixes JSB_glGetActiveUniform use GL_ACTIVE_ATTRIBUTE_MAX_LENGTH to get the max length, we need to use GL_ACTIVE_UNIFORM_MAX_LENGTH instead.
* glBufferSubData supports typedarray with 0 length. Adds more API for CanvasRenderingContext2D.