#1 2017-02-13 09:54:48

eduardoalfaro
Member
Registered: 2016-06-08
Posts: 37

MediaPlayer and some issues on iOS

Hello,

During a couple of months, I have tried AppBuilder on Android, and it is working sooooo good!!! ;-D
Right know, I am trying to do the same on iOS platform, I would like to develop Apps with AppBuilder for both platforms.

I am having issues with MediaPlayer control, and the XCode console reports some errors when I try to build the App for testing on virtual device.

MediaPlayer "controls" are always visible, does not matter if you set "controls" to false or true, always are visible. I have used this control sometime to playback an intro video, presentation, advertisement... I need to hide the "controls" to avoid fast-forward, so the user MUST see the whole video to continue.

I really do not try the APP built on a real device, I have tried always on virtual device. Please, see the attached picture. The MediaPlayer control have by default the "controls" as false, so the "controls" should not appear, like they do.

Attached 1: iphone_app_1.png

The other thing, is XCode console errors, I have attached two pictures about this... I have tried some basic examples, and all of them reports more or less the same errors.

Attached 2: iphone_app_2.png
Attached 3: iphone_app_3.jpg

Is there any way to solve those issues??? Maybe there are minor errors and there do not produce any issues on the App built. Any idea about how to solve the MediaPlayer control issue?

I will deeply test on iOs from now, so I will inform you about issues.

Thank you so much!!!
Eduardo

Offline

#2 2017-02-13 13:54:08

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,660
Website

Re: MediaPlayer and some issues on iOS

Hello Eduardo,

If you can try (at least one time) with a real device, please, do it. In order to try to solve the player issue, please, try to place the below line in the app's Options -> Cordova -> Configuration.

<preference name="AllowInlineMediaPlayback" value="true"/>

About the "errors", they appear only "warnings" but anyway I can't read it very well. You can try to build the application instead of just debug/compile it, then they do not include any debug information, and probably mitigates some of the refered "warnings".

To build the application use the Meu -> Run -> Build.

Please, try with the above and tell me what happend!

Offline

#3 2017-02-13 16:19:00

eduardoalfaro
Member
Registered: 2016-06-08
Posts: 37

Re: MediaPlayer and some issues on iOS

Hello David,

As usually, thank you for your great support!!!
It is working so good!!! ;-D Now, the MediaPlayer hides all the "controls".
I will try in a real device very soon, I will tell you!

Thank you so much again.

Eduardo.

Offline

#4 2017-02-13 16:21:02

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,660
Website

Re: MediaPlayer and some issues on iOS

Hello Eduardo,

eduardoalfaro wrote:

Hello David,

As usually, thank you for your great support!!!
It is working so good!!! ;-D Now, the MediaPlayer hides all the "controls".
I will try in a real device very soon, I will tell you!

Thank you so much again.

Eduardo.

Glad to know you got it! Maybe I can add the "AllowInlineMediaPlayback" (as well others...) into the app's Options -> Cordova -> iOS tab. But for now certainly we can use the app's Options -> Cordova -> Configuration to add this kind of stuff.

Please, let me know if you have any other questions!

Offline

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.