-
Notifications
You must be signed in to change notification settings - Fork 131
Open
Description
Hello,
I am currently trying to implement a custom widget according to the docs at https://github.com/StreamElements/widgets/blob/master/CustomCode.md.
So far accessing data in onSessionUpdate worked fine, e.g.
window.addEventListener('onSessionUpdate', function (obj) {
obj.detail.session["subscriber-total"].count; // this is the number of Twitch subscribers
});
However, documented Facebook stats do not work that well
window.addEventListener('onSessionUpdate', function (obj) {
obj.detail.session["supporter-monthl"]; // this is null or undefined
obj.detail.session["supporter-monthl"].count; // consequently getting the count does not work
});
Anything I am doing wrong on my end? Is the documentation accurate?
As an aside, double-checking the docs I also noticed that both Twitch and Facebook followers are documented as
data["follower-month"]["count"] // Twitch
data["follower-month"]["count"] // Facebook
Is it at all possible counting stats for both services in the same overlay? What I am looking for is a widget that provides an aggregate score across streaming services.
Metadata
Metadata
Assignees
Labels
No labels