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

Android 4.1.x - video-js does not load mp4 #1986

Closed
endrjuskr opened this issue Mar 29, 2015 · 8 comments
Closed

Android 4.1.x - video-js does not load mp4 #1986

endrjuskr opened this issue Mar 29, 2015 · 8 comments

Comments

@endrjuskr
Copy link

I tried to open http://lv8.tv/the-salvation-official-us-release-trailer-1-2015-mads-mikkelsen-eva-green-movie-hd-12x6ony0l5cy.html?v=4.11.4 provided in #975 in WebView on Android 4.1.2 and video didn't load at all.

Here is how it looks:

error

I also tried with my own site and apply CSS fix mentioned in #975, but it didn't help.

Do you have any idea, how to solve it?

@carpasse
Copy link
Contributor

Hi @endrjuskr

Do you get any log error?
Can you please add post the html template and the js you use to add videojs to the page and to initialize it?

I am using videojs on android 4.1 and it is playing fine.

@endrjuskr
Copy link
Author

Are you opening site with vide-js in WebView ?

I didn't get any log error.

On 31 March 2015 at 11:56, Carlos notifications@github.com wrote:

Hi @endrjuskr https://github.com/endrjuskr

Do you get any log error?
Can you please add post the html template and the js you use to add
videojs to the page and to initialize it?

I am using videojs on android 4.1 and it is playing fine.


Reply to this email directly or view it on GitHub
#1986 (comment).

Pozdrawiam,
Andrzej Skrodzki

@carpasse
Copy link
Contributor

Sorry I missed the link.

I have taken a look at the video and it seems that when you are in mobile, you change the source from mp4 to m3u8 which is HLS

screen shot 2015-03-31 at 13 29 48

Are you using the HLS plugin (https://github.com/videojs/videojs-contrib-hls) to display the videos??

@endrjuskr
Copy link
Author

Here is a link, with my embedded video-js which I am trying to open.

@endrjuskr
Copy link
Author

@carpasse But, how can I open mp4 instead of HLS? From Android 4.4 WebView is using native browser and it looks fine.

@carpasse
Copy link
Contributor

@endrjuskr in this new link you serve a mp4 video source in both desktop and mobile.
You do have an error with some Android object not being defined. But that should not be the problem.

What differs is the way you initialize the player on desktop you use data-setup but on mobile not. I imagine you are initializing the player with js.

I don't think the problem is the source but how you initialize the player. On your link, the player is not being properly initialize for mobile. You can see there is no skin and that it loads the default player video controls.

I would review the the way you initialize the player on mobile (since it is obfuscated I can not see how is done). Are you passing the proper options.

Also it seems that mp4 is only partially supported on android 4.1 http://caniuse.com/#search=mp4
This may also be a problem ( although I don't think so)

Does the player gets property loaded when you load the page with android 4.1's native browser instead of loading it through a webview???

@endrjuskr
Copy link
Author

It is loaded correctly on native browser.

I will try to change video-js version to not obfuscated and let you know.

@mmcc
Copy link
Member

mmcc commented Jul 25, 2015

@endrjuskr can you confirm whether or not this can be closed?

@mmcc mmcc closed this as completed Aug 13, 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

3 participants