Produce the next frame. Never called concurrently or while paused.
OptionalstartedCalled with the running stream once the player plays it, synchronously
after activation and before any Stream.onStop. Not called when
the open was cancelled first. stream.stop() closes the source (if
still current); the plugin stopping stops it too.
What a file resolver returns: a stream, with the same frame contract as StreamOptions (size limits,
frame()on the audio clock).After
resolvereturns, the SDK starts the stream while the open waits. If that fails, the open fails with the player's words instead of the SDK's (the detail goes to the log):device"音频输出设备不可用",timeout"启动超时",busy"播放器正忙,请稍后重试", other start-up failures "无法启动播放". An error thrown byframe()keeps its message. To give your own text for a file you can tell is unusable (a bad header), check it inresolveand throw there.Since
1.5.3