rkrug01 wrote: 
> Le lundi 13 juin 2016, maweber <maweber.7h9d2n (AT) no-mx (DOT)
> forums.slimdevices.com>
> a écrit :
> >
> > if that's the place to drop the docs:
> > hacking together a small web-app in OSX:
> > (just hardcoded urls, I have no idea about Xcode really)[/color]
> 
> 
> Interesting - could you upload the code to GitHub or anywhere else to
> share? Or give an howto? I would very much like to try it out.
> 
> Rainer
> 

Bonsoir
Yes of course, its here:
https://github.com/martynchamberlin/WebView

I'm not sure if this was all, besides the icons and some specs, but I
edited CustomNSWindow.m as follows:


Code:
--------------------
    
  
  .....
  - (void)setupWebPage
  {
  [self.webView setUIDelegate:self];
  NSString *urlAddress = @"http://YourDomainorIP:9000";;
  NSURL *url = [NSURL URLWithString:urlAddress];
  NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
  [[self.webView mainFrame] loadRequest:requestObj];
  [self setContentView:self.webView];
  }
  .....
  
--------------------


i think you can also put the MAC adress of the player as in:


Code:
--------------------
    
  
  .....
  - (void)setupWebPage
  {
  [self.webView setUIDelegate:self];
  NSString *urlAddress = 
@"http://YourDomainorIP:9000/?player=b8:27:eb:49:7d:61";;
  NSURL *url = [NSURL URLWithString:urlAddress];
  NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
  [[self.webView mainFrame] loadRequest:requestObj];
  [self setContentView:self.webView];
  }
  .....
  
--------------------


to more or less force a specific player. I guess though this is also
cookie/session depending.
M


------------------------------------------------------------------------
maweber's Profile: http://forums.slimdevices.com/member.php?userid=64980
View this thread: http://forums.slimdevices.com/showthread.php?t=105324

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

Reply via email to