use html to show local flv file

本文介绍了一种在HTML页面中集成FLV播放器的方法,通过使用Flash对象和参数设置,实现了FLV文件的在线播放功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I have some .flv file download , and I create a file to show this files, seen that my computer has no flv displayer .

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>CSS</title>
</head>
<body>


<h2>FlvPlayer</h2>

<center>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
	codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
	height="800" width="1000">
	<param name="movie"
	
		value="vedio/flvPlayer.swf?vcastr_file=file:///C:/Documents%20and%20Settings/##/Desktop/css_train/vedio/12.flv">
	<param name="quality" value="high">
	<embed
		src="vedio/flvPlayer.swf?vcastr_file=file:///C:/Documents%20and%20Settings/##/Desktop/css_train/vedio/12.flv"
		quality="high" 
		pluginspage="http://www.macromedia.com/go/getflashplayer"
		type="application/x-shockwave-flash" width="1000" height="800">
	</embed>
</object>
</center>
</body>
</html>
To convert a DOCX file to an HTML file using docx4j, you can follow these steps: 1. Add the docx4j dependency to your project. You can do this by including the following Maven dependency in your project's pom.xml file: ```xml <dependency> <groupId>org.docx4j</groupId> <artifactId>docx4j</artifactId> <version>8.2.10</version> </dependency> ``` 2. Load the DOCX file using docx4j. Here's an example: ```java import org.docx4j.Docx4J; import org.docx4j.convert.out.HTMLSettings; import org.docx4j.openpackaging.packages.WordprocessingMLPackage; public class DocxToHtmlConverter { public static void main(String[] args) throws Exception { // Load the DOCX file WordprocessingMLPackage wordMLPackage = Docx4J.load(new File("input.docx")); // Setup HTML conversion options HTMLSettings htmlSettings = Docx4J.createHTMLSettings(); // Convert the DOCX to HTML String htmlOutput = Docx4J.toHTML(htmlSettings, wordMLPackage.getMainDocumentPart()); // Save the HTML output to a file FileUtils.writeStringToFile(new File("output.html"), htmlOutput, "UTF-8"); } } ``` Make sure to replace "input.docx" with the path to your actual input DOCX file and "output.html" with the desired output HTML file path. 3. Run the code, and it will generate the HTML output file. Note that docx4j may not support all features of complex DOCX files, so the resulting HTML might not be an exact representation of the original document. You may need to adjust the generated HTML or use additional libraries to achieve the desired output.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值