Open adetheprince opened 8 years ago
No body knows yet?
Ok! I noticed there are permissions needed to get video streams working , but many says to include such codes to the Manifest.XML . I am using phongap build online tools not cli/ cvardova, so where can I add the required permissions on my config.xml and how? My config is the default that can be found on here (Github).
I have seen so many issues with this , but all answers failed in my case. I am looking for how can I allow all permissions to my config xml like other app builders do. Can someone help me please?
hi @adetheprince can you try this in your config.xml and build again
<gap:plugin name="cordova-plugin-whitelist" source="npm" version="1.2.0" />
<allow-navigation href="*" />
if not work you said your video or pics resource is from 192.168.1.100:3000 it is just "simulation" when you build your app to android and ios android and ios will never know what is 192.168.1.100:3000 (because for now it become the real environment) your resouce should become => http://a.b.c/your_media_resource/your_file.XXX
Hi there Many thanks for your quick reply , I have tested and added that but still no any video playing and I still have the Icon showing on the top left corner. FYI about localhost , my app was tested using PhoneGap-win32-ia32 Desktop that will test it through localhost thats the default phonegap desktop IP eg MyIP:3000 but none of my html codes include any localhost links eg 192.168.1.* . All videos are on cdn , server, mp4 /m3u8 links. example Bigbunny.mp4 that can be found here. http://www.w3schools.com/html/mov_bbb.mp4
Funny i have made a simple html video that have that link but using app builder and it worked when i allowed all permissions. Looking at their xml and phonegap xml is totally different , so I am very confused about this permissions and the phopnegap desktop that dont give you Manifest.xml to add more permissions so I can tell the reason. I really thank you for your help but I am sure this is must be PERMISSIONS problem. I even compare both apps on the installation wizard and I saw the phonegap ask
Full network access View network connections
while app builder ask more than that.
Full network access receive data from internet View network connections View Wi-Fi connections
I hope I could send you my config.xml but its a simple default phoneGap added your code. Please help me guys to by pass all permissions for testing purpose.
hi @adetheprince so you use phonegap or cordova or phonegap build (build.phonegap.com) which one ?
phonegap build
The other app builder program is http://www.telerik.com/platform/appbuilder This worked for me but I cannot use my html codes and they only allow using their script.
did you know some debug tool ? GapDebug is a good choice https://www.genuitec.com/products/gapdebug/ I use it for a long time period (PGB is work perfect)
Ok thanks for your reply again . I will try that and see how it goes.
Hi there I managed to get it working but not with PhoneGap as I wanted, I have tried to use the AppBuilder (Telerik) and after making all permissions ON it worked like a charm, I am sure it should work with PhoneGap Desktop if we had Manifest.XML and we could change some of the permissions. Now I guess the only way to do this is to use PhonerGap CLI.
Hello there and everyone.
First let me say I am a total noob making apps so easy on me please. I managed to build the apk file from a html simple pages that have index/js /css . The site have video tag links mp4 , this worked fine with PhoneGap tool and tested on my browser ( android, PC, Appl. ) using 192.168.1.100:3000 all videos worked fine but after converting this to apk no video is playing and I have an icon on the left top corner like image error.
Herer is what i tried but to no avail.
xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="info.satdoc.dyndns.satIPTV" version="1.0.0"> name Dociptv description>Hello World sample application that responds to the deviceready event.
preference name="AllowInlineMediaPlayback" value="true"