-
Notifications
You must be signed in to change notification settings - Fork 0
Description
First of all, I'm totally aware Issues is not the best place for adding my question, but HbbTV does not have a real forum, just StackOverflow, and StackOverflow does not allow generic documentation questions in their guidelines.
I'm currently trying to implement a video replacement in an HbbTV application. I am testing it in an HbbTV/1.2.1 device (spec v1.5). I don't have a v2 device.
Ideal scenario:
- Initialize HbbTV Application and show HbbTV broadcast.
- Preload video in the background without blocking the HbbTV broadcast.
- When the video can play through: stop broadcast -> show video -> play video until the end -> hide video -> start and show broadcast.
So far I found out the <video /> HTML Element provides the worst results. I get a black screen right as soon as I set video.src, no matter my CSS rules. I can't seem to hide the video while it's loading. Maybe I'm missing something.
The <object type="video/mp4" /> provides the best and most consistent results.
My current results look like this:
- Initialize HbbTV Application and show HbbTV broadcast.
- 2-3 seconds delay.
- Display black screen, 2-3 seconds delay.
- Video playback until the end.
- Display black screen, 2-3 seconds delay.
- Successfully back to the broadcast.
The only problem with <object type="video/mp4" /> is that I can't preload it and sometimes it has to stop and buffer.
Overall, I'm quite happy with my results, but I would like to know what is the best way of implementing what I want in HbbTV 1.5. I know there are better alternatives in newer HbbTV versions.