The text "Waiting for video..." is no longer shown be default. One has to add it to the browser plugin properties before it is shown on the plugin area.
width="640"\r
height="480"\r
toolbar="true"\r
width="640"\r
height="480"\r
toolbar="true"\r
+ text="Waiting for video"\r
name="vlc">\r
</EMBED>\r
</OBJECT>\r
name="vlc">\r
</EMBED>\r
</OBJECT>\r
b_stream(0),
b_autoplay(1),
b_toolbar(0),
b_stream(0),
b_autoplay(1),
b_toolbar(0),
psz_target(NULL),
playlist_index(-1),
libvlc_instance(NULL),
psz_target(NULL),
playlist_index(-1),
libvlc_instance(NULL),
{
psz_target = argv[i];
}
{
psz_target = argv[i];
}
+ else if( !strcmp( argn[i], "text" ) )
+ {
+ psz_text = strdup( argv[i] );
+ }
else if( !strcmp( argn[i], "autoplay")
|| !strcmp( argn[i], "autostart") )
{
else if( !strcmp( argn[i], "autoplay")
|| !strcmp( argn[i], "autostart") )
{
{
free(psz_baseURL);
free(psz_target);
{
free(psz_baseURL);
free(psz_target);
if( libvlc_media_player )
libvlc_media_player_release( libvlc_media_player );
if( libvlc_media_list )
if( libvlc_media_player )
libvlc_media_player_release( libvlc_media_player );
if( libvlc_media_list )
int b_stream;
int b_autoplay;
int b_toolbar;
int b_stream;
int b_autoplay;
int b_toolbar;
char * psz_target;
void playlist_play(libvlc_exception_t *ex)
char * psz_target;
void playlist_play(libvlc_exception_t *ex)
/* Enable/disable debugging printf's for X11 resizing */
#undef X11_RESIZE_DEBUG
/* Enable/disable debugging printf's for X11 resizing */
#undef X11_RESIZE_DEBUG
-#define WINDOW_TEXT "Waiting for video"
-
/*****************************************************************************
* Unix-only declarations
******************************************************************************/
/*****************************************************************************
* Unix-only declarations
******************************************************************************/
ForeColor(whiteColor);
MoveTo( (npwindow.width-80)/ 2 , npwindow.height / 2 );
ForeColor(whiteColor);
MoveTo( (npwindow.width-80)/ 2 , npwindow.height / 2 );
- DrawText( WINDOW_TEXT , 0 , strlen(WINDOW_TEXT) );
+ if( p_plugin->psz_text )
+ DrawText( p_plugin->psz_text, 0, strlen(p_plugin->psz_text) );
FillRect( hdc, &rect, (HBRUSH)GetStockObject(BLACK_BRUSH) );
SetTextColor(hdc, RGB(255, 255, 255));
SetBkColor(hdc, RGB(0, 0, 0));
FillRect( hdc, &rect, (HBRUSH)GetStockObject(BLACK_BRUSH) );
SetTextColor(hdc, RGB(255, 255, 255));
SetBkColor(hdc, RGB(0, 0, 0));
- DrawText( hdc, WINDOW_TEXT, strlen(WINDOW_TEXT), &rect,
- DT_CENTER|DT_VCENTER|DT_SINGLELINE);
+ if( p_plugin->psz_text )
+ DrawText( hdc, p_plugin->psz_text, strlen(p_plugin->psz_text), &rect,
+ DT_CENTER|DT_VCENTER|DT_SINGLELINE);
EndPaint( p_hwnd, &paintstruct );
return 0L;
EndPaint( p_hwnd, &paintstruct );
return 0L;
gcv.foreground = WhitePixel( p_display, 0 );
XChangeGC( p_display, gc, GCForeground, &gcv );
gcv.foreground = WhitePixel( p_display, 0 );
XChangeGC( p_display, gc, GCForeground, &gcv );
- XDrawString( p_display, video, gc,
- window.width / 2 - 40, (window.height - i_control_height) / 2,
- WINDOW_TEXT, strlen(WINDOW_TEXT) );
+ if( p_plugin->psz_text )
+ XDrawString( p_display, video, gc,
+ window.width / 2 - 40, (window.height - i_control_height) / 2,
+ p_plugin->psz_text, strlen(p_plugin->psz_text) );
XFreeGC( p_display, gc );
p_plugin->redrawToolbar();
XFreeGC( p_display, gc );
p_plugin->redrawToolbar();