Home | Trees | Indices | Help |
---|
|
object --+ | _Ctype --+ | MediaPlayer
Create a new MediaPlayer instance.
It may take as parameter either:
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
a new object with type S, a subtype of T |
|
||
Inherited from |
|
|||
Inherited from |
|
|
Set the MRL to play. Warning: most audio and video options, such as text renderer, have no effects on an individual media. These options must be set at the vlc.Instance or vlc.MediaPlayer instanciation.
|
Get the full description of available titles.
Version: LibVLC 3.0.0 and later. |
Get the full description of available chapters.
Version: LibVLC 3.0.0 and later. |
Get the video size in pixels as 2-tuple (width, height).
|
Set a Win32/Win64 API window handle (HWND). Specify where the media player should render its video output. If LibVLC was built without Win32/Win64 API output support, then this has no effects.
|
Get the width of a video in pixels.
|
Get the height of a video in pixels.
|
Get the mouse pointer coordinates over a video as 2-tuple (x, y). Coordinates are expressed in terms of the decoded video resolution, not in terms of pixels on the screen/viewport. To get the latter, you must query your windowing system directly. Either coordinate may be negative or larger than the corresponding size of the video, if the cursor is outside the rendering area.
Warning: The coordinates may be out-of-date if the pointer is not located on the video rendering area. LibVLC does not track the mouse pointer if the latter is outside the video widget. Note: LibVLC does not support multiple mouse pointers (but does support multiple input devices sharing the same pointer). |
Get movie fps rate This function is provided for backward
compatibility. It cannot deal with multiple video tracks. In LibVLC
versions prior to 3.0, it would also fail if the file format did not
convey the frame rate explicitly. \deprecated Consider using
|
Get the description of available titles.
|
Get the description of available chapters for specific title.
|
Set new video subtitle file. \deprecated Use add_slave() instead.
|
Toggle teletext transparent status on video output. \deprecated use video_set_teletext() instead. |
Release a media_player after use Decrement the reference count of a media player object. If the reference count is 0, then release() will release the media player object. If the media player object has been released, then it should not be used again. |
Retain a reference to a media player object. Use release() to decrement reference count. |
Set the media that will be used by the media_player. If any, previous md will be released.
|
Get the media used by the media_player.
|
Decorator. Caches a parameterless method's return value each time it is called. If called later with the same arguments, the cached value is returned (not reevaluated). Adapted from https://wiki.python.org/moin/PythonDecoratorLibrary
|
is_playing.
|
Play.
|
Pause or resume (no effect if there is no media).
Version: LibVLC 1.1.1 or later. |
Set a renderer to the media player
Note:
must be called before the first call of play() to
take effect. See Version: LibVLC 3.0.0 or later. |
Set callbacks and private data to render decoded video to a custom area in memory. Use L{video_set_format}() or L{video_set_format_callbacks}() to configure the decoded format. @warning: Rendering video into custom memory buffers is considerably less efficient than rendering in a custom window as normal. For optimal perfomances, VLC media player renders into a custom window, and does not use this function and associated callbacks. It is B{highly recommended} that other LibVLC-based application do likewise. To embed video in a window, use libvlc_media_player_set_xid() or equivalent depending on the operating system. If window embedding does not fit the application use case, then a custom LibVLC video output display plugin is required to maintain optimal video rendering performances. The following limitations affect performance: - Hardware video decoding acceleration will either be disabled completely, or require (relatively slow) copy from video/DSP memory to main memory. - Sub-pictures (subtitles, on-screen display, etc.) must be blent into the main picture by the CPU instead of the GPU. - Depending on the video format, pixel format conversion, picture scaling, cropping and/or picture re-orientation, must be performed by the CPU instead of the GPU. - Memory copying is required between LibVLC reference picture buffers and application buffers (between lock and unlock callbacks). @param lock: callback to lock video memory (must not be None). @param unlock: callback to unlock video memory (or None if not needed). @param display: callback to display video (or None if not needed). @param opaque: private pointer for the three callbacks (as first parameter). @version: LibVLC 1.1.1 or later. |
Set decoded video chroma and dimensions. This only works in combination with video_set_callbacks(), and is mutually exclusive with video_set_format_callbacks().
Version: LibVLC 1.1.1 or later. Bug: All pixel planes are expected to have the same pitch. To use the YCbCr color space with chrominance subsampling, consider using video_set_format_callbacks() instead. |
Set decoded video chroma and dimensions. This only works in combination with video_set_callbacks().
Version: LibVLC 2.0.0 or later. |
Set the NSView handler where the media player should render its video output. Use the vout called "macosx". The drawable is an NSObject that follow the VLCOpenGLVideoViewEmbedding protocol: @code.m \@protocol VLCOpenGLVideoViewEmbedding <NSObject> - (void)addVoutSubview:(NSView *)view; - (void)removeVoutSubview:(NSView *)view; \@end @endcode Or it can be an NSView object. If you want to use it along with Qt see the QMacCocoaViewContainer. Then the following code should work: @code.mm NSView *video = [[NSView alloc] init]; QMacCocoaViewContainer *container = new QMacCocoaViewContainer(video, parent); L{set_nsobject}(mp, video); [video release]; @endcode You can find a live example in VLCVideoView in VLCKit.framework. @param drawable: the drawable that is either an NSView or an object following the VLCOpenGLVideoViewEmbedding protocol. |
Get the NSView handler previously set with set_nsobject().
|
Set an X Window System drawable where the media player should render
its video output. The call takes effect when the playback starts. If it
is already started, it might need to be stopped before changes apply. If
LibVLC was built without X11 output support, then this function has no
effects. By default, LibVLC will capture input events on the video
rendering area. Use video_set_mouse_input() and video_set_key_input() to disable that and deliver events
to the parent window / to the application instead. By design, the X11
protocol delivers input events to only one recipient. @warning The
application must call the XInitThreads() function from Xlib before
|
Get the X Window System window identifier previously set with set_xwindow(). Note that this will return the identifier even if VLC is not currently using it (for instance if it is playing an audio-only input).
|
Get the Windows API window handle (HWND) previously set with set_hwnd(). The handle will be returned even if LibVLC is not currently outputting any video to it.
|
Set the android context.
Version: LibVLC 3.0.0 and later. |
Set the EFL Evas Object.
Version: LibVLC 3.0.0 and later. |
Sets callbacks and private data for decoded audio. Use audio_set_format() or audio_set_format_callbacks() to configure the decoded audio format.
Note: The audio callbacks override any other audio output mechanism. If the callbacks are set, LibVLC will not output audio in any way. Version: LibVLC 2.0.0 or later. |
Set callbacks and private data for decoded audio. This only works in combination with audio_set_callbacks(). Use audio_set_format() or audio_set_format_callbacks() to configure the decoded audio format.
Version: LibVLC 2.0.0 or later. |
Sets decoded audio format via callbacks. This only works in combination with audio_set_callbacks().
Version: LibVLC 2.0.0 or later. |
Sets a fixed decoded audio format. This only works in combination with audio_set_callbacks(), and is mutually exclusive with audio_set_format_callbacks().
Version: LibVLC 2.0.0 or later. |
Get the current movie length (in ms).
|
Get the current movie time (in ms).
|
Set the movie time (in ms). This has no effect if no media is being played. Not all formats and protocols support this.
|
Get movie position as percentage between 0.0 and 1.0.
|
Set movie position as percentage between 0.0 and 1.0. This has no effect if playback is not enabled. This might not work depending on the underlying input format and protocol.
|
Set movie chapter (if applicable).
|
Get movie chapter.
|
Get movie chapter count.
|
Is the player able to play.
|
Get title chapter count.
|
Set movie title.
|
Get movie title.
|
Get movie title count.
|
Get the requested movie play rate.
Warning: Depending on the underlying media, the requested rate may be different from the real playback rate. |
Set movie play rate.
|
Get current movie state.
|
How many video outputs does this media player have?
|
Is this media player seekable?
|
Can this media player be paused?
|
Check if the current program is scrambled.
Version: LibVLC 2.2.0 or later. |
Navigate through DVD Menu.
Version: libVLC 2.0.0 or later. |
Set if, and how, the video title will be shown when media is played.
Version: libVLC 2.1.0 or later. |
Add a slave to the current media player.
Note: If the player is playing, the slave will be added directly. This call will also update the slave list of the attached Media. Version:
LibVLC 3.0.0 and later. See |
Toggle fullscreen status on non-embedded video outputs. Warning: The same limitations applies to this function as to set_fullscreen(). |
Enable or disable fullscreen.
Warning: With most window managers, only a top-level windows can be in full-screen mode. Hence, this function will not operate properly if set_xwindow() was used to embed the video in a non-top-level window. In that case, the embedding window must be reparented to the root window before fullscreen mode is enabled. You will want to reparent it back to its normal parent when disabling fullscreen. |
Get current fullscreen status.
|
Enable or disable key press events handling, according to the LibVLC hotkeys configuration. By default and for historical reasons, keyboard events are handled by the LibVLC video widget.
Note: On X11, there can be only one subscriber for key press and mouse click events per window. If your application has subscribed to those events for the X window ID of the video widget, then LibVLC will not be able to handle key presses and mouse clicks in any case. Warning: This function is only implemented for X11 and Win32 at the moment. |
Enable or disable mouse click events handling. By default, those events are handled. This is needed for DVD menus to work, as well as a few video filters such as "puzzle". See video_set_key_input().
Warning: This function is only implemented for X11 and Win32 at the moment. |
Get the current video scaling factor. See also video_set_scale().
|
Set the video scaling factor. That is the ratio of the number of pixels on screen to the number of pixels in the original decoded video in each dimension. Zero is a special value; it will adjust the video to the output window/drawable (in windowed mode) or the entire screen. Note that not all video outputs support scaling.
|
Get current video aspect ratio.
|
Set new video aspect ratio.
|
Update the video viewpoint information.
Note: It is safe to call this function before the media player is started. Version: LibVLC 3.0.0 and later. |
Get current video subtitle.
|
Get the number of available video subtitles.
|
Set new video subtitle.
|
Get the current subtitle delay. Positive values means subtitles are being displayed later, negative values earlier.
Version: LibVLC 2.0.0 or later. |
Set the subtitle delay. This affects the timing of when the subtitle will be displayed. Positive values result in subtitles being displayed later, while negative values will result in subtitles being displayed earlier. The subtitle delay will be reset to zero each time the media changes.
Version: LibVLC 2.0.0 or later. |
Get current crop filter geometry.
|
Set new crop filter geometry.
|
Get current teletext page requested or 0 if it's disabled. Teletext is disabled by default, call video_set_teletext() to enable it.
|
Set new teletext page to retrieve. This function can also be used to send a teletext key.
|
Get number of available video tracks.
|
Get current video track.
|
Set video track.
|
Take a snapshot of the current video window. If i_width AND i_height is 0, original size is used. If i_width XOR i_height is 0, original aspect-ratio is preserved.
|
Enable or disable deinterlace filter.
|
Get an integer marquee option value.
|
Get a string marquee option value.
|
Enable, disable or set an integer marquee option Setting libvlc_marquee_Enable has the side effect of enabling (arg !0) or disabling (arg 0) the marq filter.
|
Set a marquee string option.
|
Get integer logo option.
|
Set logo option as integer. Options that take a different type value are ignored. Passing libvlc_logo_enable as option value has the side effect of starting (arg !0) or stopping (arg 0) the logo filter.
|
Set logo option as string. Options that take a different type value are ignored.
|
Get integer adjust option.
Version: LibVLC 1.1.1 and later. |
Set adjust option as integer. Options that take a different type value are ignored. Passing libvlc_adjust_enable as option value has the side effect of starting (arg !0) or stopping (arg 0) the adjust filter.
Version: LibVLC 1.1.1 and later. |
Get float adjust option.
Version: LibVLC 1.1.1 and later. |
Set adjust option as float. Options that take a different type value are ignored.
Version: LibVLC 1.1.1 and later. |
Selects an audio output module.
Note: Any change will take be effect only after playback is stopped and restarted. Audio output cannot be changed while playing. |
Gets a list of potential audio output devices, See audio_output_device_set().
Notes:
Warning: Some audio output devices in the list might not actually work in some circumstances. By default, it is recommended to not specify any explicit audio device. Version: LibVLC 2.2.0 or later. |
Configures an explicit audio output device. If the module paramater is
None, audio output will be moved to the device specified by the device
identifier string immediately. This is the recommended usage. A list of
adequate potential device strings can be obtained with audio_output_device_enum(). However passing None is
supported in LibVLC version 2.2.0 and later only; in earlier versions,
this function would have no effects when the module parameter was None.
If the module parameter is not None, the device parameter of the
corresponding audio output, if it exists, will be set to the specified
string. Note that some audio output modules do not have such a parameter
(notably MMDevice and PulseAudio). A list of adequate potential device
strings can be obtained with
Note: This function does not select the specified audio output plugin. audio_output_set() is used for that purpose. Warning: The syntax for the device parameter depends on the audio output. Some audio output modules require further parameters (e.g. a channels map in the case of ALSA). |
Get the current audio output device identifier. This complements audio_output_device_set().
Warning:
The initial value for the current audio output device identifier
may not be set or may be some unknown value. A LibVLC application
should compare this value against the known device identifiers
(e.g. those that were previously retrieved by a call to audio_output_device_enum or Version: LibVLC 3.0.0 or later. |
Get current mute status.
|
Set mute status.
|
Get current software audio volume.
|
Set current software audio volume.
|
Get number of available audio tracks.
|
Get current audio track.
|
Set current audio track.
|
Get current audio channel.
|
Set current audio channel.
|
Get current audio delay.
Version: LibVLC 1.1.1 or later. |
Set current audio delay. The audio delay will be reset to zero each time the media changes.
Version: LibVLC 1.1.1 or later. |
Apply new equalizer settings to a media player. The equalizer is first
created by invoking
Version: LibVLC 2.2.0 or later. |
Gets the media role.
Version: LibVLC 3.0.0 and later. |
Sets the media role.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sat Jul 25 13:13:08 2020 | http://epydoc.sourceforge.net |