VLC Module Overview
VLC Examples
Example 1 - Working with VLC methods and attributes
This example provides a general overview of the functionalities supported by the VLC module. Additional examples can be found in the code reference for this module.
1 import PyXA
2 app = PyXA.Application("VLC")
3
4 # Open or get (without opening) files and URLs
5 app.open("/Users/exampleUser/ExampleFile.m4v")
6 app.open("https://upload.wikimedia.org/wikipedia/commons/transcoded/e/e1/Black_Hole_Merger_Simulation_GW170104.webm/Black_Hole_Merger_Simulation_GW170104.webm.1080p.vp9.webm")
7 app.get_url("https://upload.wikimedia.org/wikipedia/commons/transcoded/e/e1/Black_Hole_Merger_Simulation_GW170104.webm/Black_Hole_Merger_Simulation_GW170104.webm.1080p.vp9.webm")
8
9 # Control playback
10 app.stop()
11 app.play()
12 app.previous()
13 app.next()
14 app.step_forward()
15 app.step_backward()
16 app.current_time = app.current_time + 5
17
18 # Control volume
19 app.volume_up()
20 app.volume_down()
21 app.mute()
22 app.audio_volume = 256
23
24 # Control the VLC window
25 app.fullscreen()
26 app.fullscreen_mode = False
27 app.front_window.bounds = (0, 0, 500, 500)
28 app.zoomed = True
29
30 # Utilize information about playback
31 file = app.path_of_current_item
32 file.show_in_finder()
33
34 if app.audio_volume > 256:
35 app.audio_volume = 256
VLC Resources
For all classes, methods, and inherited members of the VLC module, see the VLC Module Reference.