diff --git a/generated/3.0/vlc.py b/generated/3.0/vlc.py index 4ba3f51..a1a8c79 100644 --- a/generated/3.0/vlc.py +++ b/generated/3.0/vlc.py @@ -1887,6 +1887,19 @@ def media_new(self, mrl, *options): m._instance = self return m + def media_new_location(self, psz_mrl): + '''Create a media with a certain given media resource location, + for instance a valid URL. + @note: To refer to a local file with this function, + the file://... URI syntax B{must} be used (see IETF RFC3986). + We recommend using L{media_new_path}() instead when dealing with + local files. + See L{media_release}. + @param psz_mrl: the media location. + @return: the newly created media or None on error. + ''' + return libvlc_media_new_location(self, str_to_bytes(psz_mrl)) + def media_new_path(self, path): """Create a media for a certain file path. See L{media_release}. @@ -2090,20 +2103,6 @@ def log_set_file(self, stream): return libvlc_log_set_file(self, stream) - def media_new_location(self, psz_mrl): - '''Create a media with a certain given media resource location, - for instance a valid URL. - @note: To refer to a local file with this function, - the file://... URI syntax B{must} be used (see IETF RFC3986). - We recommend using L{media_new_path}() instead when dealing with - local files. - See L{media_release}. - @param psz_mrl: the media location. - @return: the newly created media or None on error. - ''' - return libvlc_media_new_location(self, str_to_bytes(psz_mrl)) - - def media_new_fd(self, fd): '''Create a media for an already open file descriptor. The file descriptor shall be open for reading (or reading and writing). diff --git a/generated/dev/vlc.py b/generated/dev/vlc.py index 578e889..45c843a 100644 --- a/generated/dev/vlc.py +++ b/generated/dev/vlc.py @@ -2294,6 +2294,19 @@ def media_new(self, mrl, *options): m._instance = self return m + def media_new_location(self, psz_mrl): + '''Create a media with a certain given media resource location, + for instance a valid URL. + @note: To refer to a local file with this function, + the file://... URI syntax B{must} be used (see IETF RFC3986). + We recommend using L{media_new_path}() instead when dealing with + local files. + See L{media_release}. + @param psz_mrl: the media location. + @return: the newly created media or None on error. + ''' + return libvlc_media_new_location(self, str_to_bytes(psz_mrl)) + def media_new_path(self, path): """Create a media for a certain file path. See L{media_release}. diff --git a/generator/templates/override.py b/generator/templates/override.py index 1934b6b..cc666a8 100644 --- a/generator/templates/override.py +++ b/generator/templates/override.py @@ -87,6 +87,19 @@ def media_new(self, mrl, *options): m._instance = self return m + def media_new_location(self, psz_mrl): + '''Create a media with a certain given media resource location, + for instance a valid URL. + @note: To refer to a local file with this function, + the file://... URI syntax B{must} be used (see IETF RFC3986). + We recommend using L{media_new_path}() instead when dealing with + local files. + See L{media_release}. + @param psz_mrl: the media location. + @return: the newly created media or None on error. + ''' + return libvlc_media_new_location(self, str_to_bytes(psz_mrl)) + def media_new_path(self, path): """Create a media for a certain file path. See L{media_release}.