Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.0-rc.2 - no video playback in Android 4.1 stock browser #2277

Closed
meleyal opened this issue Jun 19, 2015 · 27 comments
Closed

5.0-rc.2 - no video playback in Android 4.1 stock browser #2277

meleyal opened this issue Jun 19, 2015 · 27 comments
Milestone

Comments

@meleyal
Copy link

meleyal commented Jun 19, 2015

Happens on Android 4.1.2 using stock browser ("Internet" app).

  1. Open test page
  2. Click play button

Expected: Video starts playing
Actual: No video playback / black screen
Test case: http://jsbin.com/halokodoxo/1/edit?output

screenshot_2015-06-19-10-45-14

Maybe related: #2044, #1986, #975

@moay
Copy link

moay commented Aug 20, 2015

Confirm. Also happens in rc58, but not only in stock browser - for me it's also chrome on android. The video will just not load, the poster image stays there.

@moay
Copy link

moay commented Aug 20, 2015

I checked the logs I get on chrome, here is what I get:

VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) The media could not be loaded, either because the server or network failed or because the format is not supported. MediaError {code: 4, message: "The media could not be loaded, either because the …rk failed or because the format is not supported."}_logType 

@ log.js:79116.log.error 
@ log.js:31error 
@ player.js:2026handleTechError 
@ player.js:1019ret 
@ fn.js:35ret     
@ fn.js:35112.data.dispatcher 
@ events.js:72

Media is there and being served correctly. Same server serves videos to chrome on android with VJS v4.

Works on desktop browsers and iOS devices with v5.

@heff
Copy link
Member

heff commented Aug 20, 2015

@forbesjo have you done any testing on Android with 5.0 yet?

@heff heff added this to the v5.0.0 milestone Aug 20, 2015
@moay
Copy link

moay commented Aug 20, 2015

This test was done on VJS 5. :-) Was just saying, that the displayed error cannot be true because the media and the network both are the same for a working setup with VJS4. Sorry, I hope it's easier to understand now?

@gkatsev
Copy link
Member

gkatsev commented Aug 20, 2015

What device is it? Samsung?
What I could imagine is that you'd need to include the es5-shim for it to work but don't have specific proof.

@forbesjo
Copy link
Contributor

I can confirm that the issue still appears with the latest rc using 4.1.2 stock browsers on a Samsung phone. 5.0 Android looks ok.

The player does not work when I add the IE8 script

@moay
Copy link

moay commented Aug 20, 2015

Yes, its a Samsung. But its running Android 5.0 (Cyanogenmod) and Chrome.

@moay
Copy link

moay commented Aug 20, 2015

es5-shim doesn't change anything. ;-)

@gkatsev
Copy link
Member

gkatsev commented Aug 20, 2015

Seeing this in logcat:

I/chromium(14190): [INFO:CONSOLE(10422)] "Uncaught TypeError: videojs is not a function", source: http://10.1.12.72:8080/build/temp/video.js (10422)

@gkatsev
Copy link
Member

gkatsev commented Aug 20, 2015

Actually, never mind.
I can get it to work, but you basically need to press play several times.

@gkatsev
Copy link
Member

gkatsev commented Aug 20, 2015

Ugh, it's really hard to debug on this device. It doesn't want to log anything that is viewable in logcat.

@moay
Copy link

moay commented Aug 21, 2015

When I was testing, I used chrome and USB debugging, which actually worked quite well for the log. But I didn't get the error you got, so videojs seems to be initializing correctly. Just doesn't want to play the file... It doesn't matter if I use an mp4 or a webm file, also the number of players I run doesn't change anything.

@gkatsev
Copy link
Member

gkatsev commented Aug 21, 2015

Yeah, ignore that error. It isn't relevant. Actually, yeah, I totally forgot to see whether I can inspect using the remote debugging since it's a chromium-based native browser.
Have you tried pressing the play button multiple times? That's how I've gotten it to play on my device. :P

@moay
Copy link

moay commented Aug 21, 2015

Yes, I tried. When I hit the big play button, it disappears and the controls appear. So I can click on pause - play - pause - play - and so on. That doesn't change anything. If I try to hit the timeline to play the video at some point, the current playback time switches to -1:0-1 and thats it.

@gkatsev
Copy link
Member

gkatsev commented Aug 21, 2015

Looks like if you put in about:debug into the url bar, you get a little debug menu in Settings which enable you to show the console on the device itself. And I thought I might have to resort to alert debugging.

@gkatsev
Copy link
Member

gkatsev commented Aug 21, 2015

Looks like on this device, the thing to grep for is Console. On all other devices previously, I grepped for CONSOLE and it worked. Though, I think it didn't output anything until I did the about:debug thing.

@gkatsev
Copy link
Member

gkatsev commented Aug 21, 2015

I have a tentative fix for it locally.

@moay
Copy link

moay commented Aug 21, 2015

@gkatsev Can I test it?

@gkatsev
Copy link
Member

gkatsev commented Aug 21, 2015

I'll have a PR open/updated soon.

@gkatsev
Copy link
Member

gkatsev commented Aug 21, 2015

@moay #2499 should hopefully fix the issue. At least, if you set nativeControslForTouch option to true.

@gkatsev
Copy link
Member

gkatsev commented Aug 21, 2015

Adding that option by default for "native android browsers".

@moay
Copy link

moay commented Aug 21, 2015

I'll test it with the next rc release. ;-)

@moay
Copy link

moay commented Aug 22, 2015

Okay, tested this. Still did not work - so I removed the password protection of the directory in which the video lays and voilà, it works. So it seems, that was the error I made. (The video file was protected with a basic http authentication)

Now, there are two new "bugs" since I updated from rc59 to rc60.

  • The controls won't appear on my phone using chrome android, so I can't control the playback at all.
  • I can't pause the video in chrome on my mac by clicking somewhere on the screen any more. This used to work with rc59. Can only pause using the pause button with rc60.

I reverted to rc59 for testing and playback on chrome mobile works when the password protection is removed. Sorry for the confusion, didn't expect this to be a problem!

EDIT: Get it, I didn't set nativeControslForTouch to true - but this should not affect the issue in chrome, or am I wrong?

@moay
Copy link

moay commented Aug 24, 2015

Sorry guys, my macbook seems to have some glitches... I'm at work now, and the described errors don't appear any more. Even on mobile, chrome now plays the video and gives me the controls. It's still a bit buggy, but that is probably caused by my phone.

I still have one strange behaviour with webm files, but thats not confirmed (maybe the file) and it's not related to this issue. Will open an issue for this, if needed.

EDIT: Sorry to say so, but it happens again. I will just open a proper issue for this, because it doesn't have to do with mobile anymore...

@gkatsev
Copy link
Member

gkatsev commented Aug 24, 2015

@moay so, are you seeing this issue anymore or can this be closed?

@moay
Copy link

moay commented Aug 25, 2015

@gkatsev I can't see the error that was initially described in this issue any more, thats correct. Opened issue #2504 for the error that started to appear when this issue was fixed.

So for me, this one is closed. ;-)

@gkatsev
Copy link
Member

gkatsev commented Aug 25, 2015

OK. I'll close this issue but if it's still occurring for people, we can always reopen.

@gkatsev gkatsev closed this as completed Aug 25, 2015
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants