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
12namespace molybden {
13
14class Browser;
15
19class 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
A class that contains all media events.
Definition media_events.hpp:39
The media controller of a browser instance.
Definition media.hpp:19
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.