Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
d46545e5
You need to sign in or sign up before continuing.
Commit
d46545e5
authored
Aug 09, 2017
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chrome向けvideoタグ controlsList="nodownload" 追加
parent
934573a6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
abvw/js/contentview.js
+5
-5
abvw/js/contentview_CreateObjects.js
+2
-2
No files found.
abvw/js/contentview.js
View file @
d46545e5
...
@@ -2311,13 +2311,13 @@ CONTENTVIEW.handleForContentTypeVideo = function(resourceUrl){
...
@@ -2311,13 +2311,13 @@ CONTENTVIEW.handleForContentTypeVideo = function(resourceUrl){
$container
.
html
(
''
);
$container
.
html
(
''
);
if
(
ClientData
.
userOpt_musicMode
()
==
"1"
)
{
if
(
ClientData
.
userOpt_musicMode
()
==
"1"
)
{
$container
.
html
(
'<video id="content_video" autoplay="true" loop="true" controls="controls" style="position: absolute; width: 100%; height: 100%;">'
$container
.
html
(
'<video id="content_video" autoplay="true" loop="true" controls="controls"
controlsList="nodownload"
style="position: absolute; width: 100%; height: 100%;">'
+
' <source src="'
+
resourceUrl
+
'" type="video/mp4"> '
+
' <source src="'
+
resourceUrl
+
'" type="video/mp4"> '
+
'</video>'
+
'</video>'
);
);
}
}
else
{
else
{
$container
.
html
(
'<video id="content_video" autoplay="true" controls="controls" style="position: absolute; width: 100%; height: 100%;">'
$container
.
html
(
'<video id="content_video" autoplay="true" controls="controls"
controlsList="nodownload"
style="position: absolute; width: 100%; height: 100%;">'
+
' <source src="'
+
resourceUrl
+
'" type="video/mp4"> '
+
' <source src="'
+
resourceUrl
+
'" type="video/mp4"> '
+
'</video>'
+
'</video>'
);
);
...
@@ -4974,7 +4974,7 @@ CONTENTVIEW.showVideoObject = function(x, y, width, height, src, isFullscreen) {
...
@@ -4974,7 +4974,7 @@ CONTENTVIEW.showVideoObject = function(x, y, width, height, src, isFullscreen) {
$
(
'#playvideo'
).
html
(
'<video class="mov" id="videoOnPage" '
+
$
(
'#playvideo'
).
html
(
'<video class="mov" id="videoOnPage" '
+
'width="'
+
(
pt2
.
x
-
pt1
.
x
)
+
'" '
+
'width="'
+
(
pt2
.
x
-
pt1
.
x
)
+
'" '
+
'height="'
+
(
pt2
.
y
-
pt1
.
y
)
+
'" '
+
'height="'
+
(
pt2
.
y
-
pt1
.
y
)
+
'" '
+
'autoplay controls loop>'
+
'autoplay controls
controlsList="nodownload"
loop>'
+
' <source src="'
+
src
+
'" type="video/mp4"> '
+
' <source src="'
+
src
+
'" type="video/mp4"> '
+
//' <source src="' + src + '&key=' + (new Date()).toIdString() + '" type="video/mp4"> ' +
//' <source src="' + src + '&key=' + (new Date()).toIdString() + '" type="video/mp4"> ' +
//' <source src="' + src + '&key=' + (new Date()).toIdString() + '" type="video/ogg"> ' +
//' <source src="' + src + '&key=' + (new Date()).toIdString() + '" type="video/ogg"> ' +
...
@@ -4985,7 +4985,7 @@ CONTENTVIEW.showVideoObject = function(x, y, width, height, src, isFullscreen) {
...
@@ -4985,7 +4985,7 @@ CONTENTVIEW.showVideoObject = function(x, y, width, height, src, isFullscreen) {
$
(
'#playvideo'
).
html
(
'<video class="mov" id="videoOnPage"'
+
$
(
'#playvideo'
).
html
(
'<video class="mov" id="videoOnPage"'
+
'width="'
+
(
pt2
.
x
-
pt1
.
x
)
+
'" '
+
'width="'
+
(
pt2
.
x
-
pt1
.
x
)
+
'" '
+
'height="'
+
(
pt2
.
y
-
pt1
.
y
)
+
'" '
+
'height="'
+
(
pt2
.
y
-
pt1
.
y
)
+
'" '
+
'autoplay controls>'
+
'autoplay controls
controlsList="nodownload"
>'
+
//' <source src="' + src + '&key=' + (new Date()).toIdString() + '" type="video/mp4"> ' +
//' <source src="' + src + '&key=' + (new Date()).toIdString() + '" type="video/mp4"> ' +
' <source src="'
+
src
+
'" type="video/mp4"> '
+
' <source src="'
+
src
+
'" type="video/mp4"> '
+
'</video>'
'</video>'
...
@@ -4995,7 +4995,7 @@ CONTENTVIEW.showVideoObject = function(x, y, width, height, src, isFullscreen) {
...
@@ -4995,7 +4995,7 @@ CONTENTVIEW.showVideoObject = function(x, y, width, height, src, isFullscreen) {
}
else
{
}
else
{
$
(
'#playvideo'
).
attr
(
'z-order'
,
'1000'
);
$
(
'#playvideo'
).
attr
(
'z-order'
,
'1000'
);
$
(
'#playvideo'
).
html
(
'<video class="mov" id="videoOnPage" src="'
+
src
+
'" '
+
$
(
'#playvideo'
).
html
(
'<video class="mov" id="videoOnPage" src="'
+
src
+
'" '
+
'autoplay controls></video>'
);
'autoplay controls
controlsList="nodownload"
></video>'
);
}
}
//CONTENTVIEW.showControlsVideo($('#videoOnPage'));
//CONTENTVIEW.showControlsVideo($('#videoOnPage'));
...
...
abvw/js/contentview_CreateObjects.js
View file @
d46545e5
...
@@ -2566,7 +2566,7 @@ CONTENTVIEW_CREATEOBJECT.createVideoFulScreen = function(video, id) {
...
@@ -2566,7 +2566,7 @@ CONTENTVIEW_CREATEOBJECT.createVideoFulScreen = function(video, id) {
' <img src="img/viewer/x.png" style="margin:3px 3px 0px 21px" id="btnCloseVideo" class="align_right" ></img>'
+
' <img src="img/viewer/x.png" style="margin:3px 3px 0px 21px" id="btnCloseVideo" class="align_right" ></img>'
+
'</h1>'
+
'</h1>'
+
' <div id="videoMedia'
+
id
+
'">'
+
' <div id="videoMedia'
+
id
+
'">'
+
' <video style="height:90%; width:100%;" class="mov" id="videoOnPopUp" autoplay controls loop>'
+
' <video style="height:90%; width:100%;" class="mov" id="videoOnPopUp" autoplay controls
controlsList="nodownload"
loop>'
+
' <source src="'
+
video
+
'" type="video/mp4"> '
+
' <source src="'
+
video
+
'" type="video/mp4"> '
+
' </video>'
+
' </video>'
+
' </div>'
' </div>'
...
@@ -2577,7 +2577,7 @@ CONTENTVIEW_CREATEOBJECT.createVideoFulScreen = function(video, id) {
...
@@ -2577,7 +2577,7 @@ CONTENTVIEW_CREATEOBJECT.createVideoFulScreen = function(video, id) {
' <img src="img/viewer/x.png" style="margin:3px 3px 0px 21px" id="btnCloseVideo" class="align_right" width=25px" ></img>'
+
' <img src="img/viewer/x.png" style="margin:3px 3px 0px 21px" id="btnCloseVideo" class="align_right" width=25px" ></img>'
+
'</h1>'
+
'</h1>'
+
' <div id="videoMedia'
+
id
+
'">'
+
' <div id="videoMedia'
+
id
+
'">'
+
' <video style="height:90%; width:100%;" id="videoOnPopUp" class="mov" autoplay controls>'
+
' <video style="height:90%; width:100%;" id="videoOnPopUp" class="mov" autoplay controls
controlsList="nodownload"
>'
+
' <source src="'
+
video
+
'" type="video/mp4"> '
+
' <source src="'
+
video
+
'" type="video/mp4"> '
+
' </video>'
+
' </video>'
+
' </div>'
' </div>'
...
...
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