Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Ptitloup/feature video p2p #925

Draft
wants to merge 73 commits into
base: develop
Choose a base branch
from

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
pod/main/configuration.json Outdated Show resolved Hide resolved
pod/video/static/js/videojs-hlsjs-plugin.js Outdated Show resolved Hide resolved
pod/video/templates/videos/video-header.html Outdated Show resolved Hide resolved
pod/video/templates/videos/video-script.html Outdated Show resolved Hide resolved
pod/video/templates/videos/video-script.html Outdated Show resolved Hide resolved
pod/video/templates/videos/video-script.html Outdated Show resolved Hide resolved
pod/video/templates/videos/video_page_content.html Outdated Show resolved Hide resolved
@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 !

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