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
a0e179f8
Commit
a0e179f8
authored
Oct 28, 2015
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#17378 Chromeで差し替え動画の再生ボタンを連続クリックすると、動画が再生されなくなる
parent
3debc584
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
27 deletions
+48
-27
abvw/js/contentview.js
+48
-27
No files found.
abvw/js/contentview.js
View file @
a0e179f8
...
...
@@ -4758,36 +4758,57 @@ CONTENTVIEW.showVideoObject = function(x, y, width, height, src, isFullscreen) {
pt1
.
y
=
pt1
.
y
-
CONTENTVIEW
.
marginY
;
}
//CONTENTVIEW_GETDATA.getPosVideo(x, y, (pt2.x - pt1.x), (pt2.y - pt1.y));
CONTENTVIEW_GETDATA
.
getPosVideo
(
x
,
y
,
width
,
height
);
if
(
isFullscreen
===
false
)
{
$
(
'#playvideo'
).
attr
(
'z-order'
,
'10000'
);
$
(
'#playvideo'
).
css
(
'left'
,
pt1
.
x
+
'px'
);
$
(
'#playvideo'
).
css
(
'top'
,
pt1
.
y
+
'px'
);
$
(
'#playvideo'
).
children
().
remove
();
if
(
ClientData
.
userOpt_videoMode
()
==
"1"
)
{
/* loop video */
$
(
'#playvideo'
).
html
(
'<video class="mov" id="videoOnPage" '
+
'width="'
+
(
pt2
.
x
-
pt1
.
x
)
+
'" '
+
'height="'
+
(
pt2
.
y
-
pt1
.
y
)
+
'" '
+
'autoplay controls loop>'
+
' <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/ogg"> ' +
'</video>'
);
}
else
{
$
(
'#playvideo'
).
html
(
'<video class="mov" id="videoOnPage"'
+
'width="'
+
(
pt2
.
x
-
pt1
.
x
)
+
'" '
+
'height="'
+
(
pt2
.
y
-
pt1
.
y
)
+
'" '
+
'autoplay controls>'
+
//' <source src="' + src + '&key=' + (new Date()).toIdString() + '" type="video/mp4"> ' +
' <source src="'
+
src
+
'" type="video/mp4"> '
+
'</video>'
);
}
//#17378 Chromeで差し替え動画の再生ボタンを連続クリックすると、動画が再生されなくなる問題の対応
var
isCreateVideo
=
true
;
if
(
$
(
'#videoOnPage'
).
length
){
//表示位置が同じか判定
var
pos
=
$
(
'#playvideo'
).
position
();
if
(
pos
.
left
==
pt1
.
x
&&
pos
.
top
==
pt1
.
y
){
isCreateVideo
=
false
;
}
}
if
(
$
(
'#videoOnPage'
).
length
&&
!
isCreateVideo
){
//ソースのみ入替え
var
videoObj
=
document
.
getElementById
(
'videoOnPage'
);
videoObj
.
setAttribute
(
"src"
,
src
);
videoObj
.
load
();
}
else
{
$
(
'#playvideo'
).
attr
(
'z-order'
,
'10000'
);
$
(
'#playvideo'
).
css
(
'left'
,
pt1
.
x
+
'px'
);
$
(
'#playvideo'
).
css
(
'top'
,
pt1
.
y
+
'px'
);
$
(
'#playvideo'
).
children
().
remove
();
if
(
ClientData
.
userOpt_videoMode
()
==
"1"
)
{
/* loop video */
$
(
'#playvideo'
).
html
(
'<video class="mov" id="videoOnPage" '
+
'width="'
+
(
pt2
.
x
-
pt1
.
x
)
+
'" '
+
'height="'
+
(
pt2
.
y
-
pt1
.
y
)
+
'" '
+
'autoplay controls loop>'
+
' <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/ogg"> ' +
'</video>'
);
}
else
{
$
(
'#playvideo'
).
html
(
'<video class="mov" id="videoOnPage"'
+
'width="'
+
(
pt2
.
x
-
pt1
.
x
)
+
'" '
+
'height="'
+
(
pt2
.
y
-
pt1
.
y
)
+
'" '
+
'autoplay controls>'
+
//' <source src="' + src + '&key=' + (new Date()).toIdString() + '" type="video/mp4"> ' +
' <source src="'
+
src
+
'" type="video/mp4"> '
+
'</video>'
);
}
}
}
else
{
$
(
'#playvideo'
).
attr
(
'z-order'
,
'1000'
);
$
(
'#playvideo'
).
html
(
'<video class="mov" id="videoOnPage" src="'
+
src
+
'" '
+
...
...
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