From 5f9cb05d618b87c9822ca05b90f3f659d77ec678 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20Castr=C3=A9n?= Date: Mon, 8 Jul 2019 11:33:05 +0300 Subject: [PATCH] Add typedef support for MediaStream url source React-player supports MediaStream input as per documentation suggest, but type definition is missing. --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index bf4daee3..7ac1a140 100644 --- a/index.d.ts +++ b/index.d.ts @@ -70,7 +70,7 @@ export interface Config { } export interface ReactPlayerProps { - url?: string | string[] | SourceProps[]; + url?: string | string[] | SourceProps[] | MediaStream; playing?: boolean; loop?: boolean; controls?: boolean;