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
8e5a63c4
Commit
8e5a63c4
authored
Apr 24, 2015
by
Awais Jibran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Videos should emit `stop_video` event once the video segment is compelte.
TNL-2008
parent
75d37591
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
common/lib/xmodule/xmodule/js/src/video/03_video_player.js
+14
-7
No files found.
common/lib/xmodule/xmodule/js/src/video/03_video_player.js
View file @
8e5a63c4
...
...
@@ -49,7 +49,8 @@ function (HTML5Video, Resizer) {
update
:
update
,
figureOutStartEndTime
:
figureOutStartEndTime
,
figureOutStartingTime
:
figureOutStartingTime
,
updatePlayTime
:
updatePlayTime
updatePlayTime
:
updatePlayTime
,
logStopVideo
:
logStopVideo
};
VideoPlayer
.
prototype
=
methodsDict
;
...
...
@@ -348,6 +349,8 @@ function (HTML5Video, Resizer) {
this
.
trigger
(
'videoProgressSlider.notifyThroughHandleEnd'
,
{
end
:
true
});
// Emit `stop_video` event
this
.
videoPlayer
.
logStopVideo
();
}
}
}
...
...
@@ -531,12 +534,7 @@ function (HTML5Video, Resizer) {
function
onEnded
()
{
var
time
=
this
.
videoPlayer
.
duration
();
this
.
videoPlayer
.
log
(
'stop_video'
,
{
currentTime
:
this
.
videoPlayer
.
currentTime
}
);
this
.
videoPlayer
.
logStopVideo
();
this
.
trigger
(
'videoControl.pause'
,
null
);
this
.
trigger
(
'videoProgressSlider.notifyThroughHandleEnd'
,
{
...
...
@@ -593,6 +591,15 @@ function (HTML5Video, Resizer) {
this
.
videoPlayer
.
player
.
setPlaybackQuality
(
value
);
}
function
logStopVideo
(){
this
.
videoPlayer
.
log
(
'stop_video'
,
{
currentTime
:
this
.
videoPlayer
.
currentTime
}
);
}
function
onPlaybackQualityChange
()
{
var
quality
;
...
...
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