source: trunk/fl5/js/test/examples/netstreambasepath.html @ 1653

Revision 1653, 2.7 KB checked in by pablo, 3 years ago (diff)

Removing test asset files from player trunk

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>Netstream base path</title>
5        <script type="text/javascript" src="../../bin-debug/jwplayer.js">
6        </script>
7        <script type="text/javascript" src="settings.js">
8        </script>
9        <script src="https://www.google.com/jsapi?key=ABQIAAAAmW4wY4GLARKwRKxx1EY4dxTCwYuWkdD_iTnqF3uxU7_DebvfxBREab8CD-MRcuvG-IzP2uSZrQpweg" type="text/javascript">
10        </script>
11        <script language="Javascript" type="text/javascript">
12            google.load("swfobject", "2");
13        </script>
14    </head>
15    <body>
16        <script type="text/javascript">
17            document.write("<h1>" + document.title + "</h1>");
18        </script>
19        <p>
20            This page sets up a players to test referencing files in the Flash player for the Video and HTTP (streaming) models. You should open Charles and confirm that you do not see any duplicate requests for resources, and that no resources have //, ./, or ../ in their path.
21        </p>
22        <p>
23            It parses a &lt;video&gt; tag and sets up a player in it's place for all browsers.
24        </p>
25        <h2>Video Model</h2>
26        <h3>No netstreambasepath flashvar</h3>
27        <p>
28            This references files based on a relative path, vis-a-vis "./videos/video.mp4"
29        </p>
30                <div id="player1"></div>
31        <script type="text/javascript">
32            var flashvars = {
33                file: escape('http://playertest.longtailvideo.com/bunny.mp4'),
34                                image: 'http://playertest.longtailvideo.com/bunny.png'
35            };
36            var params = {
37                allowfullscreen: 'true',
38                allowscriptaccess: 'always'
39            };
40            var attributes = {
41                id: 'player1',
42                name: 'player1'
43            };
44           
45            swfobject.embedSWF('../../../player.swf', 'player1', '480', '270', '9.0.115', 'false', flashvars, params, attributes);
46        </script>
47        <h3>With netstreambase flashvar</h3>
48        <p>
49            This references files with the netstreambase path set to the current page URL.
50        </p>
51        <video height="270" id="player2" poster="http://playertest.longtailvideo.com/bunny.png" width="480">
52            <source src="http://playertest.longtailvideo.com/bunny.mp4" type="video/mp4" />
53            <p>
54                HTML5 Player should replace this.
55            </p>
56        </video>
57        <script type="text/javascript">
58            jwplayer("player2").setup({
59                players: settings.players(window.location.href, ["flash"])
60            });
61        </script>
62        <h3>HTML code</h3>
63    </body>
64</html>
Note: See TracBrowser for help on using the repository browser.