Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
musica_listas_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cristian Mauricio Diaz Canales
musica_listas_backend
Commits
3923c024
Commit
3923c024
authored
Aug 20, 2019
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prueba analytics
parent
ccb20bb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
16 deletions
+21
-16
templates/test/index.html.twig
templates/test/index.html.twig
+21
-16
No files found.
templates/test/index.html.twig
View file @
3923c024
...
...
@@ -48,7 +48,6 @@
<script
src=
"
{{
asset
(
'videojs/video.min.js'
)
}}
"
></script>
<script
src=
"
{{
asset
(
'videojs-plugins/thumbnails/videojs-thumbnails.min.js'
)
}}
"
></script>
<script
src=
"
{{
asset
(
'videojs-plugins/overlay/videojs-overlay.js'
)
}}
"
></script>
<script
src=
"
{{
asset
(
'videojs-plugins/analitycs/videojs-analitycs-2.js'
)
}}
"
></script>
<script>
//uri codificada
var
dmUri
=
"
{{
url
}}
"
;
...
...
@@ -81,24 +80,30 @@
}]
});
player
.
ga
({
'
eventsToTrack
'
:
[
'
start
'
,
'
end
'
,
'
seek
'
,
'
play
'
,
'
pause
'
],
'
debug
'
:
true
});
/*player.analytics({
events: [
{
name: 'play',
label: 'reproduccion video',
action: 'play',
}
]
})*/
}(
window
,
window
.
videojs
));
window
.
player
.
on
(
"
play
"
,
function
(
e
)
{
console
.
log
(
"
Video playback started:
"
+
window
.
player
.
currentTime
());
});
window
.
player
.
on
(
"
pause
"
,
function
(
e
)
{
console
.
log
(
"
Video playback paused:
"
+
window
.
player
.
currentTime
());
});
window
.
player
.
on
(
"
seeking
"
,
function
(
e
)
{
console
.
log
(
"
Video seeking:
"
+
window
.
player
.
currentTime
());
});
window
.
player
.
on
(
"
seeked
"
,
function
(
e
)
{
console
.
log
(
"
Video seek ended:
"
+
window
.
player
.
currentTime
());
});
window
.
player
.
on
(
"
ended
"
,
function
(
e
)
{
console
.
log
(
"
Video playback ended.
"
);
});
</script>
</body>
...
...
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