找到你要的答案

Q:Change Banner after video is over [duplicate]

Q:改变旗帜后视频结束[复制]

This question already has an answer here:

We have usecase where we have 4 banners, each banner contains the video which is played using HTML5 video player.

We are using bx-slider for making the slides, but we want to have functionality where slide is automatically change after video is played. I have searched lot on google but no straight implementation is found. I have also tried to include fitvids.js, but still no success.

Is there any way around to get this problem resolved?

Any help would be greatly appreciated.

P.S.:

  1. Each Video is of different length.

这个问题在这里已经有了答案:

我们的用例,我们有4个横幅,横幅包含视频播放使用HTML5视频播放器。

我们用BX滑块制作幻灯片,但是我们要在幻灯片播放视频后自动改变功能。我在谷歌上搜索了很多,但没有找到直接实现。我也试着包括fitvids.js,但还是没有成功。

有没有办法解决这个问题?

任何帮助将不胜感激。

附笔.:

  1. Each Video is of different length.
answer1: 回答1:

Its Pretty Simple i think. All you need is to bind you movement clicks on

Video end Events.

You can find video end events info here...

Detect when an HTML5 video finishes

in your handler function just move the slider and call play method of next video.

I could do the whole thing with code for you... But i think you should try this yourself first.

Its Pretty Simple i think. All you need is to bind you movement clicks on

视频结束事件。

您可以在这里找到视频结束事件信息…

检测时,HTML5视频结束

在你的处理器函数只移动滑块和调用播放方法下一个视频。

我可以为你做整件事…但我认为你应该先试试这个。

javascript  jquery  html5  video  bxslider