Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

JWPlayer 7.2.2 Android pause


Hi
I'm testing the movie from page:
http://support.jwplayer.com/customer/en/portal/articles/1480872-example-loading-videos-through-the-api

on first click movie start play perfectly, but when I click second time to pause the movie, nothing happens.

The same issue happens with my application, after some debugging I see than "on('pause',..)" doesn't call, and if I'm trying to catch in " .on('displayClick',…)", it's automatically call to " on('play',..)" after "on('pause',..)" trigger.

I need to be able play and pause from the middle button only.(My skin doesn't support navigation buttons)

Thank you for your help
I'm using Galaxy note 3 4.4.2 for tests

5 Community Answers

George

JW Player Support Agent  
0 rated :

Hi, this seems to be the default behavior. The browser handles the touch events. What exactly are you building? In which environment? You may want to use the Android SDK if you are building an Android application.

Ler_Sam

User  
0 rated :

Hi George
I'm building landing page with bootstrap and JavaScript platform.
I have the same solution in 6, working perfect.

George

JW Player Support Agent  
0 rated :

So basically you want a chromeless player (no controlbar) and it will play or pause when you tap on it?

Ler_Sam

User  
0 rated :

Yep, it's correct.

George

JW Player Support Agent  
0 rated :

This works, but there is a delay due to the android touch events and you can’t really see any buffering state.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<script src="http://content.jwplatform.com/libraries/OEp1hUBd.js"></script>

</head> <body> <div id="container">Loading Video…</div> <script> var playerone = jwplayer("container"); playerone.setup({ file:"whiskey.mp4", width:"80%", aspectratio:"16:9", controls:false, events: { onDisplayClick: function () { playerone.play(); } } }); </script></body> </html>

This question has received the maximum number of answers.