<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyWeikeEdit" %> <%= new MyWeikeNavInstance(this) { Local = MyWeikeNavItem.添加微课 }.ToHtml()%>
我的微课:微课上传

*标题: <%= new HtmlText("Title", this.ViewData["_VideoWeike.Title"], 200) { }%> <%= new HtmlYKTip("Title")%>
片头: <%= new HtmlHidden("VideoBefor", this.ViewData["_VideoWeike.VideoBefor"]) { Class = "ipt-t ipt-t-dft " }%>
<%= new SingleUploadInstance(this) { UploadTag = "VideoBefor", Accept = ".jpg,.png,.mp4", UploadControlName="上传片头"}.ToHtml()%> <%-- <%= new SingleUploadInstance(this) { UploadTag = "VideoBefor", InitParams = "FileFilter=FileFilter=*.jpg;*.png;*.mp4 片头片尾文件格式(*.jpg;*.png;*.mp4)|*.jpg;*.png;*.mp4,DefaultColor=#F5F5F5F5,SelectFiles=选择上传片头文件,Upload=确认上传片头" }.ToHtml()%> --%> <%= new HtmlHidden("VideoWeikeUploadPath", SettingGroup.VideoWeikeUploadPath)%>
请上传 mp4; jpg; png 格式的微课片头
片尾: <%= new HtmlHidden("VideoAfter", this.ViewData["_VideoWeike.VideoAfter"]) { Class = "ipt-t ipt-t-dft " }%>
<%= new SingleUploadInstance(this) { UploadTag = "VideoAfter", Accept = ".jpg,.png,.mp4", UploadControlName="上传片尾"}.ToHtml()%> <%-- <%= new SingleUploadInstance(this) { UploadTag = "VideoAfter", InitParams = "FileFilter=*.jpg;*.png;*.mp4 片头片尾文件格式(*.jpg;*.png;*.mp4)|*.jpg;*.png;*.mp4,DefaultColor=#F5F5F5F5,SelectFiles=选择上传片尾文件,Upload=确认上传片尾" }.ToHtml()%> --%> <%= new HtmlHidden("VideoWeikeUploadPath", SettingGroup.VideoWeikeUploadPath)%>
请上传 mp4; jpg; png 格式的微课片尾

<% var resourcePath = CreateInstance.VideoDao.GetResourcePath(this.ViewData["_VideoWeike.ParentVideo"] as AVA.ResourcesPlatform.Model.Pub.Video); var parentVideo = this.ViewData["_VideoWeike.ParentVideo"] as AVA.ResourcesPlatform.Model.Pub.Video;%> <% var videoPath = resourcePath.VideoShow;%> <%--<% videoPath = Request.WebPath() + "/upload/Video/test/test.mp4"; %>--%>
">
<%--ps: 拖动一下轨道右边结束按钮,视频没播放前不能同步获取结束时间。--%>
*截取位置: <%= new HtmlText("Cutout", this.ViewData["_VideoWeike.Cutout"], 2000) { }%> <%= new HtmlYKTip("Cutout")%>
多段用","分开,关键字"B"为片头、"A"为片尾,如前面加数字为片头显示时间(只对图片有效,如果为视频则为视频时间)
截取视频时间为:开始秒数加"-"加结束秒数,如:"30-150",表示截取30至150秒之间的视频
示例:"5B,30-150,200-600,10A",表示为5秒片头,加原视频的第30秒至150秒,加原视频的200秒至600秒,加10秒片尾
<%= new HtmlHidden("ParentVideo", this.ViewData["_VideoWeike.ParentVideo.Guid"])%> <%= new HtmlHidden("KEY", KEY)%> <%= new HtmlSubmit("生成微课", "VideoWeikeEdit", "VideoWeikeEditClient(this);").Style(new { Width = "100px" })%>