Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

close clients so that switching inputs works for connected client #27

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
a1de45e
close clients so that switching inputs works for connected client
homeautomaton May 13, 2023
1e2db40
much refactoring, better feedback, more remote buttons enabled
homeautomaton May 31, 2023
c7b4770
much refactoring, better feedback, more remote buttons enabled
homeautomaton May 31, 2023
dc048e6
default login credentials
homeautomaton May 31, 2023
81f67cb
updates
homeautomaton May 31, 2023
6d94d7b
fixed channel display
homeautomaton Jun 2, 2023
89a7d02
combined TV app and web into shared lib.js
homeautomaton Jun 4, 2023
272c88e
upgrade
homeautomaton Jun 3, 2023
4ca5859
combined TV app and web into shared lib.js
homeautomaton Jun 4, 2023
c87c059
combined TV app and web into shared lib.js
homeautomaton Jun 4, 2023
9777c49
made project work with emulator
homeautomaton Jun 5, 2023
0487c54
made project work with emulator
homeautomaton Jun 5, 2023
8db23d4
build
homeautomaton Jun 5, 2023
4c84dc2
Shut down ffmpeg processes when not in use
homeautomaton Jun 5, 2023
007f5d1
build
homeautomaton Jun 5, 2023
73eeab2
refactoring
homeautomaton Jun 5, 2023
6e447aa
refactoring
homeautomaton Jun 5, 2023
1b18c8f
make channels 1-based, "0" is OFF, cycle through channels up/down wra…
homeautomaton Jun 6, 2023
185a807
build
homeautomaton Jun 6, 2023
2c10a70
handle stream error
homeautomaton Jun 6, 2023
434a69d
Added ffmpegPath option, and titles for streams
homeautomaton Jun 6, 2023
a9110cb
build
homeautomaton Jun 6, 2023
a028a7a
recognized when server restarted, requiring re-login
homeautomaton Jun 6, 2023
f264328
recognize video stall and set message to avoid blank screen
homeautomaton Jun 6, 2023
89698ad
update todo list/priorities
homeautomaton Jun 6, 2023
4614a37
build
homeautomaton Jun 6, 2023
58785fc
fix to stall detection logic
homeautomaton Jun 6, 2023
494cceb
remove debug alert
homeautomaton Jun 6, 2023
a3d56cd
build
homeautomaton Jun 6, 2023
27d5544
added full-screen option (f) for the browser
homeautomaton Jun 7, 2023
e6d4c7a
build
homeautomaton Jun 7, 2023
4d6c8b6
update icon
homeautomaton Jun 7, 2023
993828a
fixed size and resolution issue when view is changed by another client
homeautomaton Jun 19, 2023
e20274a
fixed 16 camera display, added 9-way, refactored some related logic
homeautomaton Jun 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified CameraDevice/CameraDevice.wgt
Binary file not shown.
Binary file modified CameraDevice/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified CameraDevice/images/tizen_32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 29 additions & 30 deletions CameraDevice/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,46 +5,45 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="Tizen basic template generated by Tizen Web IDE"/>

<title>Tizen Web IDE - Tizen - Samsung Tizen TV basic Application</title>
<title>Camera App</title>

<script src="main.js"></script>
<style>

.container {
position: relative;
text-align: center;
color: white;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}

/* Centered text */
.centered {
font-size: 200px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

</style>
</head>

<body>
<table id="canvas" BGCOLOR="#000000" BORDER=0 CELLSPACING=0 CELLPADDING=0>
<div class="container">
<table id="canvas" BGCOLOR="#000000" BORDER=0 CELLSPACING=0 CELLPADDING=0>
</table>
<div class="centered" id="notice"></div>
</div>
</body>
<script src="main.js"></script>
<script type="text/javascript" src="jsmpeg.min.js"></script>
<script type="text/javascript">
getInfo(function (resp) {
var mode = resp.mode;
var num = 1;
if (mode === 4) {
num = 2;
} else if (mode === 16) {
num = 4;
}
var table = document.getElementById("canvas");
var trs = [];
var tds = [];
for (var i = 1; i < mode + 1; i++) {
if (i !== 1 && (i - 1) % num === 0) {
trs.push('<tr>' + tds.join('\n') + '</tr>');
tds = [];
}
tds.push('<td> <canvas id="canvas' + i + '"/> </td>');
}
trs.push('<tr>' + tds.join('\n') + '</tr>');
table.innerHTML = trs.join('\n');
for (var _i = 0; _i < mode; _i++) {
var url = 'ws://' + serverInfo.ip + ':' + (9999 + _i);
new JSMpeg.Player(url, {
canvas: document.getElementById('canvas' + (_i + 1))
});
}
})
var currentChannel = 0;
var channelCount = 0;
load_lib( function () { getInfo( function (resp) { lib.render( resp ) } ) } )
</script>
</html>
2 changes: 1 addition & 1 deletion CameraDevice/jsmpeg.min.js

Large diffs are not rendered by default.

Loading