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
2333695b
Commit
2333695b
authored
Apr 02, 2015
by
vietdo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#9394 【Web 1.1】タップしてPlayで再生中に再度タップしても止まらない
parent
bb946e0e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
3 deletions
+29
-3
abvw/js/contentview_CreateObjects.js
+29
-3
No files found.
abvw/js/contentview_CreateObjects.js
View file @
2333695b
...
...
@@ -1616,7 +1616,6 @@ CONTENTVIEW_CREATEOBJECT.videoType1.prototype = new CONTENTVIEW_CREATEOBJECT.Pag
CONTENTVIEW_CREATEOBJECT
.
audioType1
=
function
(
mediaType
,
actionType
,
id
,
imageUrl
,
x
,
y
,
w
,
h
,
visible
,
audioFile
,
audio
,
audioResourceId
,
objectId
)
{
this
.
setup
(
mediaType
,
actionType
,
id
,
imageUrl
,
x
,
y
,
w
,
h
,
visible
,
null
,
null
,
objectId
);
this
.
action
=
function
()
{
//abe
//alert("audioType1");
//詳細ログ作成
...
...
@@ -2384,8 +2383,7 @@ CONTENTVIEW_CREATEOBJECT.createTextConfirmAudio = function() {
CONTENTVIEW_CREATEOBJECT
.
createPage
=
function
(
pageNumber
,
pageImage
,
pageObjects
,
onCompleteFunc
)
{
//abe 次のページを作成している
//console.log("CreateObj_createPage:" + pageNumber)
console
.
log
(
"CreateObj_createPage:"
+
pageNumber
);
var
page
=
new
CONTENTVIEW
.
ContentPage
(
pageNumber
,
pageImage
);
/* add page Object */
//Start Function: No.12
...
...
@@ -2455,6 +2453,23 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) {
if
(
audio
!=
''
)
{
if
(
type
==
"0"
)
{
/* play when click */
//
if
(
$
(
'#play_audio_0'
).
length
){
//pouseできるようにする
var
myAudio
=
document
.
getElementById
(
"play_audio_0"
);
if
(
myAudio
.
paused
)
{
myAudio
.
play
();
}
else
{
myAudio
.
pause
();
}
//CONTENTVIEW.stopAllAudio();
return
;
}
CONTENTVIEW
.
stopAllAudio
();
CONTENTVIEW
.
TypeAudio0
=
type
;
...
...
@@ -2473,11 +2488,22 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) {
' </audio>'
);
}
else
{
//既に再生中か判定
$
(
'#playaudio'
).
html
(
' <audio id="play_audio_0" loop="loop" autoplay ="autoplay">'
+
' <source src="'
+
audio
+
'&key='
+
(
new
Date
()).
toIdString
()
+
'" type="audio/mpeg" />'
+
' </audio>'
);
/* $('#playaudio').html(
' <audio id="play_audio_0" loop="loop" autoplay ="autoplay">' +
' <source src="' + audio + '&key=' + (new Date()).toIdString() + '" type="audio/mpeg" />' +
' </audio>'
);*/
}
}
else
{
...
...
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