Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nheko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
nheko
Commits
8214e8dc
Verified
Commit
8214e8dc
authored
1 year ago
by
Nicolas Werner
Browse files
Options
Downloads
Patches
Plain Diff
Make clazy happy
parent
eed23cdf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#5462
passed
1 year ago
Stage: build
Stage: sign
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ui/MxcMediaProxy.cpp
+18
-16
18 additions, 16 deletions
src/ui/MxcMediaProxy.cpp
with
18 additions
and
16 deletions
src/ui/MxcMediaProxy.cpp
+
18
−
16
View file @
8214e8dc
...
...
@@ -29,22 +29,24 @@ MxcMediaProxy::MxcMediaProxy(QObject *parent)
static_cast
<
int
>
(
error
),
errorString
.
toStdString
());
});
connect
(
this
,
&
MxcMediaProxy
::
mediaStatusChanged
,
[
this
](
QMediaPlayer
::
MediaStatus
status
)
{
nhlog
::
ui
()
->
info
(
"Media player status {} and error {}"
,
static_cast
<
int
>
(
status
),
static_cast
<
int
>
(
this
->
error
()));
});
connect
(
this
,
&
MxcMediaProxy
::
playbackStateChanged
,
[
this
](
QMediaPlayer
::
PlaybackState
status
)
{
// We only set the output when starting the playback because otherwise the audio device
// lookup takes about 500ms, which causes a lot of stutter...
if
(
status
==
QMediaPlayer
::
PlayingState
&&
!
audioOutput
())
{
nhlog
::
ui
()
->
debug
(
"Set audio output"
);
auto
newOut
=
new
QAudioOutput
(
this
);
newOut
->
setMuted
(
muted_
);
newOut
->
setVolume
(
volume_
);
setAudioOutput
(
newOut
);
}
});
connect
(
this
,
&
MxcMediaProxy
::
mediaStatusChanged
,
this
,
[
this
](
QMediaPlayer
::
MediaStatus
status
)
{
nhlog
::
ui
()
->
info
(
"Media player status {} and error {}"
,
static_cast
<
int
>
(
status
),
static_cast
<
int
>
(
this
->
error
()));
});
connect
(
this
,
&
MxcMediaProxy
::
playbackStateChanged
,
this
,
[
this
](
QMediaPlayer
::
PlaybackState
status
)
{
// We only set the output when starting the playback because otherwise the audio device
// lookup takes about 500ms, which causes a lot of stutter...
if
(
status
==
QMediaPlayer
::
PlayingState
&&
!
audioOutput
())
{
nhlog
::
ui
()
->
debug
(
"Set audio output"
);
auto
newOut
=
new
QAudioOutput
(
this
);
newOut
->
setMuted
(
muted_
);
newOut
->
setVolume
(
volume_
);
setAudioOutput
(
newOut
);
}
});
connect
(
this
,
&
MxcMediaProxy
::
metaDataChanged
,
[
this
]()
{
emit
orientationChanged
();
});
connect
(
ChatPage
::
instance
()
->
timelineManager
()
->
rooms
(),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment