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
7bde9158
Commit
7bde9158
authored
Mar 08, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Plain Diff
Merged heads
parents
d7296902
ea1b2f98
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
video_init.js
+13
-4
No files found.
video_init.js
View file @
7bde9158
...
@@ -65,13 +65,22 @@ l.sort(sort_by_value);
...
@@ -65,13 +65,22 @@ l.sort(sort_by_value);
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
video_speed
=
$
.
cookie
(
"video_speed"
);
video_speed
=
$
.
cookie
(
"video_speed"
);
console
.
log
(
"ready"
);
console
.
log
(
video_speed
);
if
((
!
video_speed
)
||
(
!
streams
[
video_speed
]
))
{
//ugly hack to account for different formats in vid speed in the XML (.75 vs 0.75, 1.5 vs 1.50);
if
((
!
video_speed
)
||
(
!
streams
[
video_speed
]
&&
!
streams
[
video_speed
+
"0"
])
&&
!
streams
[
video_speed
.
slice
(
0
,
-
1
)]
&&
!
streams
[
video_speed
.
slice
(
1
)]
&&
!
streams
[
"0"
+
video_speed
])
{
video_speed
=
"1.0"
;
video_speed
=
"1.0"
;
}
}
console
.
log
(
video_speed
);
if
(
streams
[
video_speed
+
"0"
]){
video_speed
=
video_speed
+
"0"
;
}
else
if
(
streams
[
video_speed
.
slice
(
0
,
-
1
)]){
video_speed
=
video_speed
.
slice
(
0
,
-
1
);
}
else
if
(
streams
[
video_speed
.
slice
(
1
)])
{
video_speed
=
video_speed
.
slice
(
1
);
}
else
if
(
streams
[
"0"
+
video_speed
])
{
video_speed
=
"0"
+
video_speed
;
}
loadNewVideo
(
streams
[
"1.0"
],
streams
[
video_speed
],
$
{
position
});
loadNewVideo
(
streams
[
"1.0"
],
streams
[
video_speed
],
$
{
position
});
for
(
var
i
=
0
;
i
<
l
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
l
.
length
;
i
++
)
{
...
...
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