Facebook Instant Games - Can I use the camera in my instant game - facebook

Is it possible to get access to the camera in the Instant Game?
I tried navigator.mediaDevices.getUserMedia, but got an NotAllowedError, permission denied.
Am I doing something wrong?
If not, are there plans from Facebook to allow access to the camera?

It is not possible to use the camera (via getUserMedia or related APIs) in Instant Games. This is not a limitation that we (Facebook) apply to Instant Games but a limitation of the system web views on Android and iOS that limit this functionality.
There are no immediate plans to incorporate the camera into Instant Games, however there is opportunity with camera games and we do support simple game development in AR Studio, such as the Candy Crush effect that was released last year.

Related

Can I make AR work with Google Cardboard and ARCore/ARKit?

My goal is to have my image-tracking AR app useable with a headset. My friends and I play a game on our game nights that could really be advanced with AR - problem is, our hands need to be free, so using AR with a headset (something affordable for us all - like Google Cardboard) is needed.
I've looked around and found older videos covering Vuforia, but I've seen in this post that support was deprecated: https://developer.vuforia.com/forum/unity/vuforia-google-cardboard
Vuforia is very expensive for just simple game-night fun... so I'd rather use ARCore and ARKit, if possible.
Is implementation for this even possible today with Unity + Cardboard + ARCore? (If I need to cut a hole in the cardboard for my camera, that's no problem)

Is there any way we could add video filters in flutter?

Can we create a video streaming app in flutter.I am trying to make a video streaming app but can find filters in flutter.
As far as I know, there is what we call Deep AR that could provide filter for your video just like in Snapchat:
DeepAR is a web platform that provides an SDK for Snapchat kind of 3D
face filters, face lenses, and effects for any iOS, Android, Unity, or
HTML5 app. The platform makes use of a technology called Augmented
Reality (AR).
So you need to setup an account here. For a more detailed process on adding filter in your video, you can visit this blog.
For creating livestream alone, check this out: Live Streaming With Mux, Stream, and Flutter

Register Camera Device like Snap Camera in MacOS

If you have ever used Snap Camera or ManyCam, these are apps get installed in Desktop environments, and register some sort of extra camera device to the system. Allowing apps like Skype, Google Hangouts, or pretty much any other video call app to recognize it.
I wonder how to do that?
How can I make a MacOS app, that registers a device camera across the system, so that I can feed video frames to it, and be fetched by any other third party app.
Does apple provides some sort of API or SDK for this ? AVFoundation or something ?

how to use google play service in Unity 3D?

I'm working at my new mobile game. The work is going well but when I tried to use google play services at the game, it didn't work by several reasons that I couldn't understand.
There are many guides about using google play service, but still they are all scattered. So I can't totally understand about this.
Could you help me to how to use google play service step by step?
Or link that can solve my problem.
You may check this link for Google Play Games plugin for Unity. This plugin allows you to access the Google Play Games API through Unity's social interface. The plugin provides support for the following features of the Google Play Games API:
sign in
unlock/reveal/increment achievement
post score to leaderboard
cloud save read/write
show built-in achievement/leaderboards UI
events
video recording of gameplay
nearby connections
turn-based multiplayer
real-time multiplayer
To use the plugin, you must first configure your game in the Google Play Developer Console. Follow the instructions on creating a client ID. Be particularly careful when entering your package name and your certificate fingerprints, since mistakes on those screens can be difficult to recover from.
check it
play-unity-plugins
-play billing
-play instant
-play assets delivery
-anfd so on

Turn based multiplayer game with Game center

I would like to know if game center supports online turn based multiplayer game through 3G network or different wifi access. From what I have been reading so far, game center supports bluetooth and local wifi.
In addition, since I would like to implement a turn based multiplayer game, does game center support active running games such that I can play the same game with several friends at the same time like how the app Words with Friends does.
Thank you for your assistance.
If you can wait for iOS 5, it looks like Apple will be adding this feature to Game Center!
You would need a server to play games like words with friends..
And you can only do a one-time connection per game.. Up to 4 players each time, unless you have a server then up to 16 players..
online turn based games is possible but not games like words with friends..