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

JW player on mobile devices


Hi,

I'm playing an FLV on Android browser (WebView) using the JW player.

There are several characteristics that are different than desktop browsers:
- Control bar need to be much bigger.
- Controlling volume is done by the phones hard buttons
- Player plays in full screen (Usually)

I'd like to configure JW player to be more Mobile "friendly":
1. Make the bar bigger
2. Drop the volume button
3. Start the player in maximum volume
4. Drop the maximize button
5. Start the player maximized
6. Prevent unmaximize ("allowfullscreen: false" doesn't work)

How can I do this? (Are there things I can't do?)

Thanks,
Alik.

9 Community Answers

JW Player

User  
0 rated :

Figured out 2 and 4 - Using skins.
I changed the skin of the controlbar component by removing the buttons and left with:
<layout>
<group position="left">
<text name="elapsed" />
</group>
<group position="center">
<slider name="time" />
</group>
<group position="right">
<text name="duration" />
</group>
</layout>

I used the Modieus Skin.

JW Player

User  
0 rated :

Figured 1 (Using skins as well)
Just change/add the following settings:

<setting name="margin" value="15" />
<setting name="fontsize" value="30" />

Margin to raise the control bar up a bit.
Fontsize to make the bar bigger.

JW Player

User  
0 rated :

Figured out point 3. Add the parameter
volume: 100 (Thanks to the JW guide)

Still to figure out:
5. Start the player maximized
6. Prevent unmaximize ("allowfullscreen: false" doesn't work)

Regarding 5, I managed to show the whole screen using height: "100%",width: "100%" - but it's not the real maximize functionality.

I'm quite lost. Anyone?

Pablo

JW Player Support Agent  
0 rated :

@Alik -

Flash doesn’t allow a switch to (true) fullscreen mode automatically. In fact, a switch to fullscreen mode must be triggered by a mouse click. Conversely, once in fullscreen mode, there’s no way to programmatically prevent the user from exiting fullscreen mode.

Your best bet is to use 100% width and height to fake fullscreen mode.

JW Player

User  
0 rated :

Thanks.

What bout 'allowfullscreen: false' not working?
Have you seen this?

Pablo

JW Player Support Agent  
0 rated :

@Alik -

I haven’t seen that, no, but keep in mind, “allowfullscreen” is a Flash parameter, not a JW Player configuration option. When switching to fullscreen, the JW Player simply attempts to make the switch. If fullscreen is disabled on a platform, the fullscreen switch simply won’t work, but the player itself doesn’t attempt to enforce this parameter.

JW Player

User  
0 rated :

What code are you using to load the file into the Webview?

I'm using this:

bc.. webview = (WebView) findViewById(R.id.videoview);
webview.getSettings().setPluginsEnabled(true);
webview.loadUrl("http://" + domain + "/jwplayer/player.swf?file=test.mp4");


Anybody know why this isn't working?

JW Player

User  
0 rated :

Hi ,I try to embed jwplayer in webview on android, but only see loading the player... .But on Android Browser or Dolphin Browser it working

Pablo

JW Player Support Agent  
0 rated :

@Zeroroc -

The JW Player doesn’t support WebView directly; it may work (or not) but we don’t do any Android testing other than the native Android browser.

This question has received the maximum number of answers.