Molybden API
Loading...
Searching...
No Matches
media.hpp
1
// Copyright (c) 2000-2024 TeamDev. 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_events.hpp"
11
12
namespace
molybden {
13
14
class
Browser;
15
19
class
Media
:
public
MediaEvents
{
20
public
:
24
virtual
std::shared_ptr<Browser>
browser
() = 0;
25
29
virtual
void
muteAudio
() = 0;
30
34
virtual
void
unmuteAudio
() = 0;
35
39
virtual
bool
isAudioMuted
() = 0;
40
44
virtual
bool
isCurrentlyAudible
() = 0;
45
};
46
47
}
// namespace molybden
48
49
#endif
// MOLYBDEN_MEDIA_HPP
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:19
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