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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletions
+22
-1
abvw/js/contentview.js
+22
-1
No files found.
abvw/js/contentview.js
View file @
a0e179f8
...
...
@@ -4758,10 +4758,30 @@ 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
)
{
//#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'
);
...
...
@@ -4788,6 +4808,7 @@ CONTENTVIEW.showVideoObject = function(x, y, width, height, src, isFullscreen) {
'</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