Skip to content

Conversation

@ptitloup
Copy link
Contributor

@ptitloup ptitloup commented Aug 29, 2023

settings_local.py

USE_VIDEO_P2P = True
P2P_TRACKERS = [
    "wss://tracker.webtorrent.dev",
]
P2P_STUNS = {
    "stun:stun.l.google.com:19302",
    "stun:global.stun.twilio.com:3478"
}

Pour le tracker, en voici une liste mise à jour quotidiennement.

@ptitloup ptitloup self-assigned this Aug 29, 2023
@ptitloup ptitloup added the enhancement New feature or request label Aug 29, 2023
@ptitloup ptitloup marked this pull request as draft August 29, 2023 14:58
@ptitloup
Copy link
Contributor Author

ptitloup commented Sep 7, 2023

le plugin videojs-hlsjs-plugin a été compilé et est fourni avec le code source pour être compatible avec la version 1.3 de la lib hls.js. Une PR est créé streamroot/videojs-hlsjs-plugin#115
Pour le compiler, voici les commandes lancées :

git clone https://github.com/ptitloup/videojs-hlsjs-plugin.git
cd videojs-hlsjs-plugin/
git checkout ptitloup-patch-bump-hls.js
export NODE_OPTIONS=--openssl-legacy-provider
npm install
npm run build

@ptitloup
Copy link
Contributor Author

ptitloup commented Sep 8, 2023

Pour activer le mode P2P, voici la configuration requise :

USE_VIDEO_P2P = True
P2P_TRACKERS = [
  "ws://localhost:8001/"
]
P2P_STUNS = {
  "stun:stun.l.google.com:19302",
  "stun:global.stun.twilio.com:3478?transport=udp"
}

Pour le tracker, j'ai utilisé cette image docker : https://hub.docker.com/r/moerats/wt-tracker

Merci pour vos retours !

@ptitloup ptitloup marked this pull request as ready for review September 8, 2023 15:45
@ptitloup ptitloup changed the title [WIP] Ptitloup/feature video p2p [DONE] Ptitloup/feature video p2p Sep 8, 2023
@Badatos Badatos self-requested a review September 11, 2023 09:00
@ptitloup ptitloup requested a review from mattbild September 11, 2023 14:33
@ptitloup
Copy link
Contributor Author

@mattbild peux-tu regarder cette PR stp ? j'ai rajouté le p2p pour les lives et avec la mise à jour de videojs en v8, j'ai du modifier quelques fct. Merci !

@Badatos Badatos added this to the 3.x milestone Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants