zerodytrash / TikTok-Live-Connector

Node.js library to receive live stream events (comments, gifts, etc.) in realtime from TikTok LIVE.
https://discord.gg/2c6kX6g3Pa
MIT License
1.3k stars 275 forks source link

Some comments don't register #146

Open spdesmith opened 1 year ago

spdesmith commented 1 year ago

I'm getting an issue where it recognizes that everyone joins but for some people, their comments don't register at all but other people can comment fine, the people who's comments aren't registering show up in the live studio but not in the scrapper:


tiktokLiveConnection.on('chat', data => {
    const filePath = path.join(__dirname, 'ProfilePictures', `${data.uniqueId}.jpeg`);
    console.log(data.userDetails.profilePictureUrls[0]);
    processImageAndSend(data, filePath, 'chat', data.comment);
});

//Triggered every time a new viewer joins the live stream.
tiktokLiveConnection.on('member', data => {
    const filePath = path.join(__dirname, 'ProfilePictures', `${data.uniqueId}.jpeg`);
    console.log(data.userDetails.profilePictureUrls[0]);
    processImageAndSend(data, filePath, 'member');
});```
SantiFerre commented 11 months ago

I'm having the same problem, do you have any information on how to solve it?

Virdess commented 11 months ago

I'm having the same problem, do you have any information on how to solve it?

It seems like there's no any solution of this problem. Maybe we should try editing this module to make it work correctly...

Virdess commented 11 months ago

I tried to explore this module. It looks like this module imitates browser, getting just page data from streampage, where getting info about comments, gifts, etc. I think this problem may be related to this, like this module doesn't use any logged account, watching stream as not logged in account, so we can't see all of comments (some users maybe set some privacy settings so not logged in users can't se their comments or smth)

navarr commented 6 months ago

I am experiencing this too but didn't have any leading theories.

Have you discovered more @Virdess?

navarr commented 6 months ago

I think, sadly, I need to dismiss Virdess's thoughts of what might be causing this issue. I have tried running this with a TikTok LIVE in an incognito browser and was seeing messages appear that would not come across.

I've also noticed that when messages are missed there is not a raw protobuff chat event occurring at the time. So I'm unsure if maybe these messages are coming across in a different profotbuff event (nothing I could immediately tell) or something else is happening here...