You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've implemented a Node based Aurora player, which plays FLAC and (some!)MP3. I added seek functionality last night by simply using player.seek() but I get this error:
TypeError: Cannot call method 'once' of undefined at Player.seek (/Users/rich/Development/AV/player.js:132:18)
The undefined object is a queue object :
132 : this.queue.once('ready', (function(_this) {
Which I assume is internal to the player as I haven't created or initialized any form of queue.
Have I missed something in the node environment?
Thanks
Rich
The text was updated successfully, but these errors were encountered:
Maybe this comment can help.
The point is flac.js uses seektables to perform a seek. As it's not an accurate way of seeking, it will jump to the closer seek point rather than calculating the right point to continue playing the song.
Indeed, if the file has a seektable with seek points every seconds, seeking should work well.
So if seeking fail, adding a proper seektable to a flac file with metaflac might help: metaflac --add-seekpoint=1s *.flac
I manage to get seeking work with the above command. Once a song has a seektable, I can use seek while it plays.
I don't know if this could be of any help as you're working "in the node environment" (I've done it in the browser), but I think it's worth mentioning it.
Hi,
I've implemented a Node based Aurora player, which plays FLAC and (some!)MP3. I added seek functionality last night by simply using player.seek() but I get this error:
TypeError: Cannot call method 'once' of undefined at Player.seek (/Users/rich/Development/AV/player.js:132:18)
The undefined object is a queue object :
132 :
this.queue.once('ready', (function(_this) {
Which I assume is internal to the player as I haven't created or initialized any form of queue.
Have I missed something in the node environment?
Thanks
Rich
The text was updated successfully, but these errors were encountered: