diff --git a/cobalt/dom/html_media_element.cc b/cobalt/dom/html_media_element.cc
index 054209f35612..45996b16203c 100644
--- a/cobalt/dom/html_media_element.cc
+++ b/cobalt/dom/html_media_element.cc
@@ -33,6 +33,8 @@
#include "cobalt/base/tokens.h"
#include "cobalt/cssom/map_to_mesh_function.h"
#include "cobalt/dom/document.h"
+#include "cobalt/dom/eme/media_encrypted_event.h"
+#include "cobalt/dom/eme/media_encrypted_event_init.h"
#include "cobalt/dom/html_element_context.h"
#include "cobalt/dom/html_video_element.h"
#include "cobalt/dom/media_settings.h"
@@ -50,9 +52,6 @@
#include "cobalt/web/web_settings.h"
#include "starboard/system.h"
-#include "cobalt/dom/eme/media_encrypted_event.h"
-#include "cobalt/dom/eme/media_encrypted_event_init.h"
-
namespace cobalt {
namespace dom {
@@ -645,16 +644,13 @@ void HTMLMediaElement::ScheduleEvent(const scoped_refptr& event) {
event_queue_.Enqueue(event);
}
-std::string HTMLMediaElement::h5vcc_audio_connectors(
- script::ExceptionState* exception_state) const {
+std::string HTMLMediaElement::h5vcc_audio_connectors() const {
static const CobaltExtensionConfigurableAudioWriteAheadApi* extension_api =
static_cast(
SbSystemGetExtension(
kCobaltExtensionConfigurableAudioWriteAheadName));
if (extension_api) {
if (!player_) {
- web::DOMException::Raise(web::DOMException::kInvalidStateErr,
- exception_state);
return std::string();
}
diff --git a/cobalt/dom/html_media_element.h b/cobalt/dom/html_media_element.h
index 612e21cf20bc..46ca3c8271cc 100644
--- a/cobalt/dom/html_media_element.h
+++ b/cobalt/dom/html_media_element.h
@@ -149,8 +149,7 @@ class HTMLMediaElement : public HTMLElement,
// Returns semicolon separated names of audio connectors, like
// "hdmi;bluetooth".
// TODO(b/267678497): The current interface is tentative, to be refined.
- std::string h5vcc_audio_connectors(
- script::ExceptionState* exception_state) const;
+ std::string h5vcc_audio_connectors() const;
// Set max video capabilities.
void SetMaxVideoCapabilities(const std::string& max_video_capabilities,
diff --git a/cobalt/dom/html_media_element.idl b/cobalt/dom/html_media_element.idl
index 401060a6f7b7..f3b79173e6c6 100644
--- a/cobalt/dom/html_media_element.idl
+++ b/cobalt/dom/html_media_element.idl
@@ -63,8 +63,7 @@ interface HTMLMediaElement : HTMLElement {
attribute boolean muted;
// non standard, semicolon separated names of audio connectors, like
- // "hdmi;bluetooth". It raises `NotSupportedError` on apps doesn't support
- // this feature, or `InvalidStateError` if there isn't an active playback.
+ // "hdmi;bluetooth".
// TODO(b/267678497): The current interface is tentative, to be refined.
- [RaisesException] readonly attribute DOMString h5vccAudioConnectors;
+ readonly attribute DOMString h5vccAudioConnectors;
};