idx int64 0 252k | question stringlengths 48 5.28k | target stringlengths 5 1.23k |
|---|---|---|
231,200 | def vlcpanel_factory ( filepath , volume = None ) : vlc_panel_cls = VLCPanel VLCPanel . filepath = filepath if volume is not None : VLCPanel . volume = volume return vlc_panel_cls | Returns a VLCPanel class |
231,201 | def SetClientRect ( self , rect ) : panel_posx = rect [ 0 ] + self . grid . GetRowLabelSize ( ) panel_posy = rect [ 1 ] + self . grid . GetColLabelSize ( ) panel_scrolled_pos = self . grid . CalcScrolledPosition ( panel_posx , panel_posy ) self . SetPosition ( panel_scrolled_pos ) wx . Panel . SetClientRect ( self , wx... | Positions and resizes video panel |
231,202 | def OnTogglePlay ( self , event ) : if self . player . get_state ( ) == vlc . State . Playing : self . player . pause ( ) else : self . player . play ( ) event . Skip ( ) | Toggles the video status between play and hold |
231,203 | def OnShiftVideo ( self , event ) : length = self . player . get_length ( ) time = self . player . get_time ( ) if event . GetWheelRotation ( ) < 0 : target_time = max ( 0 , time - length / 100.0 ) elif event . GetWheelRotation ( ) > 0 : target_time = min ( length , time + length / 100.0 ) self . player . set_time ( in... | Shifts through the video |
231,204 | def OnAdjustVolume ( self , event ) : self . volume = self . player . audio_get_volume ( ) if event . GetWheelRotation ( ) < 0 : self . volume = max ( 0 , self . volume - 10 ) elif event . GetWheelRotation ( ) > 0 : self . volume = min ( 200 , self . volume + 10 ) self . player . audio_set_volume ( self . volume ) | Changes video volume |
231,205 | def load ( self ) : old_config = not self . cfg_file . Exists ( "config_version" ) self . data . __dict__ . update ( self . defaults . __dict__ ) for key in self . defaults . __dict__ : if self . cfg_file . Exists ( key ) : setattr ( self . data , key , self . cfg_file . Read ( key ) ) if old_config or self . version !... | Loads configuration file |
231,206 | def save ( self ) : for key in self . defaults . __dict__ : data = getattr ( self . data , key ) self . cfg_file . Write ( key , data ) | Saves configuration file |
231,207 | def string_result ( result , func , arguments ) : if result : s = bytes_to_str ( ctypes . string_at ( result ) ) libvlc_free ( result ) return s return None | Errcheck function . Returns a string and frees the original pointer . |
231,208 | def class_result ( classname ) : def wrap_errcheck ( result , func , arguments ) : if result is None : return None return classname ( result ) return wrap_errcheck | Errcheck function . Returns a function that creates the specified class . |
231,209 | def libvlc_vprinterr ( fmt , ap ) : f = _Cfunctions . get ( 'libvlc_vprinterr' , None ) or _Cfunction ( 'libvlc_vprinterr' , ( ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_char_p , ctypes . c_char_p , ctypes . c_void_p ) return f ( fmt , ap ) | Sets the LibVLC error status and message for the current thread . Any previous error is overridden . |
231,210 | def libvlc_add_intf ( p_instance , name ) : f = _Cfunctions . get ( 'libvlc_add_intf' , None ) or _Cfunction ( 'libvlc_add_intf' , ( ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_int , Instance , ctypes . c_char_p ) return f ( p_instance , name ) | Try to start a user interface for the libvlc instance . |
231,211 | def libvlc_event_attach ( p_event_manager , i_event_type , f_callback , user_data ) : f = _Cfunctions . get ( 'libvlc_event_attach' , None ) or _Cfunction ( 'libvlc_event_attach' , ( ( 1 , ) , ( 1 , ) , ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_int , EventManager , ctypes . c_uint , Callback , ctypes . c_void_p ) retur... | Register for an event notification . |
231,212 | def libvlc_event_type_name ( event_type ) : f = _Cfunctions . get ( 'libvlc_event_type_name' , None ) or _Cfunction ( 'libvlc_event_type_name' , ( ( 1 , ) , ) , None , ctypes . c_char_p , ctypes . c_uint ) return f ( event_type ) | Get an event s type name . |
231,213 | def libvlc_log_set_file ( p_instance , stream ) : f = _Cfunctions . get ( 'libvlc_log_set_file' , None ) or _Cfunction ( 'libvlc_log_set_file' , ( ( 1 , ) , ( 1 , ) , ) , None , None , Instance , FILE_ptr ) return f ( p_instance , stream ) | Sets up logging to a file . |
231,214 | def libvlc_module_description_list_release ( p_list ) : f = _Cfunctions . get ( 'libvlc_module_description_list_release' , None ) or _Cfunction ( 'libvlc_module_description_list_release' , ( ( 1 , ) , ) , None , None , ctypes . POINTER ( ModuleDescription ) ) return f ( p_list ) | Release a list of module descriptions . |
231,215 | def libvlc_audio_filter_list_get ( p_instance ) : f = _Cfunctions . get ( 'libvlc_audio_filter_list_get' , None ) or _Cfunction ( 'libvlc_audio_filter_list_get' , ( ( 1 , ) , ) , None , ctypes . POINTER ( ModuleDescription ) , Instance ) return f ( p_instance ) | Returns a list of audio filters that are available . |
231,216 | def libvlc_media_new_location ( p_instance , psz_mrl ) : f = _Cfunctions . get ( 'libvlc_media_new_location' , None ) or _Cfunction ( 'libvlc_media_new_location' , ( ( 1 , ) , ( 1 , ) , ) , class_result ( Media ) , ctypes . c_void_p , Instance , ctypes . c_char_p ) return f ( p_instance , psz_mrl ) | Create a media with a certain given media resource location for instance a valid URL . |
231,217 | def libvlc_media_duplicate ( p_md ) : f = _Cfunctions . get ( 'libvlc_media_duplicate' , None ) or _Cfunction ( 'libvlc_media_duplicate' , ( ( 1 , ) , ) , class_result ( Media ) , ctypes . c_void_p , Media ) return f ( p_md ) | Duplicate a media descriptor object . |
231,218 | def libvlc_media_save_meta ( p_md ) : f = _Cfunctions . get ( 'libvlc_media_save_meta' , None ) or _Cfunction ( 'libvlc_media_save_meta' , ( ( 1 , ) , ) , None , ctypes . c_int , Media ) return f ( p_md ) | Save the meta previously set . |
231,219 | def libvlc_media_get_stats ( p_md , p_stats ) : f = _Cfunctions . get ( 'libvlc_media_get_stats' , None ) or _Cfunction ( 'libvlc_media_get_stats' , ( ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_int , Media , ctypes . POINTER ( MediaStats ) ) return f ( p_md , p_stats ) | Get the current statistics about the media . |
231,220 | def libvlc_media_get_codec_description ( i_type , i_codec ) : f = _Cfunctions . get ( 'libvlc_media_get_codec_description' , None ) or _Cfunction ( 'libvlc_media_get_codec_description' , ( ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_char_p , TrackType , ctypes . c_uint32 ) return f ( i_type , i_codec ) | Get codec description from media elementary stream . |
231,221 | def libvlc_media_tracks_release ( p_tracks , i_count ) : f = _Cfunctions . get ( 'libvlc_media_tracks_release' , None ) or _Cfunction ( 'libvlc_media_tracks_release' , ( ( 1 , ) , ( 1 , ) , ) , None , None , ctypes . POINTER ( MediaTrack ) , ctypes . c_uint ) return f ( p_tracks , i_count ) | Release media descriptor s elementary streams description array . |
231,222 | def libvlc_media_get_type ( p_md ) : f = _Cfunctions . get ( 'libvlc_media_get_type' , None ) or _Cfunction ( 'libvlc_media_get_type' , ( ( 1 , ) , ) , None , MediaType , Media ) return f ( p_md ) | Get the media type of the media descriptor object . |
231,223 | def libvlc_media_discoverer_localized_name ( p_mdis ) : f = _Cfunctions . get ( 'libvlc_media_discoverer_localized_name' , None ) or _Cfunction ( 'libvlc_media_discoverer_localized_name' , ( ( 1 , ) , ) , string_result , ctypes . c_void_p , MediaDiscoverer ) return f ( p_mdis ) | Get media service discover object its localized name . |
231,224 | def libvlc_media_discoverer_media_list ( p_mdis ) : f = _Cfunctions . get ( 'libvlc_media_discoverer_media_list' , None ) or _Cfunction ( 'libvlc_media_discoverer_media_list' , ( ( 1 , ) , ) , class_result ( MediaList ) , ctypes . c_void_p , MediaDiscoverer ) return f ( p_mdis ) | Get media service discover media list . |
231,225 | def libvlc_media_discoverer_event_manager ( p_mdis ) : f = _Cfunctions . get ( 'libvlc_media_discoverer_event_manager' , None ) or _Cfunction ( 'libvlc_media_discoverer_event_manager' , ( ( 1 , ) , ) , class_result ( EventManager ) , ctypes . c_void_p , MediaDiscoverer ) return f ( p_mdis ) | Get event manager from media service discover object . |
231,226 | def libvlc_media_discoverer_is_running ( p_mdis ) : f = _Cfunctions . get ( 'libvlc_media_discoverer_is_running' , None ) or _Cfunction ( 'libvlc_media_discoverer_is_running' , ( ( 1 , ) , ) , None , ctypes . c_int , MediaDiscoverer ) return f ( p_mdis ) | Query if media service discover object is running . |
231,227 | def libvlc_media_library_new ( p_instance ) : f = _Cfunctions . get ( 'libvlc_media_library_new' , None ) or _Cfunction ( 'libvlc_media_library_new' , ( ( 1 , ) , ) , class_result ( MediaLibrary ) , ctypes . c_void_p , Instance ) return f ( p_instance ) | Create an new Media Library object . |
231,228 | def libvlc_media_library_load ( p_mlib ) : f = _Cfunctions . get ( 'libvlc_media_library_load' , None ) or _Cfunction ( 'libvlc_media_library_load' , ( ( 1 , ) , ) , None , ctypes . c_int , MediaLibrary ) return f ( p_mlib ) | Load media library . |
231,229 | def libvlc_media_library_media_list ( p_mlib ) : f = _Cfunctions . get ( 'libvlc_media_library_media_list' , None ) or _Cfunction ( 'libvlc_media_library_media_list' , ( ( 1 , ) , ) , class_result ( MediaList ) , ctypes . c_void_p , MediaLibrary ) return f ( p_mlib ) | Get media library subitems . |
231,230 | def libvlc_media_list_new ( p_instance ) : f = _Cfunctions . get ( 'libvlc_media_list_new' , None ) or _Cfunction ( 'libvlc_media_list_new' , ( ( 1 , ) , ) , class_result ( MediaList ) , ctypes . c_void_p , Instance ) return f ( p_instance ) | Create an empty media list . |
231,231 | def libvlc_media_list_event_manager ( p_ml ) : f = _Cfunctions . get ( 'libvlc_media_list_event_manager' , None ) or _Cfunction ( 'libvlc_media_list_event_manager' , ( ( 1 , ) , ) , class_result ( EventManager ) , ctypes . c_void_p , MediaList ) return f ( p_ml ) | Get libvlc_event_manager from this media list instance . The p_event_manager is immutable so you don t have to hold the lock . |
231,232 | def libvlc_media_list_player_new ( p_instance ) : f = _Cfunctions . get ( 'libvlc_media_list_player_new' , None ) or _Cfunction ( 'libvlc_media_list_player_new' , ( ( 1 , ) , ) , class_result ( MediaListPlayer ) , ctypes . c_void_p , Instance ) return f ( p_instance ) | Create new media_list_player . |
231,233 | def libvlc_media_list_player_event_manager ( p_mlp ) : f = _Cfunctions . get ( 'libvlc_media_list_player_event_manager' , None ) or _Cfunction ( 'libvlc_media_list_player_event_manager' , ( ( 1 , ) , ) , class_result ( EventManager ) , ctypes . c_void_p , MediaListPlayer ) return f ( p_mlp ) | Return the event manager of this media_list_player . |
231,234 | def libvlc_media_list_player_set_media_player ( p_mlp , p_mi ) : f = _Cfunctions . get ( 'libvlc_media_list_player_set_media_player' , None ) or _Cfunction ( 'libvlc_media_list_player_set_media_player' , ( ( 1 , ) , ( 1 , ) , ) , None , None , MediaListPlayer , MediaPlayer ) return f ( p_mlp , p_mi ) | Replace media player in media_list_player with this instance . |
231,235 | def libvlc_media_list_player_set_media_list ( p_mlp , p_mlist ) : f = _Cfunctions . get ( 'libvlc_media_list_player_set_media_list' , None ) or _Cfunction ( 'libvlc_media_list_player_set_media_list' , ( ( 1 , ) , ( 1 , ) , ) , None , None , MediaListPlayer , MediaList ) return f ( p_mlp , p_mlist ) | Set the media list associated with the player . |
231,236 | def libvlc_media_list_player_is_playing ( p_mlp ) : f = _Cfunctions . get ( 'libvlc_media_list_player_is_playing' , None ) or _Cfunction ( 'libvlc_media_list_player_is_playing' , ( ( 1 , ) , ) , None , ctypes . c_int , MediaListPlayer ) return f ( p_mlp ) | Is media list playing? |
231,237 | def libvlc_media_list_player_get_state ( p_mlp ) : f = _Cfunctions . get ( 'libvlc_media_list_player_get_state' , None ) or _Cfunction ( 'libvlc_media_list_player_get_state' , ( ( 1 , ) , ) , None , State , MediaListPlayer ) return f ( p_mlp ) | Get current libvlc_state of media list player . |
231,238 | def libvlc_media_list_player_play_item_at_index ( p_mlp , i_index ) : f = _Cfunctions . get ( 'libvlc_media_list_player_play_item_at_index' , None ) or _Cfunction ( 'libvlc_media_list_player_play_item_at_index' , ( ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_int , MediaListPlayer , ctypes . c_int ) return f ( p_mlp , i_i... | Play media list item at position index . |
231,239 | def libvlc_media_list_player_play_item ( p_mlp , p_md ) : f = _Cfunctions . get ( 'libvlc_media_list_player_play_item' , None ) or _Cfunction ( 'libvlc_media_list_player_play_item' , ( ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_int , MediaListPlayer , Media ) return f ( p_mlp , p_md ) | Play the given media item . |
231,240 | def libvlc_media_list_player_set_playback_mode ( p_mlp , e_mode ) : f = _Cfunctions . get ( 'libvlc_media_list_player_set_playback_mode' , None ) or _Cfunction ( 'libvlc_media_list_player_set_playback_mode' , ( ( 1 , ) , ( 1 , ) , ) , None , None , MediaListPlayer , PlaybackMode ) return f ( p_mlp , e_mode ) | Sets the playback mode for the playlist . |
231,241 | def libvlc_media_player_new ( p_libvlc_instance ) : f = _Cfunctions . get ( 'libvlc_media_player_new' , None ) or _Cfunction ( 'libvlc_media_player_new' , ( ( 1 , ) , ) , class_result ( MediaPlayer ) , ctypes . c_void_p , Instance ) return f ( p_libvlc_instance ) | Create an empty Media Player object . |
231,242 | def libvlc_media_player_new_from_media ( p_md ) : f = _Cfunctions . get ( 'libvlc_media_player_new_from_media' , None ) or _Cfunction ( 'libvlc_media_player_new_from_media' , ( ( 1 , ) , ) , class_result ( MediaPlayer ) , ctypes . c_void_p , Media ) return f ( p_md ) | Create a Media Player object from a Media . |
231,243 | def libvlc_media_player_set_media ( p_mi , p_md ) : f = _Cfunctions . get ( 'libvlc_media_player_set_media' , None ) or _Cfunction ( 'libvlc_media_player_set_media' , ( ( 1 , ) , ( 1 , ) , ) , None , None , MediaPlayer , Media ) return f ( p_mi , p_md ) | Set the media that will be used by the media_player . If any previous md will be released . |
231,244 | def libvlc_media_player_get_media ( p_mi ) : f = _Cfunctions . get ( 'libvlc_media_player_get_media' , None ) or _Cfunction ( 'libvlc_media_player_get_media' , ( ( 1 , ) , ) , class_result ( Media ) , ctypes . c_void_p , MediaPlayer ) return f ( p_mi ) | Get the media used by the media_player . |
231,245 | def libvlc_media_player_event_manager ( p_mi ) : f = _Cfunctions . get ( 'libvlc_media_player_event_manager' , None ) or _Cfunction ( 'libvlc_media_player_event_manager' , ( ( 1 , ) , ) , class_result ( EventManager ) , ctypes . c_void_p , MediaPlayer ) return f ( p_mi ) | Get the Event Manager from which the media player send event . |
231,246 | def libvlc_media_player_set_agl ( p_mi , drawable ) : f = _Cfunctions . get ( 'libvlc_media_player_set_agl' , None ) or _Cfunction ( 'libvlc_media_player_set_agl' , ( ( 1 , ) , ( 1 , ) , ) , None , None , MediaPlayer , ctypes . c_uint32 ) return f ( p_mi , drawable ) | Set the agl handler where the media player should render its video output . |
231,247 | def libvlc_media_player_set_position ( p_mi , f_pos ) : f = _Cfunctions . get ( 'libvlc_media_player_set_position' , None ) or _Cfunction ( 'libvlc_media_player_set_position' , ( ( 1 , ) , ( 1 , ) , ) , None , None , MediaPlayer , ctypes . c_float ) return f ( p_mi , f_pos ) | 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 . |
231,248 | def libvlc_media_player_get_chapter_count_for_title ( p_mi , i_title ) : f = _Cfunctions . get ( 'libvlc_media_player_get_chapter_count_for_title' , None ) or _Cfunction ( 'libvlc_media_player_get_chapter_count_for_title' , ( ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_int , MediaPlayer , ctypes . c_int ) return f ( p_mi... | Get title chapter count . |
231,249 | def libvlc_media_player_set_rate ( p_mi , rate ) : f = _Cfunctions . get ( 'libvlc_media_player_set_rate' , None ) or _Cfunction ( 'libvlc_media_player_set_rate' , ( ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_int , MediaPlayer , ctypes . c_float ) return f ( p_mi , rate ) | Set movie play rate . |
231,250 | def libvlc_media_player_get_state ( p_mi ) : f = _Cfunctions . get ( 'libvlc_media_player_get_state' , None ) or _Cfunction ( 'libvlc_media_player_get_state' , ( ( 1 , ) , ) , None , State , MediaPlayer ) return f ( p_mi ) | Get current movie state . |
231,251 | def libvlc_media_player_get_fps ( p_mi ) : f = _Cfunctions . get ( 'libvlc_media_player_get_fps' , None ) or _Cfunction ( 'libvlc_media_player_get_fps' , ( ( 1 , ) , ) , None , ctypes . c_float , MediaPlayer ) return f ( p_mi ) | Get movie fps rate . |
231,252 | def libvlc_media_player_has_vout ( p_mi ) : f = _Cfunctions . get ( 'libvlc_media_player_has_vout' , None ) or _Cfunction ( 'libvlc_media_player_has_vout' , ( ( 1 , ) , ) , None , ctypes . c_uint , MediaPlayer ) return f ( p_mi ) | How many video outputs does this media player have? |
231,253 | def libvlc_media_player_navigate ( p_mi , navigate ) : f = _Cfunctions . get ( 'libvlc_media_player_navigate' , None ) or _Cfunction ( 'libvlc_media_player_navigate' , ( ( 1 , ) , ( 1 , ) , ) , None , None , MediaPlayer , ctypes . c_uint ) return f ( p_mi , navigate ) | Navigate through DVD Menu . |
231,254 | def libvlc_media_player_set_video_title_display ( p_mi , position , timeout ) : f = _Cfunctions . get ( 'libvlc_media_player_set_video_title_display' , None ) or _Cfunction ( 'libvlc_media_player_set_video_title_display' , ( ( 1 , ) , ( 1 , ) , ( 1 , ) , ) , None , None , MediaPlayer , Position , ctypes . c_int ) retur... | Set if and how the video title will be shown when media is played . |
231,255 | def libvlc_set_fullscreen ( p_mi , b_fullscreen ) : f = _Cfunctions . get ( 'libvlc_set_fullscreen' , None ) or _Cfunction ( 'libvlc_set_fullscreen' , ( ( 1 , ) , ( 1 , ) , ) , None , None , MediaPlayer , ctypes . c_int ) return f ( p_mi , b_fullscreen ) | Enable or disable fullscreen . |
231,256 | def libvlc_video_set_key_input ( p_mi , on ) : f = _Cfunctions . get ( 'libvlc_video_set_key_input' , None ) or _Cfunction ( 'libvlc_video_set_key_input' , ( ( 1 , ) , ( 1 , ) , ) , None , None , MediaPlayer , ctypes . c_uint ) return f ( p_mi , on ) | 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 . |
231,257 | def libvlc_video_get_size ( p_mi , num ) : f = _Cfunctions . get ( 'libvlc_video_get_size' , None ) or _Cfunction ( 'libvlc_video_get_size' , ( ( 1 , ) , ( 1 , ) , ( 2 , ) , ( 2 , ) , ) , None , ctypes . c_int , MediaPlayer , ctypes . c_uint , ctypes . POINTER ( ctypes . c_uint ) , ctypes . POINTER ( ctypes . c_uint ) ... | Get the pixel dimensions of a video . |
231,258 | def libvlc_video_get_aspect_ratio ( p_mi ) : f = _Cfunctions . get ( 'libvlc_video_get_aspect_ratio' , None ) or _Cfunction ( 'libvlc_video_get_aspect_ratio' , ( ( 1 , ) , ) , string_result , ctypes . c_void_p , MediaPlayer ) return f ( p_mi ) | Get current video aspect ratio . |
231,259 | def libvlc_video_set_aspect_ratio ( p_mi , psz_aspect ) : f = _Cfunctions . get ( 'libvlc_video_set_aspect_ratio' , None ) or _Cfunction ( 'libvlc_video_set_aspect_ratio' , ( ( 1 , ) , ( 1 , ) , ) , None , None , MediaPlayer , ctypes . c_char_p ) return f ( p_mi , psz_aspect ) | Set new video aspect ratio . |
231,260 | def libvlc_video_get_spu ( p_mi ) : f = _Cfunctions . get ( 'libvlc_video_get_spu' , None ) or _Cfunction ( 'libvlc_video_get_spu' , ( ( 1 , ) , ) , None , ctypes . c_int , MediaPlayer ) return f ( p_mi ) | Get current video subtitle . |
231,261 | def libvlc_video_set_spu ( p_mi , i_spu ) : f = _Cfunctions . get ( 'libvlc_video_set_spu' , None ) or _Cfunction ( 'libvlc_video_set_spu' , ( ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_int , MediaPlayer , ctypes . c_int ) return f ( p_mi , i_spu ) | Set new video subtitle . |
231,262 | def libvlc_video_set_subtitle_file ( p_mi , psz_subtitle ) : f = _Cfunctions . get ( 'libvlc_video_set_subtitle_file' , None ) or _Cfunction ( 'libvlc_video_set_subtitle_file' , ( ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_int , MediaPlayer , ctypes . c_char_p ) return f ( p_mi , psz_subtitle ) | Set new video subtitle file . |
231,263 | def libvlc_video_set_spu_delay ( p_mi , i_delay ) : f = _Cfunctions . get ( 'libvlc_video_set_spu_delay' , None ) or _Cfunction ( 'libvlc_video_set_spu_delay' , ( ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_int , MediaPlayer , ctypes . c_int64 ) return f ( p_mi , i_delay ) | 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 . |
231,264 | def libvlc_video_get_chapter_description ( p_mi , i_title ) : f = _Cfunctions . get ( 'libvlc_video_get_chapter_description' , None ) or _Cfunction ( 'libvlc_video_get_chapter_description' , ( ( 1 , ) , ( 1 , ) , ) , None , ctypes . POINTER ( TrackDescription ) , MediaPlayer , ctypes . c_int ) return f ( p_mi , i_title... | Get the description of available chapters for specific title . |
231,265 | def libvlc_video_set_crop_geometry ( p_mi , psz_geometry ) : f = _Cfunctions . get ( 'libvlc_video_set_crop_geometry' , None ) or _Cfunction ( 'libvlc_video_set_crop_geometry' , ( ( 1 , ) , ( 1 , ) , ) , None , None , MediaPlayer , ctypes . c_char_p ) return f ( p_mi , psz_geometry ) | Set new crop filter geometry . |
231,266 | def libvlc_video_set_teletext ( p_mi , i_page ) : f = _Cfunctions . get ( 'libvlc_video_set_teletext' , None ) or _Cfunction ( 'libvlc_video_set_teletext' , ( ( 1 , ) , ( 1 , ) , ) , None , None , MediaPlayer , ctypes . c_int ) return f ( p_mi , i_page ) | Set new teletext page to retrieve . |
231,267 | def libvlc_video_get_track_description ( p_mi ) : f = _Cfunctions . get ( 'libvlc_video_get_track_description' , None ) or _Cfunction ( 'libvlc_video_get_track_description' , ( ( 1 , ) , ) , None , ctypes . POINTER ( TrackDescription ) , MediaPlayer ) return f ( p_mi ) | Get the description of available video tracks . |
231,268 | def libvlc_video_set_deinterlace ( p_mi , psz_mode ) : f = _Cfunctions . get ( 'libvlc_video_set_deinterlace' , None ) or _Cfunction ( 'libvlc_video_set_deinterlace' , ( ( 1 , ) , ( 1 , ) , ) , None , None , MediaPlayer , ctypes . c_char_p ) return f ( p_mi , psz_mode ) | Enable or disable deinterlace filter . |
231,269 | def libvlc_video_get_marquee_string ( p_mi , option ) : f = _Cfunctions . get ( 'libvlc_video_get_marquee_string' , None ) or _Cfunction ( 'libvlc_video_get_marquee_string' , ( ( 1 , ) , ( 1 , ) , ) , string_result , ctypes . c_void_p , MediaPlayer , ctypes . c_uint ) return f ( p_mi , option ) | Get a string marquee option value . |
231,270 | def libvlc_video_set_marquee_string ( p_mi , option , psz_text ) : f = _Cfunctions . get ( 'libvlc_video_set_marquee_string' , None ) or _Cfunction ( 'libvlc_video_set_marquee_string' , ( ( 1 , ) , ( 1 , ) , ( 1 , ) , ) , None , None , MediaPlayer , ctypes . c_uint , ctypes . c_char_p ) return f ( p_mi , option , psz_t... | Set a marquee string option . |
231,271 | def libvlc_video_get_logo_int ( p_mi , option ) : f = _Cfunctions . get ( 'libvlc_video_get_logo_int' , None ) or _Cfunction ( 'libvlc_video_get_logo_int' , ( ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_int , MediaPlayer , ctypes . c_uint ) return f ( p_mi , option ) | Get integer logo option . |
231,272 | def libvlc_video_set_logo_string ( p_mi , option , psz_value ) : f = _Cfunctions . get ( 'libvlc_video_set_logo_string' , None ) or _Cfunction ( 'libvlc_video_set_logo_string' , ( ( 1 , ) , ( 1 , ) , ( 1 , ) , ) , None , None , MediaPlayer , ctypes . c_uint , ctypes . c_char_p ) return f ( p_mi , option , psz_value ) | Set logo option as string . Options that take a different type value are ignored . |
231,273 | def libvlc_video_get_adjust_float ( p_mi , option ) : f = _Cfunctions . get ( 'libvlc_video_get_adjust_float' , None ) or _Cfunction ( 'libvlc_video_get_adjust_float' , ( ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_float , MediaPlayer , ctypes . c_uint ) return f ( p_mi , option ) | Get float adjust option . |
231,274 | def libvlc_video_set_adjust_float ( p_mi , option , value ) : f = _Cfunctions . get ( 'libvlc_video_set_adjust_float' , None ) or _Cfunction ( 'libvlc_video_set_adjust_float' , ( ( 1 , ) , ( 1 , ) , ( 1 , ) , ) , None , None , MediaPlayer , ctypes . c_uint , ctypes . c_float ) return f ( p_mi , option , value ) | Set adjust option as float . Options that take a different type value are ignored . |
231,275 | def libvlc_audio_output_list_get ( p_instance ) : f = _Cfunctions . get ( 'libvlc_audio_output_list_get' , None ) or _Cfunction ( 'libvlc_audio_output_list_get' , ( ( 1 , ) , ) , None , ctypes . POINTER ( AudioOutput ) , Instance ) return f ( p_instance ) | Gets the list of available audio output modules . |
231,276 | def libvlc_audio_output_list_release ( p_list ) : f = _Cfunctions . get ( 'libvlc_audio_output_list_release' , None ) or _Cfunction ( 'libvlc_audio_output_list_release' , ( ( 1 , ) , ) , None , None , ctypes . POINTER ( AudioOutput ) ) return f ( p_list ) | Frees the list of available audio output modules . |
231,277 | def libvlc_audio_output_set ( p_mi , psz_name ) : f = _Cfunctions . get ( 'libvlc_audio_output_set' , None ) or _Cfunction ( 'libvlc_audio_output_set' , ( ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_int , MediaPlayer , ctypes . c_char_p ) return f ( p_mi , psz_name ) | Selects an audio output module . |
231,278 | def libvlc_audio_output_device_list_release ( p_list ) : f = _Cfunctions . get ( 'libvlc_audio_output_device_list_release' , None ) or _Cfunction ( 'libvlc_audio_output_device_list_release' , ( ( 1 , ) , ) , None , None , ctypes . POINTER ( AudioOutputDevice ) ) return f ( p_list ) | Frees a list of available audio output devices . |
231,279 | def libvlc_audio_set_mute ( p_mi , status ) : f = _Cfunctions . get ( 'libvlc_audio_set_mute' , None ) or _Cfunction ( 'libvlc_audio_set_mute' , ( ( 1 , ) , ( 1 , ) , ) , None , None , MediaPlayer , ctypes . c_int ) return f ( p_mi , status ) | Set mute status . |
231,280 | def libvlc_audio_set_volume ( p_mi , i_volume ) : f = _Cfunctions . get ( 'libvlc_audio_set_volume' , None ) or _Cfunction ( 'libvlc_audio_set_volume' , ( ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_int , MediaPlayer , ctypes . c_int ) return f ( p_mi , i_volume ) | Set current software audio volume . |
231,281 | def libvlc_audio_set_track ( p_mi , i_track ) : f = _Cfunctions . get ( 'libvlc_audio_set_track' , None ) or _Cfunction ( 'libvlc_audio_set_track' , ( ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_int , MediaPlayer , ctypes . c_int ) return f ( p_mi , i_track ) | Set current audio track . |
231,282 | def libvlc_audio_set_channel ( p_mi , channel ) : f = _Cfunctions . get ( 'libvlc_audio_set_channel' , None ) or _Cfunction ( 'libvlc_audio_set_channel' , ( ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_int , MediaPlayer , ctypes . c_int ) return f ( p_mi , channel ) | Set current audio channel . |
231,283 | def libvlc_audio_get_delay ( p_mi ) : f = _Cfunctions . get ( 'libvlc_audio_get_delay' , None ) or _Cfunction ( 'libvlc_audio_get_delay' , ( ( 1 , ) , ) , None , ctypes . c_int64 , MediaPlayer ) return f ( p_mi ) | Get current audio delay . |
231,284 | def libvlc_audio_equalizer_get_preset_name ( u_index ) : f = _Cfunctions . get ( 'libvlc_audio_equalizer_get_preset_name' , None ) or _Cfunction ( 'libvlc_audio_equalizer_get_preset_name' , ( ( 1 , ) , ) , None , ctypes . c_char_p , ctypes . c_uint ) return f ( u_index ) | Get the name of a particular equalizer preset . This name can be used for example to prepare a preset label or menu in a user interface . |
231,285 | def libvlc_audio_equalizer_get_band_frequency ( u_index ) : f = _Cfunctions . get ( 'libvlc_audio_equalizer_get_band_frequency' , None ) or _Cfunction ( 'libvlc_audio_equalizer_get_band_frequency' , ( ( 1 , ) , ) , None , ctypes . c_float , ctypes . c_uint ) return f ( u_index ) | Get a particular equalizer band frequency . This value can be used for example to create a label for an equalizer band control in a user interface . |
231,286 | def libvlc_audio_equalizer_get_preamp ( p_equalizer ) : f = _Cfunctions . get ( 'libvlc_audio_equalizer_get_preamp' , None ) or _Cfunction ( 'libvlc_audio_equalizer_get_preamp' , ( ( 1 , ) , ) , None , ctypes . c_float , ctypes . c_void_p ) return f ( p_equalizer ) | Get the current pre - amplification value from an equalizer . |
231,287 | def libvlc_audio_equalizer_get_amp_at_index ( p_equalizer , u_band ) : f = _Cfunctions . get ( 'libvlc_audio_equalizer_get_amp_at_index' , None ) or _Cfunction ( 'libvlc_audio_equalizer_get_amp_at_index' , ( ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_float , ctypes . c_void_p , ctypes . c_uint ) return f ( p_equalizer ,... | Get the amplification value for a particular equalizer frequency band . |
231,288 | def libvlc_vlm_set_loop ( p_instance , psz_name , b_loop ) : f = _Cfunctions . get ( 'libvlc_vlm_set_loop' , None ) or _Cfunction ( 'libvlc_vlm_set_loop' , ( ( 1 , ) , ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_int , Instance , ctypes . c_char_p , ctypes . c_int ) return f ( p_instance , psz_name , b_loop ) | Set a media s loop status . |
231,289 | def libvlc_vlm_seek_media ( p_instance , psz_name , f_percentage ) : f = _Cfunctions . get ( 'libvlc_vlm_seek_media' , None ) or _Cfunction ( 'libvlc_vlm_seek_media' , ( ( 1 , ) , ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_int , Instance , ctypes . c_char_p , ctypes . c_float ) return f ( p_instance , psz_name , f_perce... | Seek in the named broadcast . |
231,290 | def libvlc_vlm_show_media ( p_instance , psz_name ) : f = _Cfunctions . get ( 'libvlc_vlm_show_media' , None ) or _Cfunction ( 'libvlc_vlm_show_media' , ( ( 1 , ) , ( 1 , ) , ) , string_result , ctypes . c_void_p , Instance , ctypes . c_char_p ) return f ( p_instance , psz_name ) | Return information about the named media as a JSON string representation . This function is mainly intended for debugging use if you want programmatic access to the state of a vlm_media_instance_t please use the corresponding libvlc_vlm_get_media_instance_xxx - functions . Currently there are no such functions availabl... |
231,291 | def libvlc_vlm_get_media_instance_position ( p_instance , psz_name , i_instance ) : f = _Cfunctions . get ( 'libvlc_vlm_get_media_instance_position' , None ) or _Cfunction ( 'libvlc_vlm_get_media_instance_position' , ( ( 1 , ) , ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_float , Instance , ctypes . c_char_p , ctypes . c... | Get vlm_media instance position by name or instance id . |
231,292 | def libvlc_vlm_get_media_instance_time ( p_instance , psz_name , i_instance ) : f = _Cfunctions . get ( 'libvlc_vlm_get_media_instance_time' , None ) or _Cfunction ( 'libvlc_vlm_get_media_instance_time' , ( ( 1 , ) , ( 1 , ) , ( 1 , ) , ) , None , ctypes . c_int , Instance , ctypes . c_char_p , ctypes . c_int ) return ... | Get vlm_media instance time by name or instance id . |
231,293 | def libvlc_vlm_get_event_manager ( p_instance ) : f = _Cfunctions . get ( 'libvlc_vlm_get_event_manager' , None ) or _Cfunction ( 'libvlc_vlm_get_event_manager' , ( ( 1 , ) , ) , class_result ( EventManager ) , ctypes . c_void_p , Instance ) return f ( p_instance ) | Get libvlc_event_manager from a vlm media . The p_event_manager is immutable so you don t have to hold the lock . |
231,294 | def debug_callback ( event , * args , ** kwds ) : l = [ 'event %s' % ( event . type , ) ] if args : l . extend ( map ( str , args ) ) if kwds : l . extend ( sorted ( '%s=%s' % t for t in kwds . items ( ) ) ) print ( 'Debug callback (%s)' % ', ' . join ( l ) ) | Example callback useful for debugging . |
231,295 | def event_attach ( self , eventtype , callback , * args , ** kwds ) : if not isinstance ( eventtype , EventType ) : raise VLCException ( "%s required: %r" % ( 'EventType' , eventtype ) ) if not hasattr ( callback , '__call__' ) : raise VLCException ( "%s required: %r" % ( 'callable' , callback ) ) if not any ( getargsp... | Register an event notification . |
231,296 | def media_player_new ( self , uri = None ) : p = libvlc_media_player_new ( self ) if uri : p . set_media ( self . media_new ( uri ) ) p . _instance = self return p | Create a new MediaPlayer instance . |
231,297 | def media_new ( self , mrl , * options ) : if ':' in mrl and mrl . index ( ':' ) > 1 : m = libvlc_media_new_location ( self , str_to_bytes ( mrl ) ) else : m = libvlc_media_new_path ( self , str_to_bytes ( os . path . normpath ( mrl ) ) ) for o in options : libvlc_media_add_option ( m , str_to_bytes ( o ) ) m . _instan... | Create a new Media instance . |
231,298 | def media_list_new ( self , mrls = None ) : l = libvlc_media_list_new ( self ) if mrls : for m in mrls : l . add_media ( m ) l . _instance = self return l | Create a new MediaList instance . |
231,299 | def audio_output_enumerate_devices ( self ) : r = [ ] head = libvlc_audio_output_list_get ( self ) if head : i = head while i : i = i . contents d = [ { 'id' : libvlc_audio_output_device_id ( self , i . name , d ) , 'longname' : libvlc_audio_output_device_longname ( self , i . name , d ) } for d in range ( libvlc_audio... | Enumerate the defined audio output devices . |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.