clappr icon indicating copy to clipboard operation
clappr copied to clipboard

Clappr Mobile FullScreen Mode

Open wesley901 opened this issue 2 years ago • 6 comments

Hi, I am using your player and I like it very much, but I have a problem. I read the documentation but I could not solve it. When I click on the player on mobile, I want it not to open full screen, especially in the advertisement, but it becomes full screen on mobile. How do I prevent advertising videos from opening in full screen on mobile? Thank you.

wesley901 avatar Dec 11 '23 17:12 wesley901

In player playback configuration try with playInline property to true :

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

kslimani avatar Dec 12 '23 06:12 kslimani

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?

wesley901 avatar Dec 13 '23 16:12 wesley901

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.

kslimani avatar Dec 13 '23 18:12 kslimani

Thank you 👍

wesley901 avatar Dec 16 '23 09:12 wesley901

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?

wesley901 avatar Dec 21 '23 20:12 wesley901

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

kslimani avatar Dec 22 '23 19:12 kslimani

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Aug 01 '24 01:08 github-actions[bot]

This issue was closed because it has been stalled for 10 days with no activity.

github-actions[bot] avatar Aug 12 '24 01:08 github-actions[bot]