Comments (3)
Implemented consumeOnly configuration parameter:
const engine = new p2pml.hlsjs.Engine({
loader: {
consumeOnly: isMobile()
}
});
from p2p-media-loader.
Sure, but p2p-media-loader itself has single responsibility - download media via P2P. Everything else you can easily implement on top of it:
var player;
if (isMobile()) { // Create Clappr with P2P
var engine = new p2pml.hlsjs.Engine();
player = new Clappr.Player({
parentId: "#player",
source: "https://akamai-axtest.akamaized.net/routes/lapd-v1-acceptance/www_c4/Manifest.m3u8",
mute: true,
autoPlay: true,
playback: {
hlsjsConfig: {
liveSyncDurationCount: 7,
loader: engine.createLoaderClass()
}
}
});
p2pml.hlsjs.initClapprPlayer(player);
} else { // Create Clappr without P2P
player = new Clappr.Player({
parentId: "#player",
source: "https://akamai-axtest.akamaized.net/routes/lapd-v1-acceptance/www_c4/Manifest.m3u8",
mute: true,
autoPlay: true
});
}
from p2p-media-loader.
Ok, its no problem, but
how to configure mobile peers that they only download
( through p2p)
and were not seeders ?
... I mean similar mode as peer5 mode "Consume only - Cellular users will not upload data to the P2P network. They can still download from non-cellular peers"
Thanks.
from p2p-media-loader.
Related Issues (20)
- p2p loader can't work on google chrome version 110.0.0.0 HOT 1
- Not working in the latest version of Chrome HOT 4
- Create 3 folders with NPM packages
- Create simple hls.js loader plugin
- WebSocket connection to 'wss://tracker.novage.com.ua/' failed: HOT 1
- How to integrating into Reactjs HOT 1
- Peers wont connect !! HOT 5
- Working on firefox and old chrome browsers but not working with latest versions of chrome please help. HOT 7
- Peers are not connecting cross-browser for example chrome peers only connecting with Chrome peers and Firefox only connecting with Firefox peers. Anyone knows the solution ?
- Does the next version support videojs? HOT 1
- Anyone have luck installing on JW Player?
- Release v1 HOT 2
- Not Working P2P HOT 2
- host in mau domain pleass anser HOT 1
- p2pδΈε·₯δ½ HOT 4
- V1 Can't start HOT 2
- test
- demo is only http, none p2p HOT 2
- `p2pml` not found after upgrading to v1.0.1 HOT 6
- Module "events" has been externalized for browser compatibility. Cannot access "events.EventEmitter" in client code HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from p2p-media-loader.