Fix channel name for dyn-video-swap

This commit is contained in:
pixeltris 2020-12-22 18:58:05 +00:00
parent 9a64840689
commit 1c3b948d5f
2 changed files with 8 additions and 5 deletions

View File

@ -9,12 +9,15 @@ This repo aims to provide multiple solutions for blocking Twitch ads.
- Stuttering and looping of segments my occur.
- dyn-video-swap
- Ads are replaced by a low resolution stream which is swapped with the original stream for the duration of the ad.
- Similar to `dyn`, but may have a larger jump in time (you might see tiny bits of the ad).
- Similar to `dyn`, but may have a larger jump in time.
- You might see tiny bits of the ad.
- Audio controls wont work whilst the ad is playing.
- low-res
- No ads.
- The stream is 480p for the duration of the stream.
- mute-black
- Ads are muted / blacked out for the duration of the ad (you might see tiny bits of the ad).
- Ads are muted / blacked out for the duration of the ad.
- You might see tiny bits of the ad.
## Applying a solution (uBlock Origin)

View File

@ -32,7 +32,7 @@ twitch-videoad.js application/javascript
liveVid.style.filter = "brightness(0%)";
var createTempStream = async function() {
// Create new video stream TODO: Do this with callbacks
var channelName = "nickmercs";
var channelName = window.location.pathname.substr(1);// TODO: Better way of determining the channel name
var playerType = "thunderdome";
var CLIENT_ID = "kimne78kx3ncx6brgo4mv6wki5h1ko";
var tempM3u8 = null;
@ -69,8 +69,8 @@ twitch-videoad.js application/javascript
tempVideo.hls.loadSource(tempM3u8);
tempVideo.hls.attachMedia(tempVideo);
}
console.log(tempVideo);
console.log(tempM3u8);
//console.log(tempVideo);
//console.log(tempM3u8);
}
}
createTempStream();