test/oggvideo.htm
author veltr
Mon, 17 Sep 2012 00:17:06 +0900
branchplayers-as-widgets
changeset 957 4da0a5740b6c
parent 917 eb8677d3a663
child 958 2aa7fdb0762a
permissions -rw-r--r--
Starting 'players-as-widgets' branch

<!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 = {            
    gui: {
        width : 620,
        container : 'LdtPlayer',
        default_options: {
            metadata: _metadata
        },
        css : 'metadataplayer/LdtPlayer-core.css',
        widgets: [
            { type: "PopcornPlayer"},
            { 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"}
        ]
    },
    player:{
        type:'auto',
        live: true, 
        height: 350, 
        width: 620, 
        provider: "rtmp",
        autostart: true,
        metadata: _metadata
    }
};
_myPlayer = new IriSP.Metadataplayer(_config);
        </script>
    </body>
</html>