diff --git a/src/youtube.js b/src/youtube.js index f8b700b2..c6daf949 100644 --- a/src/youtube.js +++ b/src/youtube.js @@ -974,6 +974,12 @@ function checkYouTubeUri(uri) if (scheme && scheme === 'gtuber') return [false, null]; + const gstRegistry = Gst.Registry.get(); + const feature = gstRegistry.lookup_feature('gtubersrc'); + + if (feature && feature.get_rank() >= Gst.Rank.PRIMARY) + return [false, null]; + const host = gstUri.get_host(); let videoId = null;