fix: audio play bug for ios safari. (#285)

* fix: audio play bug for ios safari. (WIP).

* chore: Repair and can pop up the playback prompt dialog box correctly.

* chore: add AudioContext to reduce playback delay.
This commit is contained in:
CloudWebRTC
2023-05-16 10:28:09 +08:00
committed by GitHub
parent 2b1e7f2e5f
commit 0b8aeeeba1
10 changed files with 146 additions and 6 deletions
+16
View File
@@ -61,6 +61,22 @@ class TrackStreamUpdatedEvent with TrackEvent, InternalEvent {
});
}
@internal
class AudioPlaybackStarted with TrackEvent, EngineEvent, InternalEvent {
final Track track;
const AudioPlaybackStarted({
required this.track,
});
}
@internal
class AudioPlaybackFailed with TrackEvent, EngineEvent, InternalEvent {
final Track track;
const AudioPlaybackFailed({
required this.track,
});
}
@internal
class LocalTrackOptionsUpdatedEvent with TrackEvent, InternalEvent {
final LocalTrack track;