S
S
simonnidze2016-01-13 18:43:20
JavaScript
simonnidze, 2016-01-13 18:43:20

How to show video clip before page load?

There is a video in mp4 Full HD format. It's not a problem to convert it to any other format.
The task is as follows: when opening the main page, show this video
to the user on any device (check whether the cookie is worth it and decide whether I can run the script, it would be something to run)
how to do it better? Perhaps there are semi-ready solutions?
Key point:
there should be no ads before watching this video, and there should be no ads on the video itself, as, for example, in the version from YouTube.
At the moment I am considering the option https://flowplayer.org I will test it.
I look forward to your experience! Thanks in advance!!!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor Morev, 2016-01-13
@Gomerkucher

Can be done via HTML5 video. Put a block on top and make a callback with the code to hide the block when the video is finished playing. In addition, it is easier to make adaptability for mobile.
It is also possible to load videos from youtube/vimeo through an iframe and also make a callback, but there will be more problems with adaptability, the iframe lends itself worse. There is a solution https://css-tricks.com/NetMag/FluidWidthVideo/Arti...
The first option is more practical for me.
ps It seems to me that such things are better done without connecting scripts.)

I
Ivan, 2016-01-13
@LiguidCool

fantasybox.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question