예제 #1
0
<?php

require_once '../SDK/TokBoxVideo.php';
echo TokBoxVideo::generateRecorderEmbedCode();
예제 #2
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";
예제 #3
0
        <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>
예제 #4
0
		function vmailSent(isSent) {
			window.location = "http://sandbox.tokbox.com/sampleApp/guestbook/index.php";	
		}
	</script>

</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="recorder">
	<?php 
//HTML code for the recorder widget. This includes the specific flashvar which addresses the e-mail
//to the given e-mail address
$htmlCode = TokBoxVideo::generateRecorderEmbedCodeToMe(Site_Config::EMAIL_ADDRESS);
echo $htmlCode;
?>
	</div>
	<div class="footermenu">
		<a href="index.php">Back to VideoBook</a>
	</div>
</div>
</body>
</html>
<?php

require_once '../SDK/TokBoxVideo.php';
echo TokBoxVideo::generateRecorderEmbedCodeToMe("*****@*****.**");
예제 #6
0
 
        </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
//of the user JABBERID with secrect ACCESS_SECRET
$apiObj = TokBoxUser::createUser(Site_Config::JABBERID, Site_Config::ACCESS_SECRET);
$vmailRecvs = TokBoxVideo::getVmailRecv($apiObj);
//grabs the feed of video mails received by the user
ob_start();
foreach ($vmailRecvs as $vmailRecv) {
    $senders = $vmailRecv->getVmailSenders();
    $sender = $senders[0];
    //grabs the sender of the video mail
    echo "<div class=\"video\">";
    echo "<img src=\"" . $vmailRecv->getVmailImgUrl() . "\">";
    //grabs the image URL of the video  mail
    echo "Message from " . $sender->getFullName();
    //grabs the full
    echo "<br/>";
    echo '<a href="playerPopup.php?mid=' . $vmailRecv->getVmailMessageId() . '">Click to play message</a>';
    //gets the message ID which is used by the player widget to play the video
    echo "</div>";
예제 #7
0
<?php

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