Page 1 of 1

Problem! libvlc_audio_set_mute doesn't work?

Posted: 30 Apr 2010 03:36
by henrymark
hi,all,

Itry to use v1.0.5 libvlc.dll libvlc_audio function, but it always tells me that media handle is accessing violation.

Does anyone meet this scenario ? or these funciotn need some init process?? thanks for help.

Re: Problem! libvlc_audio_set_mute doesn't work?

Posted: 30 Apr 2010 18:50
by Rémi Denis-Courmont
libvlc 1.0 is buggy. Please update to libvlc 1.1, otherwise we are not going to help you.

Re: Problem! libvlc_audio_set_mute doesn't work?

Posted: 03 May 2010 09:39
by henrymark
Thanks a lot a lot for your quick reply, Rémi Denis-Courmont,

I just try vlc-1.1.0-pre3-20100503-0202-win32-debug.7z from nightly builder, these audio function seems works, BBBUT, double clicked to show fullscreen is gone,

So I need to try libvlc_toggle_fullscreen and it does't work too.

Am I downloading the wrong version?? or it's just my misuse of the fullscreen function ?? I don't know what version I can use?? Thansks!

Re: Problem! libvlc_audio_set_mute doesn't work?

Posted: 05 May 2010 09:06
by henrymark
Anyone try this API to set fullscreen??

Re: Problem! libvlc_audio_set_mute doesn't work?

Posted: 05 May 2010 18:51
by Rémi Denis-Courmont
I guess you did not read the warning from the documentation:

Code: Select all

* @warning With most window managers, only a top-level windows can be in * full-screen mode. Hence, this function will not operate properly if * libvlc_media_player_set_xid() was used to embed the video in a non-top-level * window. In that case, the embedding window must be reparented to the root * window <b>before</b> fullscreen mode is enabled. You will want to reparent * it back to its normal parent when disabling fullscreen.

Re: Problem! libvlc_audio_set_mute doesn't work?

Posted: 06 May 2010 11:27
by henrymark
Thanks for your reply, Rémi Denis-Courmont !
I just use the libvlc_media_player_set_hwnd to set drawable handle, and I don't know which function I can use to set_hwnd to none to let toggle_fullscreen work?
It's means that I just try to use libvlc_media_player_set_hwnd to none to let fullscreen work, but it's seems not work.
Does anyone know HOW to reparent the window?? Thanks!

Re: Problem! libvlc_audio_set_mute doesn't work?

Posted: 07 May 2010 15:23
by Rémi Denis-Courmont
You can't do that. If you tell VLC to render in your own window, then you need to implement fullscreen yourself. VLC has no control over your window.

Re: Problem! libvlc_audio_set_mute doesn't work?

Posted: 10 May 2010 11:27
by henrymark
Thanks again, Rémi Denis-Courmont!
But I think when playing the vlc won't forward the mouse event so I can't get the double click event. or any other api can forward the mouse event?
Thanks.

Re: Problem! libvlc_audio_set_mute doesn't work?

Posted: 11 May 2010 09:13
by henrymark
Hi, all
I know v1.0.5 all the audio function not work, but I try the v1.0.5 fullscreen feature, it will reparent and can back to original handle by itself, so vlc can reparent by itself.
So I want to know will we have chance to change handle to let toggle_fullscreen works in future version?? Thanks a lot !
BTW, I think there are still some bugs inside v1.1 about libvlc_audio_set_mute and toggle_mute, because I try several time to set mute and toggle_mute and it will mute forever.

Re: Problem! libvlc_audio_set_mute doesn't work?

Posted: 11 May 2010 18:05
by Rémi Denis-Courmont
The old reparenting semantic was broken by design. It prevented correct handling of input events in fullscreen mode, and worse, after fullscreen mode.

As for set_mute, this is probably a bug.