Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number of playing streams? #14

Closed
dragon299 opened this issue Oct 16, 2019 · 12 comments
Closed

Number of playing streams? #14

dragon299 opened this issue Oct 16, 2019 · 12 comments
Assignees
Labels
enhancement New feature or request verify-fix Verify if the implemented fix has solved the issue

Comments

@dragon299
Copy link

Is there a possiblity to read the number of currently playing streams using this adapter?

Sry for this stupid question I am not able to find a state which gives me this number.

@Zefau
Copy link
Collaborator

Zefau commented Oct 16, 2019

Which version are you on?
The state plex.0._playing.playing (Players currently playing) holds the current players playing.

What information are you looking for? Probably no effort to add it.

@dragon299
Copy link
Author

Thanks for your fast answer. Looks like this (plex.0._playing.playing) is exactly the state I am looking for. Unfortunately it is missing in my environment.

Please find attached a screenshot:
image

I run version 0.3.1 currently.

@Zefau
Copy link
Collaborator

Zefau commented Oct 17, 2019

Try the version from the latest repository.

@dragon299
Copy link
Author

The newest version gives me the mentioned state. Unfortunately it is not exactly what I am looking for. I need a state which gives me the number (Integer) of concurrent streams running at the moment.

In plex.0._playing.playing I see only the devices/players currently streaming. I tought I could count those devices with a little script but that does not work, because if there a multiply streams from the same device (sample chrome), I will have only one entry.

Would it be possibly to add such a state to this adapter?

Thank you for your efforts.

@Zefau
Copy link
Collaborator

Zefau commented Oct 17, 2019

I could add that, but how do you have multiple streams from the same device? I thought it is only possible to have one stream per device at a moment?

@dragon299
Copy link
Author

You can watch multiple streams if you start plex in multiple chrome tabs. Of course this is not a really common task but you could have 2 different users, which watch something in paralell on two different pc´s using chrome.

@Zefau
Copy link
Collaborator

Zefau commented Oct 18, 2019

That's true. I will implement the number of concurrent streams with one of the next releases.

@Zefau Zefau added this to To do in Plex ROADMAP Oct 22, 2019
@Zefau Zefau added the enhancement New feature or request label Oct 28, 2019
@Zefau
Copy link
Collaborator

Zefau commented Oct 28, 2019

Please check out v0.8.0 if the newly added state streams does fit your needs. Thanks

@Zefau Zefau added the verify-fix Verify if the implemented fix has solved the issue label Oct 28, 2019
@Zefau Zefau self-assigned this Oct 28, 2019
@Zefau Zefau moved this from To do to In progress in Plex ROADMAP Oct 28, 2019
@Zefau Zefau moved this from In progress to In test in Plex ROADMAP Oct 28, 2019
@dragon299
Copy link
Author

Looks like there is a bug in v0.8.0. The adapter is not able to start in my environment. Please find attached the error message:

error by controller[0]: at Adapter.ready (/opt/iobroker/node_modules/iobroker.plex/plex.js:90:32)
error by controller[0]: TypeError: Cannot read property 'forEach' of undefined

@Zefau
Copy link
Collaborator

Zefau commented Oct 29, 2019

Sorry. Could you try version v0.8.1 from Github?

@dragon299
Copy link
Author

thanks a lot, the new version works perfectly and the new "streams" state is exactly what I was looking for.

@Zefau
Copy link
Collaborator

Zefau commented Nov 3, 2019

Thanks a lot for your donation and support!

@Zefau Zefau moved this from In test to Done in Plex ROADMAP Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request verify-fix Verify if the implemented fix has solved the issue
Projects
Plex ROADMAP
  
Done
Development

No branches or pull requests

2 participants