2012-04-03 89 views
0

嗨,這是我的coe下載快速視頻和.mov視頻。雖然在某些情況下它可以在瀏覽器本身播放快速視頻,並且有時會通過提示下載快速視頻,但它工作正常。我無法找到任何解決方案,我想不下載視頻。如何解決這個問題?視頻無法下載。開始播放

<span class="quick_time_dl"><a href="index.cfm?event=location.index&section=download&topic_id=<cfoutput>#URLDecode(url.topic_id)#</cfoutput>&video_id=<cfoutput>#URLDecode(url.video_id)#</cfoutput>&video_name=<cfoutput>#q.url_mov#</cfoutput>&video_type=lif_mov">Quicktime</a> 
</span> 
<span class="win_media_dl"><a href="index.cfm?event=location.index&section=download&topic_id=<cfoutput>#URLDecode(url.topic_id)#</cfoutput>&video_id=<cfoutput>#URLDecode(url.video_id)#</cfoutput>&video_name=<cfoutput>#q.url_wmv#</cfoutput>&video_type=lif_wmv">Windows Media</a></span> 

回答

5

可以在標題標籤設置的內容的信息:

請使用此代碼,以用於下載視頻或任何文件中的頁面:這應該被寫

<cfheader name="Content-Type" value="application/octet-stream"> 
<cfheader name="Content-Disposition" value="attachment;filename=""filename.mov"""> 
<cfheader name="Content-Location" value="#expandPath('/media/filename.mov')#"> 
<cfcontent type="application/octet-stream" file="#expandPath('/media/filename.mov')#"> 

您事件處理程序或製作單獨的佈局模板。

相關問題