Developing Java Portlets For Luminis 5
Developing Java Portlets For Luminis 5
1
3/27/2015
Introduction
• The portlet:
Portlet project
Using the developer studio !
• Demo Walkthrough
• Create Portlet Project
• Configure Project
• Add Portlet
• Build
2
3/27/2015
<div class="row">
<div class="block">
<video id="video" width="320" height="240"></video></div>
<div class="block">
<canvas id="canvas" width="320" height="240"></canvas>
</div></div>
<button id="snap" type="button">Play</button>
<button id=“uploadPic" type="button">Upload</button>
</div>
window.addEventListener("DOMContentLoaded", function() {
// Grab elements, create settings, etc.
var canvas = document.getElementById("canvas"),
var snap= document.getElementById(“snap"),
context = canvas.getContext("2d"),
video = document.getElementById("video"),
videoObj = { "video": true },
errBack = function(error) {
console.log("Video capture error: ", error.code);
};
© 2015 ELLUCIAN. CONFIDENTIAL & PROPRIETARY | 11943 9
3
3/27/2015
4
3/27/2015
BufferedReader br = actionRequest.getReader();
JsonParser parser = new JsonParser();
JsonObject objr = (JsonObject)parser.parse(br);
JsonElement je = objr.get("imageData");
InputStream is = new ByteArrayInputStream(Base64.decode(je.getAsString()));
5
3/27/2015
Demo
Summary
6
3/27/2015
Thank you!
Rob MacKay
[email protected]
https://ellucianlive2015.smarteventscloud.com/connect/
publicDashboard.ww