html5 video stopped working

  • 21
  • Problem
  • Updated 7 years ago
  • Solved
Last week my application stopped showing video ( playing hls streams and mp4 files via html5 video tag ) on android, only sound is heard without picture. After i switching into fullscreen mode ( android native player ) all working fine.
App # - 320021
Can anybody knows what happening?
Photo of Roman Azarov

Roman Azarov

  • 12 Posts
  • 0 Reply Likes

Posted 7 years ago

  • 21
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
I have this issue too.. i rebuild my app in the previous version, and found this issue too.

Perhaps is there a trick with config.xml or InAppBrowser plugin
Photo of Hyginus Ugwumba

Hyginus Ugwumba

  • 1206 Posts
  • 42 Reply Likes
Hi Roman

I have tested this on nexus 7 running android 4.2.2, seems to be fine with videos , though i don't know the exact video that breaks, I got to few youtube links that works. more details from your end will be appreciated.

Thanks
Hyginus 
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
My app builded 4days ago was working.
I rebuild the exact same app, and video mp4 is not working (I have only the sound)
Did you change any thing on PhoneGap Build since 4 days ?
Photo of Taras Taranenko

Taras Taranenko

  • 5 Posts
  • 1 Reply Like
same here, our unchanged app built several days ago and working now does not work, no video, no even video placeholder with poster enabled, just sound. Problem persist on live hls streams and static VOD content.
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
Hi Hyginus, please see the last post at bottom of this topic.
You will found an apk to test this issue.
Thanks a lot for your validation (or not)
Photo of Roman Azarov

Roman Azarov

  • 12 Posts
  • 0 Reply Likes
Hi, Hyginus.

We have tested on tablet with android 4.1.1 and got this problem.

Regards, Roman.
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
For your information, my problem is on InAppBrowser.
I didnt test on webview.

And you ?
Photo of Roman Azarov

Roman Azarov

  • 12 Posts
  • 0 Reply Likes
my application is not using InAppBrowser
Photo of Bohdan

Bohdan

  • 5 Posts
  • 0 Reply Likes
Hi. I am also getting this problem with an mp4 file on android, only sound, no picture. Video however plays in fullscreen.

I tested an app that I built on August 7. On my Nexus 7, the mp4 videos in the app run properly. I also did a build for this app on August 12, For this build, running Android 4.3, all the mp4 videos in the app will not display video, only sound plays. Video is alright in full screen. I have this problem whether the video is on YouTube or locally
Photo of Kārlis Jakadels

Kārlis Jakadels

  • 3 Posts
  • 0 Reply Likes
I got video working in debug mode, but after signing with keystore video not showing anymore in release mode... only sound is playing.. but no picture on windowed or fullscreen mode.. looking for solution 2 nights already..
thanks
Photo of Taras Taranenko

Taras Taranenko

  • 5 Posts
  • 1 Reply Like
Guys, anything on this?
Photo of Sean O'Gorman

Sean O'Gorman

  • 33 Posts
  • 0 Reply Likes
I am experiencing some of the same problems
Photo of Kārlis Jakadels

Kārlis Jakadels

  • 3 Posts
  • 0 Reply Likes
interesting...
same release build, on samsung note and sony xperia videos are not showing, BUT on 50$ Prestigio 7" tablet they are showing and everything is working..
AND same code works OK on all devices if run from webserver.
So i think problem is somewhere in release build or keystore files.
Photo of Taras Taranenko

Taras Taranenko

  • 5 Posts
  • 1 Reply Like
do you tablet running on 4.1.1 ?
it does looks like problem affecting just some Android versions when video remains fine on others
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
still no solution ? :(
Photo of Hyginus Ugwumba

Hyginus Ugwumba

  • 1206 Posts
  • 42 Reply Likes
Hi Yann,

Is the Internet permission included in config.xml
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
Of course, look my app :you can listen the sound of the video.
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
OK, to prouve this issue is real, I created a specific apk to test it.

http://m.comptoir-info.com/app/beta/b...

Tested on :
Galaxy S4 (4.2.2) : failed
Galaxy Note 2 (4.1.2) : failed
Nexus 7 (4.3) : failed

So, please test my app on other device to help us.
By clicking "webview" button, the app should be play this video : http://m.comptoir-info.com/app/beta/s...
but you will only listen the sound... the video is only black :(

The code is very simple :


<body bgcolor=#000></body>
<script>
function test1(){document.getElementById('player1').play()}
function test2(){window.open('empty.html','_blank','location=no')}
</script>
<input type=button value="WebView" onclick=test1()>
<br><input type=button value="InAppBrowser" onclick=test2()>
<br><div style="border:1px solid red"><video width=100% id=player1><source src="http://m.comptoir-info.com/app/beta/sample.mp4" type="video/mp4"></video></div>
Photo of Bohdan

Bohdan

  • 5 Posts
  • 0 Reply Likes
The picture did not display, only sound, on my Nexus 7 (android 4.3) for WebView
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
Ok then you have the same issue.
10 days ago, this app was working with phonegap build
Somthing happens....
Photo of Nick Arellano

Nick Arellano

  • 13 Posts
  • 0 Reply Likes
Hi: I was going to post my own issue but wanted to make sure I read related posts here before doing that. Then I found this. My issue might be similar. I have a client side database for my app HTML 5 CSS Javascript. It works very well in Chrome but when I use phone gap the submit button clicks but nothing happens. This problem just started a couple days ago. I thought is was my fault so I reversed the steps to find the problem trigger but the problem remains. So could this be a phonegap issue? Be kind I am a noob here.
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
Please click on +1 button on the top of this topic, to boost this issue to dev team ;)
Photo of Nick Arellano

Nick Arellano

  • 13 Posts
  • 0 Reply Likes
+1 done. Thx for telling me about this.
Photo of Hyginus Ugwumba

Hyginus Ugwumba

  • 1206 Posts
  • 42 Reply Likes
Hey guys

Try the code on this repo below, the html5 video works fine on nexus7, android 4.3.

https://github.com/amirudin/pgb-video

Let me know how it goes.

Thanks
Hyginus
Photo of Roman Azarov

Roman Azarov

  • 12 Posts
  • 0 Reply Likes
looks like project for phonegap, not for build
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
impossible to build this app with this Phonegap Build
Photo of Az Azov

Az Azov

  • 3 Posts
  • 2 Reply Likes
The problem is only with signed Android apps. Video plays fine on app-debug.apk.
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
Nice Az Azov, I confirm the issue is only for signed Android apps.

Phonegap Devteam, can you investigate about this ? Is it a licencing issue ?

I rebuild my example app to test it. Please test the exact same app into 2 versions :
signed : http://m.comptoir-info.com/app/beta/b...
debug : http://m.comptoir-info.com/app/beta/b...

Video are not working in signed app
but working on debug app.
Photo of Taras Taranenko

Taras Taranenko

  • 5 Posts
  • 1 Reply Like
confirmed, it does work on *-debug.apk !
Guys, please fix this build issue ASAP, we can't push our APP to market because of it!
Thank you
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
+1 ;)
:( confirmed... just on debug mode.
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Hello Everyone

We are working with the framework support team to identify the root cause. We'll update this thread shortly.

Thank you for your patient
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Hello all,

Bug report has been created. Kindly bookmark / watch for latest status update. Your comments / votes are very much welcome.

https://github.com/phonegap/build/iss...

Thank you and sorry for all the troubles.
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
Thanks ;) I just added the main information : this issue is only with signed apps, not for *-debug.apk
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
One week later.. our apps are still pending ;(
we cannot deploy them into google play store

please help :)

Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
Hi Amir,

Sorry about that, but we are stucked by this issue...
What can we do to increase the resolution ?

Thanks a lot by advance !!
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
Hi,

You use html5 videos with PhoneGap Build.
Is Fullscreen mode working for you with InAppBrowser ?
Photo of Nick Arellano

Nick Arellano

  • 13 Posts
  • 0 Reply Likes
Ok so what about the submit button not working, or database not being created? Are you guys looking into that. It works using Chrome so it should work on phonegap?
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
Hi Guyz,

Please boost PBuild Team to add the missing attribute !
Go and feedback on https://github.com/phonegap/build/iss...
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Hi Yann

Noted. I'll bring this up to the board meeting this week. Anyway, I believe our engineering team are still busy with 3.0 support as their top-most priority. I'll check that out and will keep everyone posted.

Thanks.
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
We understand, but... they are only 34 chars to fix this issue :
android:hardwareAccelerated="true"
Photo of Yann S

Yann S

  • 214 Posts
  • 7 Reply Likes
By the way, PhoneGap Build 3.0.0 is an amazing news ;)
Photo of Sean O'Gorman

Sean O'Gorman

  • 33 Posts
  • 0 Reply Likes
Agreed, this should be addressed as soon as possible.

This conversation is no longer open for comments or replies.