Twitch Extensions are a powerful solution for connecting streamers and viewers. But where to get started? Join us as we share some of the lessons we learned from prototyping, iterating, and publishing our Twitch Extensions.
Report
Share
Report
Share
1 of 53
Download to read offline
More Related Content
Rapid Prototyping Twitch Extensions: Five Lessons Learned
14. TwitchCon 2018 San Jose, California
“Content is like water.
— Josh Clarck
15. TwitchCon 2018 San Jose, California
// viewer.css
.container {
display: flex;
}
@media(max-width: 640px) {
.container {
display: block;
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
How to Respond
to the Screen Size
16. TwitchCon 2018 San Jose, California
// viewer.css
.container.mounted-as-component,
.container.mounted-as-video_overlay {
border-radius: 15%;
}
1
2
3
4
5
6
7
8
9
10
11
12
13
How to Respond
to the Anchor
17. TwitchCon 2018 San Jose, California
// viewer.js
let mount = "none"
if(query.platform === "mobile") {
mount = query.platform // "mobile"
} else if(query.mode !== "viewer") {
mount = query.mode // "dashboard" or "config"
} else {
mount = query.anchor // "panel" or
"video_overlay" or "component"
}
let className = `container mounted-as-${mount}`
1
2
3
4
5
6
7
8
9
10
11
12
13
How to Respond
to the Anchor
26. TwitchCon 2018 San Jose, California
// index.js
let query = require(“query-string”).parse(location.search)
console.log(query.language)
How to Detect the
Viewer’s Language
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15