Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chat_webview
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
abookCommunication
chat_webview
Commits
a8699a2a
Commit
a8699a2a
authored
Jul 30, 2021
by
onuma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
動画にサムネイルを追加した。
parent
f6859950
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
12 deletions
+6
-12
public_new/icon/icon_disable_movie.svg
+2
-0
public_new/img/bg_movie.jpg
+0
-0
public_new/js/utils/chat-media-handler.js
+4
-12
No files found.
public_new/icon/icon_disable_movie.svg
0 → 100644
View file @
a8699a2a
<svg
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
viewBox=
"0 0 128 128"
><defs><style>
.cls-1{opacity:0.9;}.cls-2{opacity:0.5;}.cls-3{fill:#fefefe;}.cls-4{fill:#707070;}.cls-5{fill:#fff;}
</style></defs><g
id=
"レイヤー_2"
data-name=
"レイヤー 2"
><g
id=
"オフライン時の動画再生ボタン"
><g
class=
"cls-1"
><image
class=
"cls-2"
width=
"128"
height=
"128"
xlink:href=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsSAAALEgHS3X78AAAQBklEQVR4Xu1d23bbRhIsyo5sJbbirGNv/v/rdjeJYzmOLNmWuA9AcQqFHlxIAASpqXP6gLqBIqq6umcwHG622y0Kni6e9/3CqWOz2Wz6fqcL2zPPkM25vD4j2knfVwR+cXZfn4swTlYAGcI3ErDH+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ggg=="
/><circle
class=
"cls-3"
cx=
"61"
cy=
"61"
r=
"54.75"
/></g><path
class=
"cls-4"
d=
"M90.78,58.57,48,33.89a2.81,2.81,0,0,0-4.21,2.43V85.68A2.81,2.81,0,0,0,48,88.11L90.78,63.43A2.81,2.81,0,0,0,90.78,58.57Z"
/><g
class=
"cls-1"
><image
class=
"cls-2"
width=
"128"
height=
"128"
xlink:href=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsSAAALEgHS3X78AAAFwElEQVR4Xu3a2XLiOABG4WMgISTpZWrm/Z9xptMdCAE8F5JiWRjM4kWS/1OlcjWmcqPPsmy6KMsSNd1mbV9Qebdo+0JRFEXbd0otI8l2EoA38f4xxFACpfuqIKRXIwA7+eGYUUdQ2nFwR0FIryMAweTPgLk3ZlT7hoMde28csCuCEKRRDUAw+XN7/sEbC+oAdsCnHTs79tjVQAjir+kW4K78BfAIPAErYGnH3H5vD2yBD2Bjj1sMBofgIARx9wWg4ep/wEz+C/Bqx8p+XmCu9g2wBv7Ysbbn3IqAEMTdqRXAAVhhJv4v4AfwDbMKzDATvAbegF/2+3PqG0UhiLwQgL/xe8BM9itm8v8GfmJWhDlmmX/HTL5bGUIAIARR1wTA3wMsMZP7DTP5/wDfMXuDPWYFeMXcKk4BACGItnObwHAleMFM/k8MigKzB3i2590TQjj5LiGIsNZXwdRvC49UK8Icg+LU1d8EQQgiqwmAe7vnXvL4z/d7qk3iyn7/kfrVfw4ACEFUhQD817s7zHO9e9R7t8cN5sqH05PflhBEUhMAd+V/Yl7u+I96r5h7/hPV5C/sZ5dOvksIIugLQFmW7le9kgrABvOCxz3qPWE2fP5r4WcqBNcmBCPXtAfw7/0fGADh7wHuhyG37D/bz4QgsWoAvFXA3wOsOf5FsPCGSwgS7NRjoH8bKM6MMCFIrCMAwSrQhKAtIUioxhWg4VYQ1oZBCBLp5JtAi+Bg/9mEoC0hSKCzr4KFIP9afwsQgrxrBQB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y/P8YUpFUFIV7iVNgJnvuDfecD9WOP/wx6OjqBwFIKosAKgT+0Z3zVwl/1TiafBCAJAsgHL3epf64VwKN/xsIBCDpPAgnOzXxLgGYeDPUpPsfA6wg/jajBsYAAAAASUVORK5CYII="
/><rect
class=
"cls-5"
x=
"58.08"
y=
"-14.66"
width=
"5.84"
height=
"151.32"
rx=
"2.92"
transform=
"translate(-25.27 61) rotate(-45)"
/></g></g></g></svg>
\ No newline at end of file
public_new/img/bg_movie.jpg
0 → 100644
View file @
a8699a2a
20.9 KB
public_new/js/utils/chat-media-handler.js
View file @
a8699a2a
...
@@ -64,14 +64,6 @@ $("#video-form").on("submit", function (e) {
...
@@ -64,14 +64,6 @@ $("#video-form").on("submit", function (e) {
var
fd
=
new
FormData
(
$
(
this
)[
0
]);
var
fd
=
new
FormData
(
$
(
this
)[
0
]);
if
(
!
file
.
type
.
includes
(
"image"
))
{
if
(
!
file
.
type
.
includes
(
"image"
))
{
// video 保存
// ChatMediaHandler.createVideoThumbnailAndUpload(file, function(resizeFile, thumbnailCreated) {
// if(resizeFile && thumbnailCreated) {
// //ただ、画像の大きさが500pixel以下の場合はthumbnailは生成されない
// fd.append('thumb', resizeFile)
// }
// ChatMediaHandler.uploadImage(fd);
// })
ChatMediaHandler
.
uploadImage
(
fd
);
ChatMediaHandler
.
uploadImage
(
fd
);
return
;
return
;
}
}
...
@@ -119,12 +111,10 @@ ChatMediaHandler.videoEncodeEnd = function (encodedUri) {
...
@@ -119,12 +111,10 @@ ChatMediaHandler.videoEncodeEnd = function (encodedUri) {
res
.
fileName
+
res
.
fileName
+
"&roomId="
+
"&roomId="
+
roomInfo
.
roomID
;
roomInfo
.
roomID
;
var
imageName
=
res
.
fileName
;
var
imageName
=
new
String
(
res
.
fileName
)
;
// uploadFileの判断
// uploadFileの判断
var
extension
=
imageName
var
extension
=
imageName
.
substr
(
imageName
.
lastIndexOf
(
"."
)
+
1
).
toLowerCase
();
.
substr
(
imageName
.
lastIndexOf
(
"."
)
+
1
)
.
toLowerCase
();
if
(
res
.
thumbnailPath
&&
res
.
thumbnailPath
.
length
>
0
)
{
if
(
res
.
thumbnailPath
&&
res
.
thumbnailPath
.
length
>
0
)
{
imgPath
=
imgPath
=
...
@@ -151,6 +141,7 @@ ChatMediaHandler.videoEncodeEnd = function (encodedUri) {
...
@@ -151,6 +141,7 @@ ChatMediaHandler.videoEncodeEnd = function (encodedUri) {
controls
:
"true"
,
controls
:
"true"
,
width
:
"auto"
,
width
:
"auto"
,
style
:
"max-width:100%"
,
style
:
"max-width:100%"
,
poster
:
"./img/bg_movie.jpg"
,
});
});
const
source
=
$
(
"<source/>"
,
{
src
:
videoSrc
});
const
source
=
$
(
"<source/>"
,
{
src
:
videoSrc
});
const
downloadIcon
=
$
(
"<a/>"
,
{
const
downloadIcon
=
$
(
"<a/>"
,
{
...
@@ -350,6 +341,7 @@ ChatMediaHandler.uploadImage = function (formData) {
...
@@ -350,6 +341,7 @@ ChatMediaHandler.uploadImage = function (formData) {
controls
:
"true"
,
controls
:
"true"
,
width
:
"auto"
,
width
:
"auto"
,
style
:
"max-width:100%"
,
style
:
"max-width:100%"
,
poster
:
"./img/bg_movie.jpg"
,
});
});
const
source
=
$
(
"<source/>"
,
{
src
:
videoSrc
});
const
source
=
$
(
"<source/>"
,
{
src
:
videoSrc
});
const
downloadIcon
=
$
(
"<a/>"
,
{
const
downloadIcon
=
$
(
"<a/>"
,
{
...
...
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