forked from Teaonly/android-eye
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
320 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
var supportedSize = new Array(); | ||
var planeWidth = 0; | ||
var planeHeight = 0; | ||
var basicURL = ""; | ||
|
||
var onPlayClick = function () { | ||
|
||
}; | ||
|
||
var onQueryDone = function (ret) { | ||
$("#debug_msg").html(ret); | ||
$("#btn_play").removeClass('ui-disabled'); | ||
} | ||
var onQueryError = function () { | ||
$("#debug_msg").html("连接视频错误,请刷新重试!"); | ||
} | ||
|
||
$("#page_main").live("pageinit", function() { | ||
basicURL = $(location).attr('href'); | ||
|
||
var screenHeight = $(window).height(); | ||
var screenWidth = $(window).width(); | ||
planeHeight = Math.round( screenHeight * 0.5); | ||
planeWidth = Math.round( screenWidth * 0.80); | ||
|
||
$("#video_plane").width(planeWidth); | ||
$("#video_plane").height(planeHeight); | ||
|
||
$("#btn_play").addClass('ui-disabled'); | ||
$("#btn_play").click(onPlayClick); | ||
|
||
$("#debug_msg").html(basicURL); | ||
$.ajax({ | ||
url: "http://192.168.0.102:8080/cgi/query", | ||
cache: false, | ||
error: onQueryError, | ||
success: onQueryDone | ||
}); | ||
}); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
div.live_image_box { | ||
display: block; | ||
background-color: black; | ||
text-align:center; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
|
||
div.center { | ||
text-align:center; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
|
||
#bottom_div { | ||
position: absolute; | ||
bottom:0; | ||
right:0; | ||
margin:auto 0; | ||
} | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,51 @@ | ||
<h1>Hello World</h1> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>远程视讯监控王</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="res/jquery.mobile-1.1.1.min.css" /> | ||
<link rel="stylesheet" href="extern.css"> | ||
<script src="res/jquery-1.7.1.min.js"></script> | ||
<script src="res/jquery.mobile-1.1.1.min.js"></script> | ||
<script src="droideye.js"></script> | ||
</head> | ||
<body> | ||
|
||
<!-- | ||
/********************************************************* | ||
* Main page | ||
* | ||
*********************************************************/ | ||
--> | ||
<div data-role="page" data-title="login" id="page_main" data-theme="c" > | ||
<div data-role="header"> | ||
<h2>视频控制面板</h2> | ||
</div> | ||
|
||
<div data-role="content"> | ||
<ul data-role="listview" data-inset="true" > | ||
<li> | ||
<div class="live_image_box" id="video_plane"> | ||
<img id="live_image" src="images/black.png"> | ||
</div> | ||
</li> | ||
<li data-role="fieldcontain" class="center"> | ||
<div class="center"> | ||
<span>选择视频分辨率:</span> | ||
<select name="resolution-choice" id="resolution-choice" data-native-menu="false"> | ||
</select> | ||
</div> | ||
<a href="#" data-role="button" id="btn_play">播放视频</a> | ||
</li> | ||
</ul> | ||
<!-- for debug --> | ||
<div id="bottom_div"> | ||
<span id="debug_msg">正在连接视频</span> | ||
</div> | ||
</div><!-- /content --> | ||
|
||
</div><!-- page --> | ||
|
||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters