Code Monkey home page Code Monkey logo

Comments (6)

kslimani avatar kslimani commented on June 1, 2024 1

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.

kslimani avatar kslimani commented on June 1, 2024

In player playback configuration try with playInline property to true :

var player = new Clappr.Player({
  // [...]
  playback: {
    playInline: true,
  },
  // [...]
});

from clappr.

wesley901 avatar wesley901 commented on June 1, 2024

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.

wesley901 avatar wesley901 commented on June 1, 2024

Thank you 👍

from clappr.

wesley901 avatar wesley901 commented on June 1, 2024

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.

kslimani avatar kslimani commented on June 1, 2024

try this plugin, or take a look at source code.

from clappr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.