Python Forum
Can't work out parameter format for LibVLC functions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't work out parameter format for LibVLC functions
#8
(Apr-28-2019, 10:34 PM)Yoriz Wrote: Stab in the dark here but try player.video_set_aspect_ratio('16:9')
Geez, that worked! Thank you!

I had already moved to the player.method(parameters) style, as opposed to method.(player, parameters), but I only gleaned that from an example I found, nothing in the documentation led me to think that was possible.

So, in the interests of teaching a man to fish, how did you think to try '16:9'? I had tried that I swear, but maybe not with the player.method() style. I find it strange that we had to "stab in the dark" instead of the documentation giving us the info...

And also where did you get the inclination that the player.method() syntax was possible?

Man I tried vlc.libvlc_video_set_aspect_ratio(player, '16:9') and like I thought - that still gives the error! But for some reason, player.video_set_aspect_ratio('16:9') works...
Reply


Messages In This Thread
RE: Can't work out parameter format for LibVLC functions - by Domarius - Apr-28-2019, 11:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [ERROR] ParamValidationError: Parameter validation failed: Invalid type for parameter gdbengo 3 11,379 Dec-26-2022, 08:48 AM
Last Post: ibreeden
  main libvlc error: stale plugins cache: schascheck 2 7,810 Dec-27-2020, 05:24 PM
Last Post: schascheck
  User functions don't work: Baldev10 7 3,227 Aug-18-2020, 08:34 PM
Last Post: deanhystad
  I writte 5 functions (def) but on 6 don't work. Someone can help me? perrud 2 2,835 Feb-03-2018, 10:20 AM
Last Post: perrud

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020