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
ad896974
Commit
ad896974
authored
Mar 04, 2012
by
Piotr Mitros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove info files, change Youtube to use https
parent
d321eb87
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
info_files
+0
-2
video_init.js
+2
-2
No files found.
info_files
deleted
120000 → 0
View file @
d321eb87
../data/info/
\ No newline at end of file
video_init.js
View file @
ad896974
...
@@ -5,7 +5,7 @@ var atts = { id: "myytplayer" };
...
@@ -5,7 +5,7 @@ var atts = { id: "myytplayer" };
// If the user doesn't have flash, use the HTML5 Video instead. YouTube's
// If the user doesn't have flash, use the HTML5 Video instead. YouTube's
// iFrame API which supports HTML5 is still developmental so it is not default
// iFrame API which supports HTML5 is still developmental so it is not default
if
(
swfobject
.
hasFlashPlayerVersion
(
"10.1"
)){
if
(
swfobject
.
hasFlashPlayerVersion
(
"10.1"
)){
swfobject
.
embedSWF
(
"http:
//www.youtube.com/apiplayer?enablejsapi=1&playerapiid=ytplayer?wmode=transparent"
,
swfobject
.
embedSWF
(
document
.
location
.
protocol
+
"
//www.youtube.com/apiplayer?enablejsapi=1&playerapiid=ytplayer?wmode=transparent"
,
"ytapiplayer"
,
"640"
,
"385"
,
"8"
,
null
,
null
,
params
,
atts
);
"ytapiplayer"
,
"640"
,
"385"
,
"8"
,
null
,
null
,
params
,
atts
);
}
else
{
}
else
{
...
@@ -14,7 +14,7 @@ if (swfobject.hasFlashPlayerVersion("10.1")){
...
@@ -14,7 +14,7 @@ if (swfobject.hasFlashPlayerVersion("10.1")){
$
(
"#html5_player"
).
show
();
$
(
"#html5_player"
).
show
();
var
tag
=
document
.
createElement
(
'script'
);
var
tag
=
document
.
createElement
(
'script'
);
tag
.
src
=
"http:
//www.youtube.com/player_api"
;
tag
.
src
=
document
.
location
.
protocol
+
"
//www.youtube.com/player_api"
;
var
firstScriptTag
=
document
.
getElementsByTagName
(
'script'
)[
0
];
var
firstScriptTag
=
document
.
getElementsByTagName
(
'script'
)[
0
];
firstScriptTag
.
parentNode
.
insertBefore
(
tag
,
firstScriptTag
);
firstScriptTag
.
parentNode
.
insertBefore
(
tag
,
firstScriptTag
);
// Make sure the callback is called once API ready, YT seems to be buggy
// Make sure the callback is called once API ready, YT seems to be buggy
...
...
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