I want to implement an endless musical playlist, with no silence gaps between audio tracks due to prebuffering.
I've tried setting control="prebuffer" on the audio node of the next track while the current track is playing, but doing so fails with errorCode=0 and errorMsg="failed to create media player". Because of that, when it's time to start the next track, it needs time to buffer, which leaves the unwanted silence gap.
I've also tried using the contentIsPlaylist feature of the audio node, which seems to correctly prebuffer the next track while the current track is playing. But when I add new tracks to the audio.content playlist, the node fails with errorCode=-3 and errorMsg="An unexpected problem (but not server timeout or HTTP error) has been detected".
Is there a way to implement a dynamic playlist with no silence gaps between tracks?
Interesting. I stumbled upon roAudioPlayer, which has the AddContent method for adding tracks to the current playlist. I tried to integrate it inside my app until I found out it just wouldn't work inside a SceneGraph application. Which left me wondering: what's the use of roAudioPlayer now?
I have pretty much the same question for Videos. I want to automatically load next episode, or some other "suggested watching" program when the current ends, preferably without an interruption for buffering.
I do not want to pre-populate the entire sequence of episodes, or a chain of suggested programs to watch, as my server API provides only one "watch next" item at a time. I had hoped to be able to call the server once there is maybe 30 seconds left of the currently playing video, giving the Video player enough time to pre-buffer the next episode while the current finishes, and seamlessly start playing the next. I see that the Video node has support for a playlist, but the documentation states that once playback has started, modifications to the playlist will be ignored.
I also considered creating two Video nodes, and alternating which is visible, so that the one in the background could pre-buffer the next episode, but I hear other developers say that you cannot have one Video playing while another is prebuffering (or playing).