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

Playing multiple videos simultaneously #53

Open
arianaa30 opened this issue Jun 17, 2016 · 8 comments
Open

Playing multiple videos simultaneously #53

arianaa30 opened this issue Jun 17, 2016 · 8 comments

Comments

@arianaa30
Copy link

I notice there is a double decoding in Grafika. A feature that I need is to play multiple videos simultaneously, say 4, or 6, as if we have a single player. So basically the players are glued together. Is it possible to achieve that? I mean, can we generalize it to N number of players, or it is only for 2?

fj62s

Note that in my case, each of these four videos are in fact a tile of the original video; so you see a single video if the sync is good. Can you put a sample for this scenario?

@fadden
Copy link
Contributor

fadden commented Jun 17, 2016

In theory, you can have as many as you want. In practice, you're limited by the capabilities of the device. Some devices struggle to decode more than two video streams simultaneously.

In KitKat and earlier, there may be problems with rendering to multiple TextureViews, though workarounds are possible. See https://code.google.com/p/android/issues/detail?id=178525 .

@arianaa30
Copy link
Author

Thanks for the info. I'm not concerned of the device capability right now. Based on the link, they say 16 textureviews should be fine. Can I request a sample of having say 12 sample videos simultaneously?

@fadden
Copy link
Contributor

fadden commented Jun 18, 2016

You can request, but it's up to Google to do the work.

@arianaa30
Copy link
Author

OK. So you can tag my question as feature request as you wish, or I can re-submit it under a new tag.

@fadden
Copy link
Contributor

fadden commented Jun 18, 2016

Retagged. May I assume this stackoverflow question is yours?

@arianaa30
Copy link
Author

Tnx. Yes. My group mate posted that.

@arianaa30
Copy link
Author

One question that I indeed have is what difference does grafika's double decoding makes as opposed to a baseline decoding of multiple videos. I just did some tests to play 6 videos simultaneously on a Samsung Galaxy S7, and everything was fine. How could it be different when using grafika?

@fadden
Copy link
Contributor

fadden commented Jun 21, 2016

It shouldn't matter whether you do it with or without Grafika. You'll either run out of hardware video decoders and slow down, or you won't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants