Showing
5 changed files
with
63 additions
and
0 deletions
Android_StreamingServer/Iframes.html
0 → 100644
Android_StreamingServer/icon.css
0 → 100644
Android_StreamingServer/icon.png
0 → 100644
11.3 KB
Android_StreamingServer/index.html
0 → 100644
1 | +<!DOCTYPE html> | ||
2 | +<html> | ||
3 | + <head> | ||
4 | + | ||
5 | + <title>실시간 스트리밍</title> | ||
6 | + <meta charset="utf-8"/> | ||
7 | + <style> | ||
8 | + body { | ||
9 | + margin:30px; | ||
10 | + font:1em "맑은 고딕",Cambria,Georgia,sans_serif; | ||
11 | + } | ||
12 | + img.static{ | ||
13 | + position: static; | ||
14 | + } | ||
15 | + </style> | ||
16 | + </head> | ||
17 | + | ||
18 | + <body> | ||
19 | + <img src = "icon.png" class="static" height = "100px" width = "100px"> | ||
20 | + | ||
21 | + | ||
22 | + <div> | ||
23 | + <iframe src="ifames.html" width="1000" height="500" scrolling="no" frameborder="0"> | ||
24 | + <p>Your browser does not support iframes.</p> | ||
25 | + </iframe> | ||
26 | + </div> | ||
27 | + | ||
28 | + </body> | ||
29 | +</html> |
Android_StreamingServer/main.js
0 → 100644
1 | +var http = require('http'); | ||
2 | +var fs = require('fs'); | ||
3 | +var app = http.createServer(function(request,response){ | ||
4 | + var url = request.url; | ||
5 | + if (request.url == '/'){ | ||
6 | + url = '/index.html'; | ||
7 | + } | ||
8 | + if (request.url == '/favicon.ico'){ | ||
9 | + return response.writeHead(404); | ||
10 | + respond.end(); | ||
11 | + return; | ||
12 | + } | ||
13 | + response.writeHead(200); | ||
14 | + response.end(fs.readFileSync(__dirname + url)); | ||
15 | +}); | ||
16 | + | ||
17 | +app.listen(3000); |
-
Please register or login to post a comment