b10b4f390d
- Modified code to enable the broadcaster to act as a TURN server using Hyperswarm connections. - Replaced external STUN/TURN servers with custom signaling over Hyperswarm. - Configured RTCPeerConnection with an empty ICE servers array to prevent reliance on external servers. - Implemented custom signaling protocol for exchanging offers, answers, and ICE candidates over Hyperswarm connections. - Updated broadcaster to relay media streams, effectively mimicking TURN server behavior within the Hyperswarm network. - Adjusted peer connection setup for both broadcaster and listener to use Hyperswarm for signaling and data transport. - Removed dependency on third-party servers; all communication now occurs within the peer-to-peer network. - Updated UI elements and controls to reflect the changes. - Ensured that peer count updates correctly with new connection handling.
42 lines
926 B
JSON
42 lines
926 B
JSON
{
|
|
"name": "hypercastify",
|
|
"main": "index.html",
|
|
"pear": {
|
|
"name": "hypercastify",
|
|
"type": "desktop",
|
|
"gui": {
|
|
"backgroundColor": "#1F2430",
|
|
"height": "540",
|
|
"width": "720",
|
|
"links": [
|
|
"http://127.0.0.1",
|
|
"http://localhost",
|
|
"https://ka-f.fontawesome.com",
|
|
"https://cdn.jsdelivr.net",
|
|
"https://cdnjs.cloudflare.com",
|
|
"https://stackpath.bootstrapcdn.com",
|
|
"ttps://code.jquery.com"
|
|
]
|
|
}
|
|
},
|
|
"type": "module",
|
|
"license": "Apache-2.0",
|
|
"scripts": {
|
|
"dev": "pear run -d .",
|
|
"test": "brittle test/*.test.js"
|
|
},
|
|
"devDependencies": {
|
|
"brittle": "^3.0.0",
|
|
"pear-interface": "^1.0.0"
|
|
},
|
|
"dependencies": {
|
|
"b4a": "^1.6.7",
|
|
"bootstrap": "^5.3.3",
|
|
"hypercore-crypto": "^3.4.2",
|
|
"hyperswarm": "^4.8.4",
|
|
"node-turn": "^0.0.6",
|
|
"pear-stdio": "^1.0.1",
|
|
"stream": "^0.0.3"
|
|
}
|
|
}
|