cpd73 wrote: 
> If I could resize the browser window with Material, then this is all I
> would have done. If this, resizing the window, is the way its
> implemented in squeezelite-X, and I can identify squeezelite-x (via user
> agent?) then I could remove the "Open mini-browser" actions from the
> menu?

Craig,

Squeezelite-X handles both Material and the default skin.  I implemented
the default skin well before material and the Default Skin uses a
different Url than its main window
(http://[host]:[port]/default/status_header.html).  And so I implemented
things similarly when Material skin got a mini-player.  At the time I
determined it was using the url http://[Host]:[port]/material/mini.

SLX has two ways the mini-player can be launched - from the page
contents itself, or from a button on the titlebar.  If from the page
itself, a browser popup event is triggered.  In that event I get the
target url and I open a new window with a new browser component and pass
it that target url.  If invoked using a titlebar button, I do the same
thing, but I pass it a url I create (e.g. .default/status_header.html or
/material/mini) depending on what skin is being used at the time.

I also reduce the zoom factor for the mini-player to 90% of what it was
in the main browser, so the mini player is a little smaller.

Other differences, the miniplayer also has a "Stay On Top" option.  It
uses a borderless, captionless window, so no resize handles, no min/max
buttons.  It sorta behaves like what Windows calls a ToolWin.

I have noticed that with Material Skin 1.4.0 the targetFrameName value I
get in the Popup event is "[Player Name] Mini-Player", where before i
think it was just "MiniPlayer".  I key on the targetframeName to know if
a miniplayer is popping up, rather than other windows that I will go
ahead and open in a regular browser (e.g. settings).

The easiest ting for me to do quickly is to just accept both the new and
old targetFrameName ('miniplayer' or '[player name] Mini-Player" and
create the miniplayer as I currently do.

Please preserve the material/mini url option for now.

Thanks,

R Greg Dawson



Squeezelite-X
------------------------------------------------------------------------
rgdawson's Profile: http://forums.slimdevices.com/member.php?userid=65236
View this thread: http://forums.slimdevices.com/showthread.php?t=108550

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to