Home > Software engineering >  Libvlc development for the same video need two interface shows up and down
Libvlc development for the same video need two interface shows up and down

Time:09-23

present :
Now instantiate two objects, binding on the two panel, according to
Problems encountered :
Two video can't broadcast live, there will always be a few hundred milliseconds of delay difference, (the following players play at the back, so there will be a delay,)
Two players, because it is so sound is two, and because of the delay problem, a first one last overlay,
to :
1. Libvlc_audio_set_volume
2. Libvlc_audio_set_mute
The above two will lead to two players at the same time have no sound
in order to achieve the effect of interface as shown in figure :


Expect the best solution:
Scheme 1. Only one player instantiated, libvlc_media_player_set_hwnd binding to the two controls, the output images at the same time,
Scheme 2. Shut down the voice of one of the players, do not affect another (this plan will have two images out of sync issues)

CodePudding user response:

The great spirit guide, thank humbly

CodePudding user response:

Under his roof, read the API documentation, several times without proper solution,

CodePudding user response:

Close the hardware acceleration?

CodePudding user response:

A long afternoon still have no idea the

CodePudding user response:

Thanks brother 3 floor

CodePudding user response:

Tips at the same time, there can be only one video window using hardware acceleration,

CodePudding user response:

Your problem solved? I have also encountered such a problem, seek solutions, thank you!

CodePudding user response:

Using the callback function, apply colours to a drawing the same video images on two controls,
  • Related