test/oggvideo.htm
author veltr
Tue, 18 Sep 2012 15:39:28 +0900
branchplayers-as-widgets
changeset 959 ee11ed1b739e
parent 958 2aa7fdb0762a
child 960 9a278b9e3b05
permissions -rw-r--r--
Mashup Player and Dailymotion are now widgets

<!doctype html>
<html>

    <head>
        <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
        <title>Metadataplayer test with HTML5 / OGG Video</title>
        <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
        <link href='test.css' rel='stylesheet' type='text/css'>
        <script type="text/javascript" src="metadataplayer/LdtPlayer-core.js" type="text/javascript"></script>
        <script type="text/javascript" src="test-config.js" type="text/javascript"></script>
    </head>

    <body>
        <h1>Metadataplayer test with HTML5 / OGG Video - Does not work with IE and Safari</h1>
        <div id="LdtPlayer"></div>
        <div id="AnnotationsListContainer"></div>
        <script type="text/javascript">
IriSP.libFiles.defaultDir = "libs/";
IriSP.widgetsDir = "metadataplayer";
var _metadata = {
    url: "json/ldt-ogv.json",
    format: 'ldt'
};
var _config = {
    width : 620,
    container : 'LdtPlayer',
    default_options: {
        metadata: _metadata
    },
    css : 'metadataplayer/LdtPlayer-core.css',
    widgets: [
        { type: "AutoPlayer" },
        { type: "Sparkline" },
        { type: "Slider" },
        { type: "Controller" },
        { type: "Polemic" },
        { type: "Segments" },
        { type: "Slice" },
        { type: "Arrow" },
        { type: "Annotation" },
        { type: "CreateAnnotation" },
        { type: "Tweet" },
        { type: "Tagcloud" },
        {
            type: "AnnotationsList",
            container: "AnnotationsListContainer"
        },
        { type: "Mediafragment"}
    ]
};
_myPlayer = new IriSP.Metadataplayer(_config);
        </script>
    </body>
</html>