Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing media_new_location definition #261

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 13 additions & 14 deletions generated/3.0/vlc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
Expand Down Expand Up @@ -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).
Expand Down
13 changes: 13 additions & 0 deletions generated/dev/vlc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
Expand Down
13 changes: 13 additions & 0 deletions generator/templates/override.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
Expand Down