Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
V3-TailingPond
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xinzhedeai
V3-TailingPond
Commits
e5d564e9
Commit
e5d564e9
authored
Sep 02, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
视频videojs实例销毁
parent
c97eb7a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
4 deletions
+24
-4
index.vue
src/views/video/index.vue
+24
-4
No files found.
src/views/video/index.vue
View file @
e5d564e9
...
@@ -100,7 +100,12 @@ export default {
...
@@ -100,7 +100,12 @@ export default {
name
:
"
videoMonitor
"
,
name
:
"
videoMonitor
"
,
data
()
{
data
()
{
return
{
return
{
player
:
null
,
player1
:
null
,
player2
:
null
,
player3
:
null
,
player4
:
null
,
player5
:
null
,
player6
:
null
,
// sources: [
// sources: [
// {
// {
// src: 'https://gctxyc.liveplay.myqcloud.com/gc/gccntv241-slf01_1/index.m3u8',
// src: 'https://gctxyc.liveplay.myqcloud.com/gc/gccntv241-slf01_1/index.m3u8',
...
@@ -148,7 +153,7 @@ export default {
...
@@ -148,7 +153,7 @@ export default {
},
},
}
}
this
.
player
=
videojs
(
this
.
$refs
.
videoPlayer6
,
videoConfig
);
this
.
player
6
=
videojs
(
this
.
$refs
.
videoPlayer6
,
videoConfig
);
videoConfig
.
autoplay
=
false
videoConfig
.
autoplay
=
false
...
@@ -163,8 +168,23 @@ export default {
...
@@ -163,8 +168,23 @@ export default {
},
},
methods
:
{},
methods
:
{},
beforeDestroy
()
{
beforeDestroy
()
{
if
(
this
.
player
)
{
if
(
this
.
player1
)
{
this
.
player
.
dispose
();
this
.
player1
.
dispose
();
}
if
(
this
.
player2
)
{
this
.
player2
.
dispose
();
}
if
(
this
.
player3
)
{
this
.
player3
.
dispose
();
}
if
(
this
.
player4
)
{
this
.
player4
.
dispose
();
}
if
(
this
.
player5
)
{
this
.
player5
.
dispose
();
}
if
(
this
.
player6
)
{
this
.
player6
.
dispose
();
}
}
},
},
};
};
...
...
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