INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Request: add zone limiter to isplaying() and isplayingnow()  (Read 782 times)

mark_h

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1854
Request: add zone limiter to isplaying() and isplayingnow()
« on: December 23, 2012, 07:49:53 am »

Would it be possible to extend the isplaying() and isplayingnow() function to allow specific zones to be tested, eg

isplayingnow(Playing Now)

would only refer to a zone called Playing Now

Right now the functions crosses all zones which can result in unwanted pollution of results...

And perhaps also a "current zone" modifier, which returns results only from the currently selected zone.  That would actually be most useful, and possibly easier to implement.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: Request: add zone limiter to isplaying() and isplayingnow()
« Reply #1 on: December 24, 2012, 09:11:21 am »

Technically that would be a little harder than you might expect.

Currently we keep a single bit flag per file.  But to know per zone, the expression engine would need to talk to the player engine.  They're encapsulated and communication in a thread-safe way is a bit complicated.

So this isn't something we'll be able to just sneak in.  Sorry.
Logged
Matt Ashland, JRiver Media Center

mark_h

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1854
Re: Request: add zone limiter to isplaying() and isplayingnow()
« Reply #2 on: December 24, 2012, 10:54:07 am »

No worries.  Having is[in]playingnow() was a big bonus item anyway.

Merry Xmas guys!

Mark
Logged
Pages: [1]   Go Up