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
13namespace molybden {
14
15class Browser;
16
20class 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
A class that contains all media delegates.
Definition media_delegates.hpp:55
A class that contains all media events.
Definition media_events.hpp:39
The media controller of a browser instance.
Definition media.hpp:20
virtual void unmuteAudio()=0
Unmutes all audio output.
virtual std::shared_ptr< Browser > browser()=0
Returns the browser instance of this media controller.
virtual bool isAudioMuted()=0
Checks if audio output is muted.
virtual bool isCurrentlyAudible()=0
Checks if audio is currently audible on the loaded web page.
virtual void muteAudio()=0
Mutes all audio output.