Can tvOS simulator work as an Airplay receiver? - tvos

Can tvOS simulator work as an Airplay receiver?
Just like a normal Apple TV hardware device, receiving the Airplay video and play it back on the simulator screen?

No, Apple TV Simulator can't be an Airplay receiver.
If you want to present your iPhone screen in your Macbook, you can use quickTime Player to make a screen record. And you can "airplay" iPhone screen in your MacBook.
Just like this:

Related

How to debug Webchat in iPhone Simulator

I was facing an issue on Audio not playing in voice bot in iPhone (Mic works) alone and was trying to debug the same in iPhone simulator in Mac (since I don't have access to a real device). However, in the simulator, the sample bot doesn't seem to be working. Here is the screengrab:
How am I supposed to debug this issue?
You'll need to test directly on an iPhone. Per the iPhone Simulator docs:
Hardware Differences
Though most of the functionality of devices can be simulated in Simulator, some hardware features must be tested directly on a device. The hardware features that are not simulated as of iOS 8.2 are:
Motion support (accelerometer and gyroscope) are unsupported.
Audio and video input (camera and microphone) are unsupported.

WebRTC control audio playback on android mobile device - chrome broswer

Android Chrome V(50.0.2661.89) has webRTC support. So i'm trying to set up Webrtc call between Mobile chrome browser and Desktop. All works good. But on Android mobile (Samsung S4, all event few more brands). audio output is coming on both Ear piece and External speaker. I could not control the output audio to playback only on Ear piece. Like normal mobile calls.
<audio> tag has ability to set playback device id by using this HTMLMediaElement.setSinkId(sinkId).then(function() { ... }) but in mobile chrome its not enabled.
If it try to get all media devices. it gives only 1 kind audio output as default. I know this possible in native android app, But did anyone succeed in getting this playback control on mobile browser? Please post your comments if you have any idea on this.
I've attached by mobile chrome console for reference.

Why does SimpleAudioEngine behave differently on each platform, and is there a way to configure it?

I am using SimpleAudioEngine to play sound effects on my app. It works on Windows Phone 8.1 (Universal), Android, and iOS. But I noticed the following behaviour which is not consistent:
In iOS, if I am listen to music on the Apple Music app, and then I launch my game, the music is silenced.
In Android, the music from Google Play is continued to be played even after launching my app. I can also hear the sound effects from my game.
In Windows Phone the behaviour is the same as Android.
Why is it different for iOS, and is there some way this can be configured ?
I am using cocos2d-x v3.7 (C++)
On iOS, SimpleAudioEngine uses a different codebase, and the default settings in CDAudioManager are to play effects and music (only if no other music is playing). If you edit the CDAudioManager code you can change the default settings of SimpleAudioEngine, or alternatively, just use CDAudioManager on iOS.

MediaElement and native video player shows videos in wrong orientation

I have a problem while using MediaElement to play video. The video isn't shown in correct orientation if its VideoProperties.Orientation is different from VideoOrientation.Normal (e.g. VideoOrientation.Rotate90). Those videos can be recorded by native camera app while holding the phone vertically. It's strange that Windows Phone native video player also has the same problem and is always locked in landscape mode (this doesn't happen with IOS or Android video player). My question is : Does Windows Phone native video player use the same API to play video like MediaElement? In that case, is it possible that that API will be updated to fix this problem in future Windows Phone update? I need to confirm those things to make a suitable workaround for this problem.

HTML5 video doesn't Auto-play on Android 4.4 (Nexus 5) for PhoneGap Application

My app was working with previous Android versions.But now with Android 4.4 it's not.
Understand that Android 4.4 (Nexus 5) coming with built in Chrome. I know that; Chrome on Android disabled (not allowed) Auto-play HTML5 videos.
Is there any way to play HTML5 videos automatically in Phonegap Applications? Any plugins etc?
I need to play video if user don't touch screen some time.
You might need to set setMediaPlaybackRequiresUserGesture to false just like with native apps as described here.