Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
5a572bc0
Commit
5a572bc0
authored
Nov 13, 2013
by
Julia Hansbrough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug where Flash photo taker would fail
LMS-1487
parent
ce6ac653
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
17 deletions
+5
-17
lms/static/js/verify_student/CameraCapture.as
+5
-17
lms/static/js/verify_student/CameraCapture.swf
+0
-0
No files found.
lms/static/js/verify_student/CameraCapture.as
View file @
5a572bc0
...
...
@@ -10,6 +10,10 @@
* assign this return value to an img's src attribute.
* reset() restarts the the video.
* imageDataUrl() returns the same thing as snap() --
*
* Note that this file is merely the source code for CameraCapture.swf; to make
* changes, you must edit this file, compile it to .swf, and check in the .swf
* file separately
*/
package
...
...
@@ -37,7 +41,6 @@ package
private
var
camera
:
Camera
;
private
var
video
:
Video
;
private
var
b64EncodedImage
:
String
=
null
;
private
var
permissionGiven
:
Boolean
=
false
;
public
function
CameraCapture
()
{
...
...
@@ -47,7 +50,6 @@ package
protected
function
init
(
e
:
Event
)
:
void
{
camera
=
Camera
.
getCamera
()
;
camera
.
setMode
(
VIDEO_WIDTH
,
VIDEO_HEIGHT
,
30
)
;
camera
.
addEventListener
(
StatusEvent
.
STATUS
,
statusHandler
)
;
video
=
new
Video
(
VIDEO_WIDTH
,
VIDEO_HEIGHT
)
;
video
.
attachCamera
(
camera
)
;
...
...
@@ -106,26 +108,12 @@ package
}
public
function
cameraAuthorized
()
:
Boolean
{
return
permissionGiven
;
return
!
(
camera
.
muted
)
;
}
public
function
hasCamera
()
:
Boolean
{
return
(
Camera
.
names
.
length
!=
0
)
;
}
public
function
statusHandler
(
event
:
StatusEvent
)
:
void
{
switch
(
event
.
code
)
{
case
"Camera.Muted"
:
// User clicked Deny.
permissionGiven
=
false
;
break
;
case
"Camera.Unmuted"
:
// "User clicked Accept.
permissionGiven
=
true
;
break
;
}
}
}
}
lms/static/js/verify_student/CameraCapture.swf
View file @
5a572bc0
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment