Molybden API
Loading...
Searching...
No Matches
media.hpp
1
// Copyright (c) 2000-2023 TeamDev Ltd. All rights reserved.
2
// TeamDev PROPRIETARY and CONFIDENTIAL.
3
// Use is subject to license terms.
4
5
#ifndef MOLYBDEN_MEDIA_HPP
6
#define MOLYBDEN_MEDIA_HPP
7
8
#include <memory>
9
10
#include "molybden/media/media_delegates.hpp"
11
#include "molybden/media/media_events.hpp"
12
13
namespace
molybden {
14
15
class
Browser;
16
20
class
Media
:
public
MediaEvents
,
public
MediaDelegates
{
21
public
:
25
virtual
std::shared_ptr<Browser>
browser
() = 0;
26
30
virtual
void
muteAudio
() = 0;
31
35
virtual
void
unmuteAudio
() = 0;
36
40
virtual
bool
isAudioMuted
() = 0;
41
45
virtual
bool
isCurrentlyAudible
() = 0;
46
};
47
48
}
// namespace molybden
49
50
#endif
// MOLYBDEN_MEDIA_HPP
molybden::MediaDelegates
A class that contains all media delegates.
Definition
media_delegates.hpp:55
molybden::MediaEvents
A class that contains all media events.
Definition
media_events.hpp:39
molybden::Media
The media controller of a browser instance.
Definition
media.hpp:20
molybden::Media::unmuteAudio
virtual void unmuteAudio()=0
Unmutes all audio output.
molybden::Media::browser
virtual std::shared_ptr< Browser > browser()=0
Returns the browser instance of this media controller.
molybden::Media::isAudioMuted
virtual bool isAudioMuted()=0
Checks if audio output is muted.
molybden::Media::isCurrentlyAudible
virtual bool isCurrentlyAudible()=0
Checks if audio is currently audible on the loaded web page.
molybden::Media::muteAudio
virtual void muteAudio()=0
Mutes all audio output.
include
molybden
media
media.hpp