def supported_uri_schemes(uri_schemes):
 supported_schemes = set()
 registry = Gst.Registry.get()
 for factory in registry.get_feature_list(Gst.ElementFactory):
  for uri in factory.get_uri_protocols():
   if (uri in uri_schemes):
    supported_schemes.add(uri)
 return supported_schemes

def supported_uri_schemes ( uri_schemes ) : supported_schemes = set ( ) registry = Gst . Registry . get ( ) for factory in registry . get_feature_list ( Gst . ElementFactory ) : for uri in factory . get_uri_protocols ( ) : if ( uri in uri_schemes ) : supported_schemes . add ( uri ) return supported_schemes
determine which uris we can actually support from provided whitelist .