Ad block detection would not work when calling play() right after creating the player instance, so the adsManager now also rejects on such a case. Also made sure that calling play() will wait for the adsManager promise to resolve or otherwise return the media.play() method.
This commit is contained in:
@ -12,15 +12,11 @@
|
||||
z-index: -1; // Hide it.
|
||||
|
||||
// Make sure the inner container is big enough for the ad creative.
|
||||
> div {
|
||||
> div,
|
||||
> div iframe {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
iframe {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&::after {
|
||||
|
Reference in New Issue
Block a user