diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index b9e87bf8e..9d5cd5409 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -26182,6 +26182,7 @@ URL[JC] var search: String URL[JC] var searchParams: URLSearchParams URL[JC] var username: String URL[JO] def createObjectURL(blob: Blob): String +URL[JO] def createObjectURL(src: MediaSource): String URL[JO] def revokeObjectURL(url: String): Unit URLSearchParams[JC] def append(name: String, value: String): Unit URLSearchParams[JC] def delete(name: String): Unit diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index b9e87bf8e..9d5cd5409 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -26182,6 +26182,7 @@ URL[JC] var search: String URL[JC] var searchParams: URLSearchParams URL[JC] var username: String URL[JO] def createObjectURL(blob: Blob): String +URL[JO] def createObjectURL(src: MediaSource): String URL[JO] def revokeObjectURL(url: String): Unit URLSearchParams[JC] def append(name: String, value: String): Unit URLSearchParams[JC] def delete(name: String): Unit diff --git a/dom/src/main/scala/org/scalajs/dom/URL.scala b/dom/src/main/scala/org/scalajs/dom/URL.scala index ccd0f0a7f..aea3f3933 100644 --- a/dom/src/main/scala/org/scalajs/dom/URL.scala +++ b/dom/src/main/scala/org/scalajs/dom/URL.scala @@ -16,9 +16,12 @@ object URL extends js.Object { /** The URL.createObjectURL() static method creates a DOMString containing an URL representing the object given in * parameter. The URL lifetime is tied to the document in the window on which it was created. The new object URL - * represents the specified File object or Blob object. + * represents the specified File, Blob or MediaSource object. */ def createObjectURL(blob: Blob): String = js.native + + def createObjectURL(src: MediaSource): String = js.native + } /** The URL() constructor returns a newly created URL object representing the URL defined by the parameters. */