Comments (6)
Depending on which solution you use to display advertising (Clappr plugin ?, some library displayed over player ?), to be able to start video automatically, you need to "capture" user click (also called user consent).
If you are able to capture click event (the one used to start the advert), then you can immediatly call the player.consent()
method. (technically it "store" the user consent inside internal video element).
When your advert has ended, you can call player.play()
méthod to start playback.
from clappr.
In player playback configuration try with playInline
property to true :
var player = new Clappr.Player({
// [...]
playback: {
playInline: true,
},
// [...]
});
from clappr.
Thank you very much.
After the advertising ends, the video must be played again for the broadcast to start. Can we start the broadcast automatically when the ad ends or we skip the advertising?
from clappr.
Thank you 👍
from clappr.
Depending on which solution you use to display advertising (Clappr plugin ?, some library displayed over player ?), to be able to start video automatically, you need to "capture" user click (also called user consent).
If you are able to capture click event (the one used to start the advert), then you can immediatly call the
player.consent()
method. (technically it "store" the user consent inside internal video element).When your advert has ended, you can call
player.play()
méthod to start playback.
I want to turn on automatic broadcasting after the advertisement for Clappr player, but I couldn't do it even though I tried hard, can you help?
from clappr.
try this plugin, or take a look at source code.
from clappr.
Related Issues (20)
- clappr.io has incorrect link
- "Clappr" on my TV with NO media playing HOT 2
- Create Declaration Types File
- Create new home page design for Clappr docs HOT 3
- Configure internationalization in docs HOT 1
- How to listen error events on Clappr Hls when is IOS
- Move @clappr/plugins to Monorepo HOT 2
- Move docs to monorepo
- update strings using configure() HOT 1
- Configure Github Actions CI HOT 1
- Adjust to `webkitSupportsFullscreen` and other APIs being removed from Chromium
- Clappr not working with CEF (Java Chromium Embedded) HOT 1
- BETA
- Help with playing from url HOT 2
- Add Staled Bot to project
- POC: Use Eventemitter3 Lib HOT 1
- Björn
- Update hls.js version HOT 2
- Display elapsed time with greater granularity (frame number or ms / milliseconds) HOT 1
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 clappr.