Fix metadata and embed code on watch and embed

This commit is contained in:
Omar Roth
2018-08-01 10:45:45 -05:00
parent ea8aaf3145
commit 01d23c6191
2 changed files with 11 additions and 7 deletions

View File

@@ -84,7 +84,9 @@ var shareOptions = {
url: "<%= host_url %>/<%= video.id %>?<%= host_params %>",
title: "<%= video.title %>",
description: "<%= description %>",
image: '<%= thumbnail %>'
image: '<%= thumbnail %>',
embedCode: `<iframe id='ivplayer' type='text/html' width='640' height='360'
src='<%= host_url %>/embed/<%= video.id %>?<%= host_params %>' frameborder='0'></iframe>`
};
var player = videojs('player', options, function() {