A powerfull Web server which is based on https://github.com/pschatzmann/TinyHttp. It supports multiple concurrent clients. You can e.g. use it to write mp3 data and make it available in multiple clients.
More...
#include <AudioServerEx.h>
A powerfull Web server which is based on https://github.com/pschatzmann/TinyHttp. It supports multiple concurrent clients. You can e.g. use it to write mp3 data and make it available in multiple clients.
- Note
- Supported only on Arduino platforms with WiFi support (e.g. ESP32) and the WiFi library!
-
Requires: 👉 https://github.com/pschatzmann/TinyHttp
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ AudioServerEx() [1/2]
◆ AudioServerEx() [2/2]
To be compatible with legacy API.
◆ addNotifyAudioChange()
Adds target to be notified about audio changes.
Reimplemented in CodecNOP, EncodedAudioOutput, EncodedAudioStream, AACDecoderFDK, DecoderBasic, CodecChain, MP3DecoderHelix, MP3DecoderMAD, OggContainerDecoder, RTSPClient< TcpClient, UdpSocket >, Pipeline, and Pipeline::ModifyingStreamAdapter.
◆ audioInfo()
|
|
inlineoverridevirtualinherited |
◆ audioInfoOut()
provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream
Reimplemented in MP3EncoderShine, PureDataStream, PWMAudioOutput< PWMDriverT >, ChannelFormatConverterStreamT< T >, ChannelFormatConverterStream, NumberFormatConverterStreamT< TFrom, TTo >, NumberFormatConverterStream, FormatConverterStream, Pipeline, ResampleStream, and ResampleStreamT< TInterpolator >.
◆ availableForWrite()
| int availableForWrite |
( |
| ) |
|
|
inlineoverridevirtual |
◆ begin() [1/4]
◆ begin() [2/4]
◆ begin() [3/4]
◆ begin() [4/4]
| virtual bool begin |
( |
Stream & |
in, |
|
|
const char * |
contentType |
|
) |
| |
|
inlinevirtual |
◆ clearNotifyAudioChange()
| virtual void clearNotifyAudioChange |
( |
| ) |
|
|
inlinevirtualinherited |
◆ copy()
◆ defaultConfig()
◆ end()
◆ flush()
◆ getReplyHeader()
| virtual tinyhttp::StrView * getReplyHeader |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ isDeletable()
| virtual bool isDeletable |
( |
| ) |
|
|
inlinevirtualinherited |
◆ isNotifyActive()
Checks if the automatic AudioInfo update is active.
◆ notifyAudioChange()
◆ operator bool()
| virtual operator bool |
( |
| ) |
|
|
inlinevirtualinherited |
◆ removeNotifyAudioChange()
◆ setAudioInfo()
|
|
inlineoverridevirtualinherited |
◆ setNotifyActive()
| void setNotifyActive |
( |
bool |
flag | ) |
|
|
inlineinherited |
Deactivate/Reactivate automatic AudioInfo updates: (default is active)
◆ write() [1/2]
| size_t write |
( |
const uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlineoverridevirtual |
Web server supports write so that we can e.g. use is as destination for the audio player.
Implements AudioOutput.
◆ write() [2/2]
| virtual size_t write |
( |
uint8_t |
ch | ) |
|
|
inlineoverridevirtualinherited |
◆ writeSilence()
| virtual void writeSilence |
( |
size_t |
len | ) |
|
|
inlinevirtualinherited |
Writes n 0 values (= silence)
- Parameters
-
◆ _timeout
◆ cfg
◆ info
◆ is_active
◆ is_notify_active
| bool is_notify_active = true |
|
protectedinherited |
◆ notify_vector
◆ p_server
◆ p_stream
| ExtensionStream* p_stream =nullptr |
|
protected |
◆ tmp
◆ tmpPos
◆ wifi
The documentation for this class was generated from the following file: