Problem! libvlc_audio_set_mute doesn't work?

This forum is about all development around libVLC.
henrymark
Blank Cone
Blank Cone
Posts: 46
Joined: 11 Aug 2009 09:55

Problem! libvlc_audio_set_mute doesn't work?

Postby henrymark » 30 Apr 2010 03:36

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Problem! libvlc_audio_set_mute doesn't work?

Postby Rémi Denis-Courmont » 30 Apr 2010 18:50

libvlc 1.0 is buggy. Please update to libvlc 1.1, otherwise we are not going to help you.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

henrymark
Blank Cone
Blank Cone
Posts: 46
Joined: 11 Aug 2009 09:55

Re: Problem! libvlc_audio_set_mute doesn't work?

Postby henrymark » 03 May 2010 09:39

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!
Last edited by henrymark on 05 May 2010 09:07, edited 1 time in total.

henrymark
Blank Cone
Blank Cone
Posts: 46
Joined: 11 Aug 2009 09:55

Re: Problem! libvlc_audio_set_mute doesn't work?

Postby henrymark » 05 May 2010 09:06

Anyone try this API to set fullscreen??

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Problem! libvlc_audio_set_mute doesn't work?

Postby Rémi Denis-Courmont » 05 May 2010 18:51

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

henrymark
Blank Cone
Blank Cone
Posts: 46
Joined: 11 Aug 2009 09:55

Re: Problem! libvlc_audio_set_mute doesn't work?

Postby henrymark » 06 May 2010 11:27

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!

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Problem! libvlc_audio_set_mute doesn't work?

Postby Rémi Denis-Courmont » 07 May 2010 15:23

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

henrymark
Blank Cone
Blank Cone
Posts: 46
Joined: 11 Aug 2009 09:55

Re: Problem! libvlc_audio_set_mute doesn't work?

Postby henrymark » 10 May 2010 11:27

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.

henrymark
Blank Cone
Blank Cone
Posts: 46
Joined: 11 Aug 2009 09:55

Re: Problem! libvlc_audio_set_mute doesn't work?

Postby henrymark » 11 May 2010 09:13

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Problem! libvlc_audio_set_mute doesn't work?

Postby Rémi Denis-Courmont » 11 May 2010 18:05

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 12 guests