source: trunk/fl5/js/test/examples/index.html @ 1712

Revision 1712, 9.8 KB checked in by pablo, 2 years ago (diff)

Adding 5.6 test cases

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<html>
3    <head>
4        <title>HTML5 Player Examples</title>
5        <style type="text/css">
6            body {
7                font-family: Arial, Verdana, sans-serif;
8                font-size: .8em;
9                padding-left: 1em;
10            }
11           
12            ul {
13                margin-left: 0;
14                padding: 1em;
15            }
16        </style>
17    </head>
18    <body>
19        <h1>Examples</h1>
20        <ul id="examples">
21        </ul>
22        <script type="text/javascript">
23            var list = document.getElementById("examples");
24            var examplePages = {
25                "Basic Tests": {
26                        "Page with no document type": "nodoctype.html",
27                        "Embedding": {
28                                "Object and embed tags": "objectembed.html",
29                                "Video tag embed": "videotag.html",
30                                "Multiple players": "multiple_players.html",
31                                "File paths": {
32                                        "No file specified": "nofile.html",
33                                        "Invalid file path specified": "badfile.html",
34                                                        "Unkown / no file extension": "noextension.html",
35                                        "Absolute file path": "filepathsabsolute.html",
36                                        "Root file path": "filepathsroot.html",
37                                        "Relative file path": "filepathsrelative.html"
38                                },
39                                                "Mode specific targetting": "modespecificconfig.html",
40                                                "Mode alias": "modealias.html",
41                                "Multiple jwplayer.js": "multiplejwplayerjs.html"
42                        },
43                        "Video codecs": {
44                                "Single MP4": "single_mp4.html",
45                                "Single OGV": "single_ogg.html",
46                                "YouTube": "youtube.html",
47                                "Multiple sources (MP4 and OGV)": "mp4_ogg.html",
48                                "Bitrate switching": "bitrateswitching.html",
49                                "RTMP": "rtmp.html"
50                        }
51                },
52                "Configuration Tests": {
53                                        "Width / Height": "heightwidth.html",
54                                        "Providers": "providers.html", 
55                        "Multiple players with various options": "multiple_customs.html",
56                                        "Components + positions": "components.html",
57                        "Skins": {
58                                "All Skins": "custom_skin.html",
59                                "Invalid skin path specified": "badskin.html",
60                                "Skin redirect": "testskin.html"
61                        },
62                        "Playlists": {
63                                "Progressive download": "playlist.html?type=progressive",
64                                "Progressive video + audio": "playlist.html?type=audio",
65                                "RTMP": "playlist.html?type=rtmp",
66                                "Mixed": "playlist.html?type=mixed",
67                                "XML Playlits": "xmlplaylists.html"
68                        },
69                        "Components": {
70                                "Controlbar": "controlbar.html",
71                                "Logo": "logo.html",
72                                "Dock": "dock.html"
73                        },
74                        "Plugins": {
75                                                "Plugin strings": "pluginstrings.html",
76                                                "Loading and Configuration" : {
77                                                        "Local": {
78                                                                "Absolute referenced": {
79                                                                        "JavaScript": "plugins.html?"+escape('var config = {title:"Absolute Path - JavaScript", plugins:{"http://developer.longtailvideo.com/player/trunk/fl5/js/test/examples/plugins/textplugin.js":{text:"Plugin successfully loaded!"}}}'),
80                                                                        "Flash":"plugins.html?"+escape('var config = {title:"Absolute Path - Flash", plugins:{"http://developer.longtailvideo.com/player/trunk/fl5/js/test/examples/plugins/hd.swf":{"file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}')
81                                                                },
82                                                                "Root referenced": {
83                                                                        "JavaScript": "plugins.html?"+escape('var config = {title:"Root Path - JavaScript", plugins:{"/player/trunk/fl5/js/test/examples/plugins/textplugin.js":{text:"Plugin successfully loaded!"}}}'),
84                                                                        "Flash":"plugins.html?"+escape('var config = {title:"Root Path - Flash", plugins:{"/player/trunk/fl5/js/test/examples/plugins/hd.swf":{"file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}')
85                                                                },
86                                                                "Relatively referenced": {
87                                                                        "JavaScript": "plugins.html?"+escape('var config = {title:"Relative Path - JavaScript", plugins:{"plugins/textplugin.js":{text:"Plugin successfully loaded!"}}}'),
88                                                                        "Flash":"plugins.html?"+escape('var config = {title:"Relative Path - Flash", plugins:{"plugins/hd.swf":{"file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}')
89                                                                },
90                                                                "Bad Path": {
91                                                                        "JavaScript": "plugins.html?"+escape('var config = {title:"Bad Path - JavaScript", plugins:{"plugins/textplugin1.js":{text:"Plugin successfully loaded!"}}}'),
92                                                                        "Flash":"plugins.html?"+escape('var config = {title:"Bad Path - Flash", plugins:{"http://developer.longtailvideo.com/player/trunk/fl5/js/test/examples/plugins/hd1.swf":{"file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}')
93                                                                },
94                                                                "Mixed Mode": {
95                                                                        "CDN": "plugins.html?"+escape('var config = {title:"Mixed Mode - CDN", plugins:{"plugins/hd-cdn.js":{text:"Plugin successfully loaded!", "file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}'),
96                                                                        "Absolute": "plugins.html?"+escape('var config = {title:"Mixed Mode - Absolute", plugins:{"plugins/hd-absolute.js":{text:"Plugin successfully loaded!", "file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}'),
97                                                                        "Root": "plugins.html?"+escape('var config = {title:"Mixed Mode - Root", plugins:{"plugins/hd-root.js":{text:"Plugin successfully loaded!", "file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}'),
98                                                                        "Relative": "plugins.html?"+escape('var config = {title:"Mixed Mode - Relative", plugins:{"plugins/hd-relative.js":{text:"Plugin successfully loaded!", "file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}'),
99                                                                        "Bad": "plugins.html?"+escape('var config = {title:"Mixed Mode - Bad", plugins:{"plugins/hd-bad.js":{text:"Plugin successfully loaded!", "file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}')
100                                                                },
101                                                                "Dock buttons" : {
102                                                                        "Flash": "docksetbutton.html?flash",
103                                                                        "Html5": "docksetbutton.html?html5"
104                                                                }
105                                                                //"Flash Only": "plugins/local/flash.html",
106                                                                //"Multiple plugins": "plugins/local/multiple.html",
107                                                                //"Versioning": "plugins/local/versioning.html"
108                                                        },
109                                                        "Hosted": {
110                                                                "JavaScript": "plugins.html?"+escape('var config = {title:"Absolute Path - JavaScript", plugins:{"textplugin":{text:"Plugin successfully loaded!"}}}'),
111                                                                "Flash":"plugins.html?"+escape('var config = {title:"Absolute Path - Flash", plugins:{"hd":{"file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}')
112                                                        }
113                                                }
114                                        },
115                        "Stretching": "stretching.html",
116                        "Chromeless": "chromeless.html"
117                },
118                "API": {
119                        "Utilities": {
120                                "API": "api.html",
121                                "Event listeners": "listeners.html"
122                        },
123                        "Setup / remove": "setupandremove.html",
124                        "Unit Tests": {
125                                "Events (in setup block)": "apiunittesteventssetup.html",
126                                "Events (dynamic)": "apiunittesteventsdynamic.html",
127                                "Play": "apiunittestplay.html",
128                                "Pause": "apiunittestpause.html",
129                                "Mute": "apiunittestmute.html",
130                                "Fullscreen": "apiunittestfullscreen.html"
131                        },
132                        "Resize": "resize.html",
133                        "Load": "load.html"
134                },
135                "Common Libraries": {
136                        "Dojo": "libraries/dojo.html",
137                        "Ext Core": "libraries/ext-core.html",
138                        "jQuery": "libraries/jquery.html",
139                        "MooTools": "libraries/mootools.html",
140                        "Prototype": "libraries/prototype.html",
141                        "Scriptaculous": "libraries/scriptaculous.html",
142                        "SWFObject": "libraries/swfobject.html",
143                        "YUI": "libraries/yui.html"
144                },
145                "Player 5.4": {
146                        "Bugs": {
147                                "Social media": "socialmedia.html",
148                                "Loading HTML instead of a skin": "htmlskin.html",
149                                "Firefox bug": "ff3bug.html#",
150                                "FLV failover": "failover.html",
151                                "Video URLs with query strings": "extensions.html",
152                                "Skins: Controlbar without settings block": "testskin.html"
153                        },
154                        "Features": {
155                                "Apple (Cupertino) Streaming": "m3u8.html",
156                                "Netstream base path": "netstreambasepath.html",
157                                "Settable wmode": "wmode.html",
158                                "Download fallback": "downloadfallback.html"
159                        }
160                },
161                "Player 5.5": {
162                        "Bugs": {
163                                "Embed location": "embedlocation.html"
164                        }
165                },
166                "Player 5.6": {
167                        "Bugs": {
168                                "Switching HTTP mediaprovider": "switchhttp.html",
169                                "Mixed plugin locations": "mixedpluginlocations.html"
170                        },
171                        "Features": {
172                            "Enchanced tabbing capabilities": "tabbing.html", 
173                        }
174                }
175            };
176           
177            function createList(examples, parentDOM) {
178                for (var example in examples) {
179                        var listItem = document.createElement("li");
180                        if (typeof examples[example] == "object") {
181                                listItem.innerHTML = example;
182                                var newList = document.createElement("ul");
183                                listItem.appendChild(newList);
184                                createList(examples[example], newList);
185                        } else {
186                                var link = document.createElement("a");
187                                link.href = examples[example];
188                                link.innerHTML = example;
189                                listItem.appendChild(link);
190                        }
191                        parentDOM.appendChild(listItem);
192                }
193            }
194           
195           
196            createList(examplePages, list);
197        </script>
198    </body>
199</html>
Note: See TracBrowser for help on using the repository browser.