Hi All,
Trying to implement text overlays in using player.video_set_marquee_int, but found the following fix me note:
# FIXME: This crashes the module - it should be investigated# player.video_set_marquee_int(VideoMarqueeOption.Position, Position.bottom)
Error Received :

Temporary Fix 1
I have no experience in ctype binding, so not sure how to implement the fix properly, but it looks like the class type _Enum of VideoMarqueeOption.Position isn't resolving to an INT type properly? When I use the native VLC integer assignments (found here) I'm able to set the overlay position as expected, for example, setting it display the text on the bottom:
# Marquee position: 0=center, 1=left, 2=right, 4=top, 8=bottom,# you can also use combinations of these values, eg 6 = top-right. default value: -1self.player.video_set_marquee_int(4, 8)
Temporary Fix 2
Alternatively, if I set the enum entries without the Position() wrapper (not sure what to call this), it allows for using the enum and works:
Position.bottom=8Position.bottom_left=9Position.bottom_right=10Position.center=0Position.disable=-1Position.left=1Position.right=2Position.top=4Position.top_left=5Position.top_right=6 ...
player.video_set_marquee_int(VideoMarqueeOption.Position, Position.bottom)
Not sure why the other enums seem to work natively, but since I don't see any open issues discussing this, decided to start this thread with my findings.
Misc Comments
Additionally, I noticed two small discrepancies:
- It looks like the casing of the enums has changed and is out of sync with the example implementations which expect Position.Bottom, vs Position.bottom
- The enum values don't appear to match the VLC source. The below is the same fix above, pasted with the old mappings in comment form for comparison
src block
# Old mappings are in comment form to compare before/afterPosition.bottom=8#Position(6)Position.bottom_left=9#Position(7)Position.bottom_right=10#Position(8)Position.center=0#Position(0)Position.disable=-1#Position(-1)Position.left=1#Position(1)Position.right=2#Position(2)Position.top=4#Position(3)Position.top_left=5#Position(4)Position.top_right=6#Position(5)

img src
Hope this helps in troubleshooting.
Hi All,
Trying to implement text overlays in using player.video_set_marquee_int, but found the following fix me note:
Error Received :
Temporary Fix 1
I have no experience in ctype binding, so not sure how to implement the fix properly, but it looks like the class type _Enum of VideoMarqueeOption.Position isn't resolving to an INT type properly? When I use the native VLC integer assignments (found here) I'm able to set the overlay position as expected, for example, setting it display the text on the bottom:
Temporary Fix 2
Alternatively, if I set the enum entries without the Position() wrapper (not sure what to call this), it allows for using the enum and works:
Not sure why the other enums seem to work natively, but since I don't see any open issues discussing this, decided to start this thread with my findings.
Misc Comments
Additionally, I noticed two small discrepancies:
src block
img src
Hope this helps in troubleshooting.