Questions tagged [twitch]

Twitch is a live streaming service and global community for content spanning gaming, entertainment, music, sports, and more. Use this tag for questions related to the Twitch API, Extensions, Drops, or EventSub.

Official Twitch Links

Twitch API on GitHub

821 questions
3
votes
1 answer

Twitch Helix API: Invalid OAuth Token Error

I am using the Twitch Helix API and creating an open source Deno module. I have been trying to test out the API, but whenever I send fetch requests, it returns the following: { "error": "Unauthorized", "status": 401, "message": "Invalid…
sno2
  • 3,274
  • 11
  • 37
3
votes
1 answer

Stream a single (continuously updated) image file, using ffmpeg

I am trying to stream an image file to twitch -- the idea being that the file gets continuously updated. using ffmpeg \ -re \ -framerate 10 \ -loop 1 \ -f image2 \ -i "/path/to/file.png" \ -c:v libx264 \ -preset superfast…
kindoflike
  • 437
  • 4
  • 16
3
votes
2 answers

Is there a way to take screenshots of a livestream happening on Youtube or Twitch?

I'd like to have my software periodically (every 5 minutes or so) take a screenshot of a live stream that's currently happening. I tagged this question for both Youtube and Twitch since the stream is happening on both, so an answer that works for…
Regalia
  • 129
  • 2
  • 10
3
votes
1 answer

NodeJS - How to use the twitch API with OAuth and code token

Hey today i tried to use the twitch api to fetch user data with this endpoint GET https://api.twitch.tv/helix/users i wanted to use the authentification feature to skip the api-limit. I choose ExpressJs for the web framework Here is my app.js…
3
votes
1 answer

BeautifulSoup Not Returning Twitch.tv Viewcount

I'm trying to scrape the viewers on www.twitch.tv/directory using Python. I have tried the basic BeautifulSoup script: url= 'https://www.twitch.tv/directory' html= urlopen(url) soup = BeautifulSoup(url, "html5lib") #also tried using html.parser,…
3
votes
1 answer

HttpURLConnection FileNotFoundException with Response Code 200

I'm trying to retrieve some videos with a GameId from Helix API of Twitch. Using a REST client I can retrieve the data and it works, but when I try it on android it won't work. I get a response code 200, but when I try to access the InputStream I…
3
votes
1 answer

How to Get Twitch Video Thumbnail URL?

Video-sharing websites such as Youtube has a endpoint for video thumbnails Example: http://img.youtube.com/vi/youtube_id/default.jpg where youtube_id = the id of the video So I can just do
95faf8e76605e973
  • 13,643
  • 3
  • 24
  • 51
3
votes
3 answers

how to use twitch emote API

Here's a site ( https://twitchemotes.com/apidocs ) that shows an API to get twitch emotes (basically, json describing a set of images belonging to various users). The API looks simple enough- but they have no examples of requests. So, for this…
Phildo
  • 986
  • 2
  • 20
  • 36
3
votes
1 answer

Get Twitch VOD source video URL

I'm building an application in Unity that can play Twitch VODs via the AVPro video player. Using Twitch's V5 API I can retrieve up to 100 of the most recent VODs of a given channel (source). I have successfully performed that; however, the JSON…
user4148144
3
votes
2 answers

Can anyone explain me corellation between MSE DASH and HLS?

I am new to media streaming, just started learning about adaptive streaming. I have few queries, please clarify - Does MSE support only DASH streaming, I mean if any website using DASH and my browser supports MSE with DASH, it will play. But if a…
3
votes
2 answers

Clear File Contents After X Amount Of Time

I need a way of clearing a text file after a certain period of time. This is what I have so far List previousWeaponList = new StreamWriter("PreviousList.txt"); So this is reading the previous weapon list into the file after a weapon is…
user6772381
3
votes
3 answers

Javascript code runs only when debugging

I am on using Twitch api to check if selected channels are online or offline. Having a weird bug. Code works only when debugging the script in dev tools. Am I missing anything? $(document).ready(function() { var channels =…
3
votes
1 answer

Get a list of live streaming users in Twitch

I want to retrieve a list of users who are live streaming code. This endpoint will give a list of live streams: curl -H 'Accept: application/vnd.twitchtv.v3+json' -X GET https://api.twitch.tv/kraken/streams?stream_type=live A stream (one of the…
Jahongir Rahmonov
  • 13,083
  • 10
  • 47
  • 91
3
votes
0 answers

Pygame unable to delete .mp3 file after using it

I am asking this question as i'm attempting to create my own and first twitch bot (newbie programmer). What I wish to do is when the user requests a song from youtube, I rip the audio from the youtube video from another module i'm using and then I…
D. Harris
  • 31
  • 2
3
votes
1 answer

Switch between multiple stream inputs with nginx rtmp

two colleagues of mine recently started streaming to Twitch together and wanted to create a setup where they could switch between their streams "live" (e.g. A is streaming, wants to end, B starts his stream and there is no interruption). Twitch…
MorpheusXAUT
  • 31
  • 1
  • 3
1 2
3
54 55