algora-io / tv

Open source Twitch for developers
https://algora.tv
Other
1.07k stars 67 forks source link

Implement automatic termination for interrupted livestreams #69

Closed zcesur closed 2 months ago

zcesur commented 2 months ago

Sometimes streams get interrupted and get stuck at "live" state because the underlying .m3u8 manifest is not terminated with an EXT-X-ENDLIST tag.

Let's add a Algora.Library.terminate_stream(video_id) function that fetches the .m3u8 manifest of a livestream, appends EXT-X-ENDLIST (if it doesn't already end with it) and writes the updated manifest back to the object storage.

Let's also add a GenServer that periodically monitors for interrupted livestreams (fetching videos where is_live is false and duration is 0) and terminates them.

zcesur commented 2 months ago

/bounty $75

algora-pbc[bot] commented 2 months ago

## 💎 $75 bounty • Algora

### Steps to solve: 1. Start working: Comment /attempt #69 with your implementation plan 2. Submit work: Create a pull request including /claim #69 in the PR body to claim the bounty 3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

### ❗ Important guidelines: - To claim a bounty, you need to provide a short demo video of your changes in your pull request - If anything is unclear, ask for clarification before starting as this will help avoid potential rework - For assistance or questions, join our Discord

Thank you for contributing to algora-io/tv!

Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🟢 @itsdheerajdp Aug 31, 2024, 2:46:38 PM WIP
🟢 @Lirianer Aug 31, 2024, 3:18:54 PM #75
itsdheerajdp commented 2 months ago

/attempt #69

Algora profile Completed bounties Tech Active attempts Options
@itsdheerajdp 2 bounties from 2 projects
HTML, JavaScript,
TypeScript & more
Cancel attempt
Lirianer commented 2 months ago

/attempt #69

algora-pbc[bot] commented 2 months ago

💡 @Lirianer submitted a pull request that claims the bounty. You can visit your bounty board to reward.

algora-pbc[bot] commented 2 months ago

🎉🎈 @Lirianer has been awarded $75! 🎈🎊