Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

two player play at the same time #690

Open
xzjs opened this issue Jun 3, 2021 · 6 comments
Open

two player play at the same time #690

xzjs opened this issue Jun 3, 2021 · 6 comments

Comments

@xzjs
Copy link

xzjs commented Jun 3, 2021

I have an issue / a question (pick one) about Vlc.DotNet.

Generic information

  • Vlc.DotNet version : (3.1.0)
  • Vlc.DotNet project used : (WinForms)
  • libvlc version : (3.0.14) + nutget
  • .net version : (5.0)
  • Project language : (C#)
  • Project build architecture : AnyCPU
  • Operating system : Windows x64

Summary

I have two players. I want them to play at the same time, what should I do?

@jeremyVignelles
Copy link
Collaborator

Use two media player controls?

Also, please consider switching to LibVLCSharp, this project is deprecated.

@xzjs
Copy link
Author

xzjs commented Jun 3, 2021

yes, but i have done a lot of work in Vlc.DotNet ,are there any solutions?

@mfkl
Copy link
Contributor

mfkl commented Jun 3, 2021

Use two media player controls?

@xzjs
Copy link
Author

xzjs commented Jun 4, 2021

Use two media player controls?

yeah,i use two media player controls,and i play meida by this code

var actions = new Action[] {
    ()=>vlcControl1.Play(),
    ()=>vlcControl2.Play()
};
Parallel.Invoke(actions);

The two media are not playing simultaneously

@mfkl
Copy link
Contributor

mfkl commented Jun 4, 2021

there is no easy way to sync 2 mediaplayers.

@ZeBobo5
Copy link
Owner

ZeBobo5 commented Jun 4, 2021

You can try playing 2 videos in one media player like https://www.vlchelp.com/how-to-open-two-videos-side-by-side/
Not tested

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants