Resize and position multiple VLC windows

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
hermel
New Cone
New Cone
Posts: 3
Joined: 19 Nov 2019 10:03

Resize and position multiple VLC windows

Postby hermel » 19 Nov 2019 10:29

Hi,

I'm writing several scripts for managing multiple VLC windows (by telnet vlc cli commands),
and trying to open 4 different videos (with different resolutions) on 4 vlc instances.

The windows sizes should be equal, no matter the original video file resolution.
Also, the positions should be set to the 4 quarters of the screen (top left, top right, bottom left, bottom right).

I tried to use the flags:
video-x, video-y for position on screen
and flags:
width, height for window size.

I think the width / height doesn't work as documented.

Also, I'm not quite sure how to determine the sizes by the window size and not by the videos?

Any assitance would be appreciated :)

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: Resize and position multiple VLC windows

Postby unidan » 19 Nov 2019 15:17

Hi, what version of VLC are your using first ? What do you plan to do with the windows ? There might be a better way to achieve this.

hermel
New Cone
New Cone
Posts: 3
Joined: 19 Nov 2019 10:03

Re: Resize and position multiple VLC windows

Postby hermel » 20 Nov 2019 08:34

Hi, what version of VLC are your using first ? What do you plan to do with the windows ? There might be a better way to achieve this.
I'm using VLC 3.0.8.
The plan is to use the VLC telnet api in order to create an option for playing simultaneously and syncing 4 different videos.
The result would be a splitted screen with 4 windows and another external timeline manager bar (with play/pause/timeline seeker..) that controls the synced videos remotly by sending commands through telnet

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: Resize and position multiple VLC windows

Postby unidan » 20 Nov 2019 17:02

Hi, is there a reason why you avoid VLM and the HTTP API interface then ? It seems to match your needs a lot better than RC telnet and multiple VLC instances.

hermel
New Cone
New Cone
Posts: 3
Joined: 19 Nov 2019 10:03

Re: Resize and position multiple VLC windows

Postby hermel » 21 Nov 2019 08:56

Hi, is there a reason why you avoid VLM and the HTTP API interface then ? It seems to match your needs a lot better than RC telnet and multiple VLC instances.
Yes, I wrapped the telnet api by using a certain NodeJS package that is very convenient for developing over this API.

EDIT: If I will change the way my code works and use the VLM + HTTP API, is it possible to open several Instances of WEB VLC and insert them into HTML?
(If I could place the web VLCs inside HTML I could arrange them properly with some css).


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 8 guests