I cannot get nativeVideoControls to work properly

530 views
Skip to first unread message

Greg

unread,
Nov 9, 2012, 5:42:11 PM11/9/12
to jpl...@googlegroups.com
I'm trying to allow for a condition in which the user may want to use native controls.  I tried implementing the nativeVideoControls variable:

nativeVideoControls: {
                    all: /./
                }

but when I run my jPlayer, my custom controls still show up in the video, on top of the native controls.  If I have autohide turned on, the custom controls do not appear until I try to play the video again.  Also in this state, play and volume scrubbing does not work unless I enter fullscreen mode.

Could there be something I'm missing in my controls html to hide these?  (everything disappears properly in autohide.  If there were something missing in my html, I would think that the control over visibility would be the same) I don't have a working example of this feature online to use as a guide.

Mark Panaghiston

unread,
Nov 12, 2012, 7:01:16 AM11/12/12
to jpl...@googlegroups.com
It is possible that it has stopped working... I am not sure how many people actually use the native video controls mode... So I checked myself.

I made a copy of http://jplayer.org/latest/demo-01-video/
And added in the native controls option.
        nativeVideoControls: {
            all: /./
        }

Tested in Firefox 16 and it worked as expected. Chrome also worked as expected.

The option works by hiding the jp-gui class in the HTML. The auto-hide also uses this element to show and hide the controls. The native controls are part of the browser.

Are you changing this option after instancing?

Greg

unread,
Nov 12, 2012, 11:16:17 AM11/12/12
to jpl...@googlegroups.com


This error is totally of my doing.  I have play and ended conditions in my jPlayer block that were making the gui visible.  I've corrected for this.  I've also noticed (realized) that if you have native controls and your browser defaults to the flash player, you will have no controls available.

Greg

unread,
Nov 12, 2012, 1:10:19 PM11/12/12
to jpl...@googlegroups.com
Important question: are the problems with native controls disappearing on the phone and tablet browsers something that just happens with jPlayer or something that happens on these devices in general?  I need to know if I am better off developing my own custom player for these devices when native controls are required or if I would just be wasting my time and duplicating my effort.


Mark Panaghiston

unread,
Nov 12, 2012, 4:43:52 PM11/12/12
to jpl...@googlegroups.com
I have not tested that in some time. I did that investigation over a year ago now and we bug reported the issue to Apple.

The problem at the time was related to the .load() command being used for the legacy html5 support.

I will try and take a look tomorrow if I get time and at your Flash solution hides the gui issue... I had thought it would show the gui when the Flash solution was used as it has no "native" gui built into the flash.

So in other wirds, iOS may now work fine with the native controls. If you can see them on your iPhone/iPad then it has been fixed ;)

Greg

unread,
Nov 13, 2012, 11:59:12 AM11/13/12
to jpl...@googlegroups.com
From the testing that I have done so far, the only issue I am experiencing relative to native controls on touch devices is that on an Android tablet (Asus Transformer) when using Chrome, the native controls do not appear until after the video finishes playing.  When they appear, I cannot access them (touching them does nothing).  For my video, when I am on a phone, I automatically send the video to fullscreen (iPhone does this anyway).  In Chrome, everything looks good on Android phone.  In the native browser, I cannot get the video to autostart, but I believe this is related to this: 

It seems like Android lets me do fullscreen or play, but not both.  I believe this is an Android browser issue.  Other than these, everything else looks good so far.

Mark Panaghiston

unread,
May 16, 2013, 3:36:57 PM5/16/13
to jpl...@googlegroups.com
I'd need to look into this. Apparently last time I never got round to it. I was just playing with the dev tester and it appears to not work at all any more. On Firefox at any rate... I'd need to investigate before I comment further... As it might only be the option changing system that does not work, or the fullScreen code might have broken something.


On Thursday, 16 May 2013 15:06:56 UTC+1, Alec Grossman wrote:
Is there a solution to native controls causing the flash player not to have controls?  Do I need to create custom controls for flash?
Reply all
Reply to author
Forward
0 new messages