Professional Documents
Culture Documents
2 SamsungSmartTVTutorial
2 SamsungSmartTVTutorial
Presenter: Tuan Nguyen, Ph.D. University of Information Technology tuanna@uit.edu.vn www.facebook.com/tuannguyenuit Google: tuan nguyen uit, tuanubicom
Your Logo
Agenda
1 2
Introduction to Samsung SmartTV SDK Core technologies for SmartTV: HTML5, CSS3, and Javascript
3 4
5
Section 1
Your Logo
4
Application Structure
Application Architecture
Your Logo
6
Your Logo
7
Ci t SDK
Download SDK: Version 4.1
http://www.samsungdforum.com/Devtools/SdkA rchive SDK for Win 7, MacOSX, SDK Emulator Image for Virtual Box Ci DirectX 2010. http://www.microsoft.com/enus/download/details.aspx?id=9033
Your Logo
8
Mt s lu khi ci SDK
Windows 7
Java SDK (32bit) Ci DirectX Ci Virtual Box
MacOSX
Boot Mac di mode 32 bit
Gi phm 3,2 trn bn phm Test uname a
Your Logo
9
10
Your Logo
11
Your Logo
12
Project template
Light Color
Your Logo
13
Your Logo
Section 2
Your Logo
15
HTML5
HTML5 l mt s hp tc gia World Wide Web Consortium (W3C) v the Web Hypertext Application Technology Working Group (WHATWG) to ra mt phin bn mi ca HTML.
Cc tnh nng mi phi da trn HTML, CSS, DOM, v JavaScript Gim thiu s ph thuc cc plugins ngoi (nh Flash) X l li tt hn, Nhiu tags hn thay v dng scripts HTML5 phi c lp thit b Qu trnh pht trin phi cho cho cng chng thy.
Your Logo
16
Your Logo
17
Browser support
HTML5 vn cha c cng b chnh thc v cha c browsers no hon ton h tr HTML5 Tuy nhin, cc browser ph bin nh Chrome, Firefox, Opera, IE, c nhng h tr cho HTML5 (http://html5test.com)
Your Logo
18
V d HTML5
<!DOCTYPE HTML> <html> <body> <video width="320" height="240" controls> <source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> Your browser does not support the video tag. </video> </body> </html>
http://html5demos.com/
Your Logo
19
CSS3
CSS - Cascading Style Sheets, l mt markup language dng web dng m t giao din v nh dng ca mt website trn browser. Thng thng CSS c th c dng trong HTML, XHTML, nhng c th c trong XML, SVG CSS3 ngha l CSS phin bn 3.
Nm 1997-2001 CSS1 Nm 2001-2006 CSS2 Nm 2007-n nay CS3
Your Logo
20
Your Logo
21
CSS3 modules
CSS3 c chia thnh modules
The Box Model Lists Module Hyperlink Presentation Speech Module Backgrounds and Borders Text Effects Multi-Column Layout
Your Logo
23
Your Logo
24
Lu quan trng:
SmartTV chy Linux OS (Ubuntu) nn n phn bit ch hoa thng (case sensitive)
Your Logo
25
Javascript
L mt Scripting language,hng i tng
Lightweight programming language pht trin bi Netscape Thng dch, khng phi bin dch
Your Logo
26
Your Logo
27
frame
event
history
document
location
navigator
screen
document
anchor
form
image
link
style
tag
button
checkbox
input
radio
reset
select
submit
textarea
Your Logo
28
Samsung APIs
Your Logo
31
Section 3
Your Logo
32
Your Logo
33
Flash Builder
Flash Builder (old name Flex Builder) c xy dng t Eclipse IDE chuyn dng cho pht trin actionscript. Flash Builder c thit k cho cc lp trnh vin to ra cc tc v phc tp hn cho app m khng th lm c trong Flash Pro.
Your Logo
34
Flash Pro
Your Logo
35
Your Logo
36
Your Logo
37
Your Logo
38
V d: App mu ca Samsung
Link download http://samsungdforum.com/Guide/tut00081 /index.html
Your Logo
39
Section 4
Cc hnh vi m SDK h tr
Nhn dng bn tay Nhn dng hai tay, like, zoom
Your Logo
41
Gesture Recognition
Your Logo
42
43
X l s kin
handleRecognitionEvent: function (evt) case "EVENT_GESTURE_SECONDARY_DETECT": { this.updateKeyHelpDetailed(this.mainHel var delta, degree; pbarTwoHand, this.previewHelpbarTwoHand, switch (evt.eventtype) { this.hands.TWO); case "EVENT_GESTURE_BEGIN_MONITOR": break; case "EVENT_GESTURE_SECOND_HAND_LOST": if (this.transformed) { case "EVENT_GESTURE_2HAND_ZOOM": alert("was transformed"); this.transformation_begin(); this.transformed = false; var delta = evt.result; Grid.transformation_end(); Grid.zoom(delta); break; } case "EVENT_GESTURE_2HAND_ROTATE": this.updateKeyHelpDetailed( this.transformation_begin(); this.mainHelpbarOneHand, var degree = evt.result; this.previewHelpbarOneHand, Grid.rotation(degree); this.hands.ONE); break; break; case "EVENT_GESTURE_LIKE": Grid.like_photo(); break; } } Your Logo
45
Kt lun
Pht trin ng dng trn Smart TV l mt k thut kt hp nhun nhuyn:
HTML5, CSS3, JavaScript, Flash,
Giao din cc ln, v s h tr multimedia lm Smart TV ni bt ln so vi cc nn tng khc. Kh nng nhn dng hnh vi mang li nhng tri nghim mi l cho ngi dng.
SNG TO, THNG MINH, K THUT
46
Your Logo
DEMONSTRATION, Q&A
Thng tin lin h: Ging vin: TS. Nguyn Anh Tun , tuanna@uit.edu.vn , 093 221 5030 Khoa mng my tnh & Truyn Thng Trng i Hc Cng Ngh Thng Tin Tr ging: 1. KS. Nguyn Thnh Vinh, vinhnt@uit.edu.vn, 0121 771 0002 2. KS. Nguyn Vn Thiu , vanthieuuit@gmail.com, 097 723 1048 Your Logo
47