Skip to content

Commit b8223d2

Browse files
author
luowei
committed
添加了把live1的媒体流推到live2上的配置...
1 parent 2d44dc6 commit b8223d2

File tree

18 files changed

+1141
-0
lines changed

18 files changed

+1141
-0
lines changed
1.5 KB
Binary file not shown.

nginx-test/nginx-x/conf/mime.types

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
2+
types {
3+
text/html html htm shtml;
4+
text/css css;
5+
text/xml xml;
6+
image/gif gif;
7+
image/jpeg jpeg jpg;
8+
application/x-javascript js;
9+
application/atom+xml atom;
10+
application/rss+xml rss;
11+
12+
text/mathml mml;
13+
text/plain txt;
14+
text/vnd.sun.j2me.app-descriptor jad;
15+
text/vnd.wap.wml wml;
16+
text/x-component htc;
17+
18+
image/png png;
19+
image/tiff tif tiff;
20+
image/vnd.wap.wbmp wbmp;
21+
image/x-icon ico;
22+
image/x-jng jng;
23+
image/x-ms-bmp bmp;
24+
image/svg+xml svg svgz;
25+
image/webp webp;
26+
27+
application/java-archive jar war ear;
28+
application/mac-binhex40 hqx;
29+
application/msword doc;
30+
application/pdf pdf;
31+
application/postscript ps eps ai;
32+
application/rtf rtf;
33+
application/vnd.ms-excel xls;
34+
application/vnd.ms-powerpoint ppt;
35+
application/vnd.wap.wmlc wmlc;
36+
application/vnd.google-earth.kml+xml kml;
37+
application/vnd.google-earth.kmz kmz;
38+
application/x-7z-compressed 7z;
39+
application/x-cocoa cco;
40+
application/x-java-archive-diff jardiff;
41+
application/x-java-jnlp-file jnlp;
42+
application/x-makeself run;
43+
application/x-perl pl pm;
44+
application/x-pilot prc pdb;
45+
application/x-rar-compressed rar;
46+
application/x-redhat-package-manager rpm;
47+
application/x-sea sea;
48+
application/x-shockwave-flash swf;
49+
application/x-stuffit sit;
50+
application/x-tcl tcl tk;
51+
application/x-x509-ca-cert der pem crt;
52+
application/x-xpinstall xpi;
53+
application/xhtml+xml xhtml;
54+
application/zip zip;
55+
56+
application/octet-stream bin exe dll;
57+
application/octet-stream deb;
58+
application/octet-stream dmg;
59+
application/octet-stream eot;
60+
application/octet-stream iso img;
61+
application/octet-stream msi msp msm;
62+
63+
audio/midi mid midi kar;
64+
audio/mpeg mp3;
65+
audio/ogg ogg;
66+
audio/x-m4a m4a;
67+
audio/x-realaudio ra;
68+
69+
video/3gpp 3gpp 3gp;
70+
video/mp4 mp4;
71+
video/mpeg mpeg mpg;
72+
video/quicktime mov;
73+
video/webm webm;
74+
video/x-flv flv;
75+
video/x-m4v m4v;
76+
video/x-mng mng;
77+
video/x-ms-asf asx asf;
78+
video/x-ms-wmv wmv;
79+
video/x-msvideo avi;
80+
}

nginx-test/nginx-x/conf/nginx.conf

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
2+
worker_processes 1;
3+
4+
events {
5+
worker_connections 1024;
6+
}
7+
8+
9+
http {
10+
include mime.types;
11+
default_type application/octet-stream;
12+
13+
sendfile on;
14+
15+
server {
16+
listen 85;
17+
server_name localhost;
18+
19+
location / {
20+
root html;
21+
index index.html index.htm;
22+
}
23+
24+
error_page 500 502 503 504 /50x.html;
25+
location = /50x.html {
26+
root html;
27+
}
28+
29+
# rtmp stat
30+
location /stat {
31+
rtmp_stat all;
32+
rtmp_stat_stylesheet stat.xsl;
33+
}
34+
location /stat.xsl {
35+
root html;
36+
}
37+
# rtmp control
38+
location /control {
39+
rtmp_control all;
40+
}
41+
42+
}
43+
44+
}
45+
46+
#rtmp config
47+
include rtmp.conf;

nginx-test/nginx-x/conf/rtmp.conf

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# this IP : 127.0.0.1
2+
3+
4+
rtmp{
5+
server{
6+
listen 1935;
7+
chunk_size 8192;
8+
9+
application live1{
10+
#�����Լ����⣬�ܾ������������Ӧ����ý����
11+
#allow publish 192.168.0.0/24;
12+
allow publish 127.0.0.1;
13+
deny publish all;
14+
15+
#���������˲���ý����
16+
#allow play 127.0.0.1;
17+
#deny play all;
18+
allow play all;
19+
20+
#��ֱ��֧��
21+
live on;
22+
meta copy;
23+
24+
#��ý����(test)�Ƶ�live2��
25+
#push rtmp://Twitch.tv/app/key;
26+
#push rtmp://FRIENDS.IP/app/key;
27+
push rtmp://127.0.0.1/live2/test2;
28+
29+
}
30+
application live2{
31+
#live2ֻ����ipΪ127.0.0.1�Ŀͻ�����������
32+
#allow publish FRIENDS IP;
33+
allow publish 127.0.0.1;
34+
deny publish all;
35+
36+
#�������еĿͻ��˲�����
37+
allow play all;
38+
39+
#��ֱ��
40+
live on;
41+
meta copy;
42+
}
43+
}
44+
}

nginx-test/nginx-x/html/50x.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Error</title>
5+
<style>
6+
body {
7+
width: 35em;
8+
margin: 0 auto;
9+
font-family: Tahoma, Verdana, Arial, sans-serif;
10+
}
11+
</style>
12+
</head>
13+
<body>
14+
<h1>An error occurred.</h1>
15+
<p>Sorry, the page you are looking for is currently unavailable.<br/>
16+
Please try again later.</p>
17+
<p>If you are the system administrator of this resource then you should check
18+
the <a href="http://nginx.org/r/error_log">error log</a> for details.</p>
19+
<p><em>Faithfully yours, nginx.</em></p>
20+
</body>
21+
</html>

nginx-test/nginx-x/html/index.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Welcome to nginx!</title>
5+
<style>
6+
body {
7+
width: 35em;
8+
margin: 0 auto;
9+
font-family: Tahoma, Verdana, Arial, sans-serif;
10+
}
11+
</style>
12+
</head>
13+
<body>
14+
<h1>Welcome to nginx!</h1>
15+
<script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
16+
<script type="text/javascript">jwplayer.key="Y3ov5YsCxOP6Q4wTSY9lpbUZExQl8SNrNOYggw==";</script>
17+
18+
<div id="myElement">Loading the player...</div>
19+
20+
<script type="text/javascript">
21+
jwplayer("myElement").setup({
22+
//Á¬µ½live2Éϲ¥·Ålive1ÍÆÀ´µÄÊÓÆµ
23+
file:"rtmp://127.0.0.1/live2/flv:test2",
24+
height:480,
25+
width:720
26+
});
27+
</script>
28+
29+
</body>
30+
</html>
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<title>README: JW Player</title>
5+
<style>
6+
body { padding: 50px 100px; width: 700px; font: 13px/20px Arial; background: #FFF; }
7+
a, h1, h2 { color: #369; }
8+
h2 { margin-top: 50px; }
9+
pre { font-size: 12px; background:#E5F3C8; padding:5px 10px; border: 1px solid #D3EAA4; }
10+
dt { font-weight: bold; }
11+
</style>
12+
</head><body>
13+
14+
<h1>README: JW Player</h1>
15+
16+
<p>Thank you for downloading JW Player 6, the world's most popular HTML5/Flash video player! See <a href="http://www.longtailvideo.com/support/jw-player/28832/about-jw-player">About JW Player</a> for an overview of supported browsers/devices, as well as a more detailed feature list. See the <a href="http://www.longtailvideo.com/support/jw-player/28835/release-notes">Release Notes</a> if you want to learn what changed with this latest release.</p>
17+
18+
<h2>Quick Start</h2>
19+
20+
<p>Copy the <strong>jwplayer</strong> folder that contains this README to the www root of your website. Next, include the <em>jwplayer.js</em> script in the &lt;head&gt; of your HTML page.</p>
21+
22+
<p>If you have purchased the <a href="http://www.longtailvideo.com/jw-player/pricing/">Pro, Premium or Ads edition</a> of JW Player, its features can be activated by inserting your server-less JW Player license key in the second line:</p>
23+
24+
<pre>
25+
&lt;script type="text/javascript" src="/jwplayer/jwplayer.js"&gt;&lt;/script&gt;
26+
&lt;script type="text/javascript"&gt;jwplayer.key="ABCDEFGHIJKLMOPQ";&lt;/script&gt;
27+
</pre>
28+
29+
<p>Note: A key is not required to use the Free edition, but will still be available from your <a href="https://account.longtailvideo.com/">JW Player Account</a>. Including your key will enable the free <a href="http://www.longtailvideo.com/support/jw-player/28852/using-jw-player-analytics">JW Player Analytics</a> for your account.</p>
30+
31+
<h3>Embed Code</h3>
32+
33+
<p>When the script and key are set, scroll down to the &lt;body&gt; of your HTML page and insert the JW Player embed code at the place you want your video to appear:</p>
34+
35+
<pre>
36+
&lt;div id="myElement"&gt;Loading the player...&lt;/div&gt;
37+
38+
&lt;script type="text/javascript"&gt;
39+
jwplayer("myElement").setup({
40+
file: "/uploads/myVideo.mp4",
41+
image: "/uploads/myPoster.jpg"
42+
});
43+
&lt;/script&gt;
44+
</pre>
45+
46+
<p>See <a href="http://www.longtailvideo.com/support/jw-player/28839/embedding-the-player">Embedding JW Player</a> for a more elaborate description of options and some example embeds.</p>
47+
48+
<p><em>Note two very common issues prevent smooth video playback in Internet Explorer 9/10. First, you need to set <strong>&lt;!DOCTYPE html&gt;</strong> to prevent triggering IE's compatibility mode. Second, your videos must be served with the <strong>video/mp4</strong> mimetype. Not doing so will cause IE not to play them. See our <a href="http://www.longtailvideo.com/support/jw-player/28840/troubleshooting-your-setup">troubleshooting guide</a> for more common issues.</em></p>
49+
50+
<h3>Premium Skins</h3>
51+
52+
<p>If you have purchased the Premium or Ads edition of the player, your player includes a set of Premium skins. These skins can be downloaded from your <a href="https://account.longtailvideo.com/">JW Player Account</a>, but you can also load them off our CDN by simply inserting the skin name:</p>
53+
<pre> skin: "bekle"</pre>
54+
55+
<p>See <a href="http://www.longtailvideo.com/support/jw-player/28846/using-jw-player-skins">Using JW Player Skins</a> for more info.</p>
56+
57+
58+
59+
<h2>Documentation</h2>
60+
61+
<p>If you need help, the LongTail Support Community contains a wealth of information, including guides on:</p>
62+
63+
<ul>
64+
<li>Supported <a href="http://www.longtailvideo.com/support/jw-player/28836/media-format-support">Media Formats</a> and <a href="http://www.longtailvideo.com/support/jw-player/28837/browser-device-support">Browsers &amp; Devices</a>.</li>
65+
<li> How to <a href="http://www.longtailvideo.com/support/jw-player/28839/embedding-the-player">Customize</a> and <a href="http://www.longtailvideo.com/support/jw-player/28840/troubleshooting-your-setup">Troubleshoot</a> your embeds.</li>
66+
<li>Configuring <a href="http://www.longtailvideo.com/support/jw-player/28842/working-with-playlists">Inline Playlists</a> or <a href="http://www.longtailvideo.com/support/jw-player/28843/loading-rss-feeds">RSS Feeds</a> (with multiple formats/qualities).</li>
67+
<li>The <a href="http://www.longtailvideo.com/support/jw-player/28846/using-jw-player-skins">PNG Skinning Model</a> and <a href="http://www.longtailvideo.com/support/jw-player/28850/using-the-javascript-api">JavaScript API</a>.</li>
68+
<li>Using <a href="http://www.longtailvideo.com/support/jw-player/28854/using-rtmp-streaming">RTMP Streaming</a> and <a href="http://www.longtailvideo.com/support/jw-player/28856/using-apple-hls-streaming/">Apple HLS</a> (Premium/Ads edition only).</li>
69+
<li>How to <a href="http://www.longtailvideo.com/support/jw-player/28862/configuring-video-ads">Configure Video Ads</a> (Ads edition only).</li>
70+
</ul>
71+
72+
<p>Visit our <a href="http://www.longtailvideo.com/support/forums/jw-player/">Support Forums</a> for setup problems, bug reports or suggestions for new features or enhancements. The forums are very active and frequently visited by members of the JW Player development team. Please see your <a href="http://account.longtailvideo.com">JW Player Account</a> for more information on obtaining technical support.</p>
73+
74+
<p>Follow the <a href="http://www.longtailvideo.com/blog/">LongTail Video Blog</a> for news on the JW Player and online video in general. We frequently publish posts on topics such as HTML5, video SEO, H.264, VAST advertising, etc. You can also <a href="http://twitter.com/longtailvideo">follow us on Twitter</a> or <a href="http://www.facebook.com/longtailvideo">like us on Facebook</a> to stay connected.</p>
75+
76+
77+
78+
<h2>Licensing</h2>
79+
80+
<p>Please be aware that each player edition has its own license:</p>
81+
82+
<dl>
83+
<dt>JW Player Free</dt>
84+
<dd>Under the terms of our <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons license</a>, you can use, modify and redistribute the player for non-commercial purposes only.
85+
Commercial sites must <a href=" http://www.longtailvideo.com/jw-player/pricing/">purchase a license</a> for the <strong>Pro</strong>, <strong>Premium</strong> or <strong>Ads</strong> editions. See the <a href="http://www.longtailvideo.com/jw-player/license/jw-player-license-text">JW Player 6 License</a> for further details.</dd>
86+
<dt>JW Player Pro</dt>
87+
<dd>
88+
Under the terms of our <a href="http://www.longtailvideo.com/jw-player/license/jw-player-license-text">Commercial License</a>, you can deploy your copy of JW Player <strong>Pro</strong> for commercial use on 1 domain. See our <a href="http://www.longtailvideo.com/jw-player/pricing/">pricing page</a> for more information on edition features and pricing.
89+
</dd>
90+
<dt>JW Player Premium</dt>
91+
<dd>
92+
Under the terms of our <a href="http://www.longtailvideo.com/jw-player/license/jw-player-license-text">Commercial License</a>, you can deploy your copy of JW Player <strong>Premium</strong> for commercial use on up to 10 domains. See our <a href="http://www.longtailvideo.com/jw-player/pricing/">pricing page</a> for more information on edition features and pricing.
93+
</dd>
94+
<dt>JW Player Ads</dt>
95+
<dd>
96+
Under the terms of our <a href="http://www.longtailvideo.com/jw-player/license/jw-player-license-text">Commercial License</a>, you can deploy your copy of JW Player <strong>Ads</strong> for commercial use on up to 10 domains, with an additional restriction of up to 250.000 filled ad impressions per month. See our <a href="http://www.longtailvideo.com/jw-player/pricing/">pricing page</a> for more information on edition features and price.</dd>
97+
</dl>
98+
99+
<p>Examples of <strong>commercial use</strong> includes websites with any advertisements, websites owned or operated by businesses, websites designed to promote products or services, and tools (e.g. a CMS) that bundle JW Player in their offering.</p>
100+
101+
<p>Note all editions of JW Player incorporate the <a href="http://www.movable-type.co.uk/scripts/tea-block.html">Block TEA library</a> from Movable Type (CC-BY license).</p>
102+
103+
104+
</body>
105+
</html>
162 KB
Binary file not shown.

0 commit comments

Comments
 (0)