Beispiel #1
0
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
	<title>TokBox VMail Sample Application</title>
	<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div id="container">
		<div id="header"><h1>TokBox VMail</h1></div>
		<div id="nav"><a href="logout.php">Log Out</a></div>
		<div id="main">
		<?php 
if (isset($_GET['msgId'])) {
    echo TokBoxVideo::generatePlayerEmbedCode($_GET['msgId']);
} else {
    echo "Select a video from the right to view it here";
}
?>
		</div>
		<div id="sidebar">
			<?php 
ob_start();
foreach ($vmailRecvs as $vmailRecv) {
    $img = strlen($vmailRecv->getVMailImgUrl()) > 0 ? $vmailRecv->getVMailImgUrl() : "images/default.jpg";
    echo "<div class=\"vmailRecvItem\">\n";
    echo "<a href=\"main.php?msgId=" . $vmailRecv->getVmailMessageId() . "\"><img src=\"" . $vmailRecv->getVMailImgUrl() . "\" border=\"0\"></a><br/>\n";
    echo "Sent By: ";
    foreach ($vmailRecv->getVmailSenders() as $sender) {
        echo $sender->getFullName() . "<br/>\n";
Beispiel #2
0
</head>
<body>
<div class="disclaimer">
        <b>Note:</b> This is a TokBox API sample application. For more information on the TokBox Developer API please check out:
     	<ul>
                <li><a href="http://developers.tokbox.com/">Developer Wiki</a></li>
        	<li><a href="http://developers.tokbox.com/index.php/Sample_Applications">More Sample Applications</a></li>
	</ul>
</div>
<div class="container">
	<h1>Coco + Red Bunny's Wedding VideoBook</h1>
        <div class="couplesMessage">
	<?php 
//Given the message id: lxxqz554s57x, this generates the HTML code to embed the
//video player widget
$htmlCode = TokBoxVideo::generatePlayerEmbedCode("lxxqz554s57x", "350", "290", false);
echo $htmlCode;
?>
 
        </div>
	<div class="details">
		<p><b>Coco Crisp &amp; Red Bunny</b><br/>
		Happily announce their plans to marry, and invite you to leave them a video message</p>
		<p><b>Date:</b> Sunday, May 11 @ 5:00pm</p>
		<p><b>Location:</b>SF City Hall</p>
	</div>
	<div class="balloon">
		<a href="recorderPopup.php" target="_blank"><img src="images/balloon.png" border="0" alt="Leave a message" /></a>
	</div>
	<?php 
//Here we are instantiating the user's API object so that we can make requests on behalf
        <link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div class="disclaimer">
        <b>Note:</b> This is a TokBox API sample application. For more information on the TokBox Developer API please check out:
        <ul>
                <li><a href="http://developers.tokbox.com/">Developer Wiki</a></li>
                <li><a href="http://developers.tokbox.com/index.php/Sample_Applications">More Sample Applications</a></li>
        </ul>
</div>
<div class="container">
        <h1>Coco + Red Bunny's Wedding VideoBook</h1>
	<div class="player">
	<?php 
if (isset($_GET['mid'])) {
    //the HTML code generated by the SDK for the video player
    //Requires a message ID
    $htmlCode = TokBoxVideo::generatePlayerEmbedCode($_GET['mid']);
    echo $htmlCode;
} else {
    echo "I'm sorry, but you're missing a video to play";
}
?>
	</div>
	<div class="footermenu">
		<a href="index.php">Back to VideoBook</a>
	</div>
</div>
</body>
</html>
<?php

require_once '../SDK/TokBoxVideo.php';
echo TokBoxVideo::generatePlayerEmbedCode("vewdd3u4hqo9");