Hello.
I've been trying to open a Flowplayer on Boxee on my app. It loads and show the chrome and first screen of the video. However it freezes at this point: Boxee is still responding, but the video won't go further than the first frame. Can anyone help me with it? Here's the code:
main.xml
flowplayer.phpCode:<?xml version="1.0" encoding="utf-8"?> <window type="window" id="14000"> <defaultcontrol always="true">130</defaultcontrol> <onload lang="python"> <![CDATA[ videoItems = mc.ListItems() videoItem = mc.ListItem( mc.ListItem.MEDIA_VIDEO_OTHER ) videoItem.SetPath("http://localhost/test/flowplayer.php?videoUrl=http://localhost/videos/testVideo.flv") videoItems.append(videoItem) mc.GetPlayer().Play(videoItem) ]]> </onload> <controls> <!-- b:video --> <control type="videowindow" id="130"> <posx>0</posx> <posy>0</posy> <width>640</width> <height>360</height> <onleft>-</onleft> <onright>-</onright> <onup>-</onup> <ondown>-</ondown> <onnext>-</onnext> <onprev>-</onprev> </control> <!-- e:video --> </controls> </window>
Thanks!PHP Code:<!DOCTYPE HTML>
<html>
<?php $videoUrl = $_GET['videoUrl']; ?>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"></meta>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="flowplayer.min.js"></script>
<title>flowplayer-boxee adapter</title>
</head>
<body>
<div id="player" style="width:640px; height:360px;"></div>
<script>
$f("player", "flowplayer.swf", {
clip: {
url: "<?php echo $videoUrl ?>",
autoplay: true
},
canvas: {
backgroundGradient: "none",
backgroundColor: "#333333"
}
});
</script>
</body>
</html>


Reply With Quote
Bookmarks