Skip to content

Preroll and main video play simultaneously on Android device, when main video is of type m3u8 #1098

@tbourigault

Description

@tbourigault

When the video is started as soon as possible on an Android device and the main video is of type m3u8, the preroll and main video will start playing both at the same time, instead of playing the preroll first and then the main video. The preroll only is visible but we can hear the audio of the main video in the background.

I have made a copy of the simple example changing only the main video from a mp4 to a m3u8

original (mp4 no bug)
https://googleads.github.io/videojs-ima/examples/simple/

modified version (m3u8 bug)
https://tbourigault.github.io/IMA-SDK-Plugin-VideoJS-Simple-M3U8.html

Steps to reproduce:

Expected behavior:
The preroll ad should play first, followed by the main video.

Actual behavior:
Both the preroll ad and main video start playing at the same time. The preroll only is visible but we can hear the audio of the main video in the background.

Environment details:
Bug was reproduced on multiple android devices, different m3u8 files and versions of videoJS 7 & 8

one example:
Operating system: Android 6.0.1
Browser: Google Chrome (Version 106.0.5249)
Video player: video.js (Version 7.18.1) with the videojs-ima plugin (Version 2.0)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions