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
bba76625
Commit
bba76625
authored
Mar 21, 2014
by
David Baumgold
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3015 from louyihua/master
Fix a url processing error in 02_html5_video.js
parents
b54a268f
ce1b6231
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
common/lib/xmodule/xmodule/js/src/video/02_html5_video.js
+6
-6
No files found.
common/lib/xmodule/xmodule/js/src/video/02_html5_video.js
View file @
bba76625
...
...
@@ -186,16 +186,16 @@ function () {
// Create HTML markup for individual sources of the HTML5 <video>
// element.
$
.
each
(
sourceStr
,
function
(
videoType
,
videoSource
)
{
if
(
(
_this
.
config
.
videoSources
[
videoType
])
&&
(
_this
.
config
.
videoSources
[
videoType
].
length
)
)
{
var
url
=
_this
.
config
.
videoSources
[
videoType
];
if
(
url
&&
url
.
length
)
{
sourceStr
[
videoType
]
=
'<source '
+
'src="'
+
_this
.
config
.
videoSources
[
videoType
]
+
'src="'
+
url
+
// Following hack allows to open the same video twice
// https://code.google.com/p/chromium/issues/detail?id=31014
'?'
+
(
new
Date
()).
getTime
()
+
// Check whether the url already has a '?' inside, and if so,
// use '&' instead of '?' to prevent breaking the url's integrity.
(
url
.
indexOf
(
'?'
)
==
-
1
?
'?'
:
'&'
)
+
(
new
Date
()).
getTime
()
+
'" '
+
'type="video/'
+
videoType
+
'" '
+
'/> '
;
}
...
...
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