* vlcpeer.cpp: scriptable peer descriptor
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: vlcpeer.cpp,v 1.4 2003/07/07 12:04:50 sam Exp $
+ * $Id: vlcpeer.cpp,v 1.9 2003/10/23 17:04:39 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
/*****************************************************************************
* Preamble
*****************************************************************************/
+#include "config.h"
+
#include <vlc/vlc.h>
-#include "nsISupports.h"
-#include "nsMemory.h"
+#ifdef DEBUG
+/* We do not want to use nsDebug.h */
+# undef DEBUG
+#endif
+
+#ifdef HAVE_MOZILLA_CONFIG_H
+# include <mozilla-config.h>
+#endif
+#include <nsISupports.h>
+#include <nsMemory.h>
+#include <npapi.h>
+
+#if !defined(XP_MACOSX) && !defined(XP_UNIX) && !defined(XP_WIN)
+#define XP_UNIX 1
+#elif defined(XP_MACOSX)
+#undef XP_UNIX
+#endif
-#include "npapi.h"
#include "vlcpeer.h"
#include "vlcplugin.h"
{
if( !p_plugin->b_stream && p_plugin->psz_target )
{
- VLC_AddTarget( p_plugin->i_vlc, p_plugin->psz_target,
+ VLC_AddTarget( p_plugin->i_vlc, p_plugin->psz_target, 0, 0,
PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END );
p_plugin->b_stream = 1;
}
{
if( p_plugin )
{
+#ifdef XP_MACOSX
+#else
VLC_FullScreen( p_plugin->i_vlc );
+#endif
}
return NS_OK;
}