视频后重定向 [英] Redirecting after a video

查看:102
本文介绍了视频后重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚创建了我的第一个视频,并想知道是否还有它在播放后重定向到另一个页面。

Just created my first video and was wondering if there is anyway to have it redirect to another page after it plays.

推荐答案

这是可能的。 它需要创建自定义模板并修改播放器C#源代码。

This is possible.  It requires creating a custom template and modifying the player C# source code.

首先查看方法" OnMediaElementMediaEnded"  - 播放列表中的视频播放完成后调用此方法。

Start by looking at the method "OnMediaElementMediaEnded"  -- this method is called when playback of a video in the playlist completes.

附带的源代码调用另一种方法进入播放列表中的下一个视频。  一种方法是使用不同的调用替换代码
,该调用将导航浏览器窗口(使用javascript回调)

另一种方法是修改方法中的代码" GoToPlaylistItemInternal"
,以便仅在完成最后一个播放列表项后调用页面导航代码。

Another approach would be to modify the code in the method "GoToPlaylistItemInternal" so that the page navigation code is called only after the completion of the last playlist item.


这篇关于视频后重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆