您好,我正在开发一个视频播放器,可以在列表框内的侧面显示独特的单词。当用户单击某个单词时,它会获得该单词在视频中出现的那一秒的值。
该词的值类似于 86.3 秒。我使用 MediaElement.js 视频播放器。
这是播放器的代码:
<script type="text/javascript">
new MediaElement('Video1', {
// shows debug errors on screen
enablePluginDebug: false,
// remove or reorder to change plugin priority
plugins: ['flash', 'silverlight'],
// specify to force MediaElement to use a particular video or audio type
type: '',
// path to Flash and Silverlight plugins
pluginPath: '../myjsfiles/',
// name of flash file
flashName: 'flashmediaelement.swf',
// name of silverlight file
silverlightName: 'silverlightmediaelement.xap',
// default if the <video width> is not specified
defaultVideoWidth: 480, …Run Code Online (Sandbox Code Playgroud) 如何在asp.net中使用iTextSharp打印GridView数据(全部)?我只需要一个提示而不是完整的代码
我在Java中使用Socket进行简单的客户端/服务器聊天.问题是程序相互连接但由于某些原因我无法从双方获取/接收数据.当我断开服务器时,客户端给我一个错误"连接重置",表明它们已连接,但它们不交换数据.
代码与从此处获取的Java Tutorial中获取的代码相同.
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplication3;
/**
*
* @author Amr
*/
import java.net.*;
import java.io.*;
public class KnockKnockServer {
public static void main(String[] args) throws IOException {
ServerSocket serverSocket = null;
try {
serverSocket = new ServerSocket(4440);
} catch (IOException e) {
System.err.println("Could not listen on port: 4444.");
System.exit(1);
}
Socket clientSocket = null;
try {
clientSocket = serverSocket.accept(); …Run Code Online (Sandbox Code Playgroud)