test/audiomp3.htm
author veltr
Tue, 05 Jun 2012 17:55:24 +0200
branchnew-model
changeset 909 aa0e42229784
child 945 7d9f6fd6f904
permissions -rw-r--r--
Started reworking on documentation

<!doctype html>
<html>

    <head>
        <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
        <title>Metadataplayer test with HTML5 / MP3 Audio</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 / MP3 Audio (NOT SUPPORTED BY CHROME &amp; FIREFOX)</h1>
        <div id="LdtPlayer"></div>
        <div id="AnnotationsListContainer"></div>
        <script type="text/javascript">
    IriSP.jwplayer_swf_path = "player.swf";
    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: "Sparkline" },
                { type: "Slider" },
                { type: "Controller" },
                { type: "Polemic" },
                { type: "Segments" },
                { type: "Slice" },
                { type: "Arrow" },
                { type: "Annotation" },
                { type: "Tweet" },
                {
                    type: "Tagcloud",
                    segment_annotation_type: "chap"
                },
                {
                    type: "AnnotationsList",
                    container: "AnnotationsListContainer"
                }
            ]
        },
        player:{
            type:'html5-audio',
            video: 'wari_0710.mp3',
            live: true, 
            height: 1, 
            width: 1,
        }
    };
    _myPlayer = new IriSP.Metadataplayer(_config, _metadata);
        </script>
    </body>
</html>