I always reply to my email, so I must not have received anything from you.Ok I recasted the mediaPlayer object to WindowsEmbeddedMediaPlayer for the setVideoSurface() and can compile. Bad news is when creating the instance of vlc the code now hangs as if the creation is taking forever. This is new since I upgraded to vlcj 1.1.1. I will let you know what I find. Please update your test code because you might run into the same issues I am.
Thanks,
-Tony
Well, I do say to use the specific type of media player the factory returns rather than the base-class. I accept I could have been clearer though.Okay I read your comments about 1.1.0 to 1.1.1 but no mention of the issue regarding setVideoSurface() and recasting to use it. Not that I expected details but that is why I looked at the test case examples and frowned and left this message.
Is this in your own application or with my test player? Because my test player was definitely broken in that release (hard-coded plugin path), but I've fixed it now.I need to focus back on the issue of creating a vlc instance taking forever next.
Sorry I missed this message the first time.Hi Sherington,
It was only one issue so far with a small change it's I am just not sure you intended that to happen with the setVideoSurface since that means the users of the vlcj api now have to add a reference to a particular OS which I think you were trying to avoid? I will add code changes to accomidate different OS's now for just that one method. I will check the web site for anything else I might have missed.
What is the purpose of using a LOG instance of libvlc? Is that the default now for the instance? I have not included log4j with my deployment so commented out all the log statements and used the old non-logging instance of libvlc. Will that be an issue with 1.1.1 vlcj? I will look into adding log4j any vendor and specific version I need to deploy? There seem to be multiple sources for log4j.
Thanks,
-Tony
For the log output did you try the usual "-vvv" libvlc args?I will see how to setup debug mode since I think you set it up to return all messages that are sent to the message window in vlc? That would be usefull if I can get those messages.
Do you have any remaining issues with the latest vlcj?I did fix the remaining issue (around 5:00AM my time) where I was playing youtube videos with my app. So now I can play them again using 1.1.2 nightly.
Code: Select all
JSplitPane splitPane = new JSplitPane();
splitPane.setLeftComponent(videoSurface);
splitPane.setRightComponent(new JButton("Other thing"));
mainFrame.add(splitPane, BorderLayout.CENTER);
Code: Select all
mainFrame.setLayout(new BorderLayout());
mainFrame.setBackground(Color.black);
JSplitPane splitPane = new JSplitPane();
splitPane.setLeftComponent(videoSurface);
splitPane.setRightComponent(new JButton("Other thing"));
mainFrame.add(splitPane, BorderLayout.CENTER);
mainFrame.add(controlsPanel, BorderLayout.SOUTH);
mainFrame.add(videoAdjustPanel, BorderLayout.EAST);
A couple of things working in isolation or together may be causing this...I have a problem with the videoSurface and JSplitPane in my program. I can enlarge the videoSurface but can't shirk it.
Code: Select all
mediaPlayerFactory = new MediaPlayerFactory(VLC_ARGS);
mediaPlayer = mediaPlayerFactory.newEmbeddedMediaPlayer();
mediaPlayer.addMediaPlayerEventListener(new PlayerListener());
videoCanvas = new uk.co.caprica.vlcj.runtime.windows.WindowsCanvas();
videoCanvas.setBackground(Color.black);
playerPanel.add(videoCanvas, BorderLayout.CENTER);
mediaPlayer.setVideoSurface(mediaPlayerFactory.newVideoSurface(videoCanvas));
Code: Select all
playerPanel.addComponentListener(new ComponentAdapter()
{
@Override
public void componentResized(final ComponentEvent componentEvent)
{
if (componentEvent != null)
{
Component component = componentEvent.getComponent();
if (component != null)
{
Dimension size = component.getSize();
if (size != null)
{
videoCanvas.setSize(size.width, size.height);
}
}
}
}
});
Return to “Development around libVLC”
Users browsing this forum: No registered users and 26 guests