除了母版之外,如何在单独的页面中播放视频? [英] how to play a video in a separate page, apart from the Master?
问题描述
嗨!我想在单击超链接时在单独的页面中播放视频.当我单击该超链接时,我希望该页面弹出.我将播放器(流播放器)集成到页面上,并且可以正常工作.当我将这个''MasterPageFile =〜/Site.master"''放在播放器页面上时,它起作用了.但我不想在此页面上具有母版页的界面.我该如何实现呢?
这是我的代码;
HyperLink播放= 新 HyperLink();
play.ImageUrl = " ;
play.NavigateUrl = " + x.Name.Trim() + " ;
这是播放器页面
a href ="" Vn"])); < /a >
< 脚本 >
flowplayer("player","flowplayer-3.2.7.swf");
< /script >
请帮我解决这个问题.我也想知道
单击此链接时弹出播放器页面的代码.
将Hyperlink
控件的Target
属性设置为"_blank";
您可以创建另一个母版页并将player.aspx页与其关联,而不是您的主母版页.另一种技术是使用CSS和/或JavaScript从player.aspx页内隐藏母版页上的元素. SharePoint 2010广泛使用此方法.
hi!, i wanna play a video in a separate page when i click a hyperlink. i want that page to be popped out when i click that hyperlink. i integrated the player(flow player) to a page and it doent work. when i put this '' MasterPageFile="~/Site.master" '' on the player page it works. but i dont wanna have the interface of the master page on this page. how can i achieve this??
this is my code;
HyperLink play = new HyperLink();
play.ImageUrl = "Images/playtrailer.gif";
play.NavigateUrl = "Player.aspx?Vn=Trailers/" + x.Name.Trim() + ".flv";
this is the player page
a href="<% Response.Write(Request.QueryString["Vn"]); %>"
style="display:block;width:520px;height:330px"
id="player">
</a>
<script>
flowplayer("player", "flowplayer-3.2.7.swf");
</script>
please help me to solve this. and also i wanna know
a code to pop up the player page when i click this link
Set theTarget
property of theHyperlink
control to "_blank";
You can create another master page and associate the player.aspx page with it rather than your main master page. Another technique is to use CSS and/or JavaScript to hide elements on the master page from within the player.aspx page. SharePoint 2010 uses this method extensively.
这篇关于除了母版之外,如何在单独的页面中播放视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!