我正在寻找将在 CE-HTML 页面中使用的视频播放器工具(如 jwplayer)。使用 Smart tv 应用程序的开发人员在播放视频时通常使用以下简单和基本的代码
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="application/ce-html+xml; charset=UTF-8"/>
<title>Basic CE-HTML - Basic media object</title>
<script type="text/javascript">
<![CDATA[
function handlePlayButtons(e)
{
switch (e.keyCode)
{
case VK_PLAY:
video.play(1);
break;
case VK_STOP:
video.stop();
break;
case VK_PAUSE:
video.play(0);
break;
}
}
// check the current playstate of the mediaobject
function checkPlayState()
{
switch (video.playState)
{
case 5: // finished
endOfFile();
break;
case 0: // stopped
case 6: // error
case 1: // playing
case 2: // paused
case 3: // connecting
case 4: // buffering
default:
// do nothing
break;
}
}
// called when the end of file is reached
function endOfFile()
{
// repeat
video.play(1);
}
document.onkeydown=handlePlayButtons
]]>
</script>
<![CDATA[
The video is started using the play button.
]]>
</head>
<body style="margin:0px;overflow:hidden;" onload="video.data='/click.mp4';video.play(1); video.onPlayStateChange=checkPlayState;">
<div id="mediaobject" style="position:absolute;left:0px;top:0px; width:640px;height:480px;">
</div>
</body>
</html>
是否有基于 CE-HTML 的工具用于在智能电视上播放视频?