Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1] 2 3   Go Down

Author Topic: Media player for mobile devices  (Read 34545 times)

0 Members and 1 Guest are viewing this topic.

GrimmReaperNL

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Media player for mobile devices
« on: January 22, 2013, 10:24:36 pm »

Not really asking for anybody to fix something, just honestly looking for some help.

I'm currently using this player plug-in to display video's (flv) in my gallery.
Works prefectly fine on windows, but it gets weird (basicly because of my not-understanding) on android.
On my phone (only device i have to test mobile platform) i have flash and air installed (don't know if that helps or worsens my case).

Using the default android browser, it shows the player and plays the file, but stutters immensly.
Using chrome, it shows a thumbnail with a playbutton. clicking this opens a link in the default browser which then polls me to use a video player (currently have MX player (which plays the file just fine) and the default (which doesn't play the file)).
It doesn't seem to matter if i turn 'request desktop version' on or off.

Who can help me get a smooth picture on mobile devices?

Here's a link to a video in said gallery, in case you need one for testing or whatever.
http://www.avantcourir.nl/cpg/displayimage.php?album=157&pid=15117
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Media player for mobile devices
« Reply #1 on: January 23, 2013, 12:02:21 am »

All coppermine does here is act as a repositry for your files. Sadly, flash has all sorts of problems especially on mobile devices. To get it to work on mobile at a decent speed all depends on the quality that you encoded your video at in the first place. If you encoded it at a high bit rate then it will always have trouble streaming.

Maybe this link will help - http://www.tested.com/tech/android/1966-how-to-properly-encode-video-for-android-devices/

Personally I would encode them in one of the HTML5 compatible formats though I have not tested this with CPG yet. Maybe Andre has some ideas on that.
« Last Edit: January 23, 2013, 12:08:32 am by Phill Luckhurst »
Logged
It is a mistake to think you can solve any major problems just with potatoes.

GrimmReaperNL

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: Re: Media player for mobile devices
« Reply #2 on: January 23, 2013, 03:11:06 am »

All coppermine does here is act as a repositry for your files. Sadly, flash has all sorts of problems especially on mobile devices. To get it to work on mobile at a decent speed all depends on the quality that you encoded your video at in the first place. If you encoded it at a high bit rate then it will always have trouble streaming.
That makes sense

Maybe this link will help - http://www.tested.com/tech/android/1966-how-to-properly-encode-video-for-android-devices/
I'll have a stab at their general suggestion. Encode a file a couple of times differently and see what works.

Personally I would encode them in one of the HTML5 compatible formats though I have not tested this with CPG yet. Maybe Andre has some ideas on that.
HTML5 does seem to work on all platforms (with current browsers, obviously). Seeing you said you haven't tried with CPG yet. I'm guessing there's no plug-in for it yet.
I've tried using the new JW player 6 with the CPG plug-in I linked, but I'm not good at it. Got a player showing up, but it told me it couldn't find the source file.

Thanks for the quick reply Phill
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Media player for mobile devices
« Reply #3 on: January 24, 2013, 10:20:53 am »

JW Player 6 automatically selects the best playback for your viewer's device and browser, so you deliver unparalleled video experience on iPhone, iPad, Android, and the Desktop.

I'll check that in detail.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Media player for mobile devices
« Reply #4 on: January 24, 2013, 11:03:53 am »

Please try the flash media player plugin version 2.1. Here you can find the supported media formats of the player: http://www.longtailvideo.com/support/jw-player/28836/media-format-support
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Media player for mobile devices
« Reply #5 on: January 24, 2013, 11:29:37 am »

Great work Andre.

Just of note from the longtail site

Quote
Removed: Flash mode on AndroidFlash support and availability on Android is lackluster. JW6 therefore does not support Flash on Android. Please make your media compatible with HTML5 when targeting Android devices.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Media player for mobile devices
« Reply #6 on: January 24, 2013, 11:39:25 am »

To make it even more concrete, it's recommended to use the mp4 format if your video files should be played on all devices:
Quote
MP4 videos using the H.264 video codec and the AAC audio codec. MP4 is of high quality and can be played in all browsers and devices. It is today's video format of choice.

For audio files it's fine to use aac or mp3.
Logged

GrimmReaperNL

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: Media player for mobile devices
« Reply #7 on: January 24, 2013, 10:35:11 pm »

Thanks for the update André! I'll make sure to check it out and let you know.
And thanks for the pointer Phill. I'll make sure to encode to mp4.
Logged

GrimmReaperNL

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: Media player for mobile devices
« Reply #8 on: January 24, 2013, 11:07:33 pm »

So I converted a video 3 times. 1080p, 720p HBR and 720p [link]
These now work find on android. It loads the HTML5 player.

However, on windows it now tells me it can't load the video file.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Media player for mobile devices
« Reply #9 on: January 24, 2013, 11:14:35 pm »

Works almost for me with Firefox 18.0.1 on Windows 7, though it loads the whole video before it starts to play. Almost, as I just get the sound but no video. Haven't checked the video file in detail yet.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Media player for mobile devices
« Reply #10 on: January 25, 2013, 12:09:51 am »

The test videos work fine for me on both my iPad and on win7 with ie9 and on win8 with ie10.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

GrimmReaperNL

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: Re: Media player for mobile devices
« Reply #11 on: January 25, 2013, 12:59:10 am »

Works almost for me with Firefox 18.0.1 on Windows 7, though it loads the whole video before it starts to play. Almost, as I just get the sound but no video. Haven't checked the video file in detail yet.
The test videos work fine for me on both my iPad and on win7 with ie9 and on win8 with ie10.
:(

That is so weird. I've tried with:
  • ie9 - 'error loading file' on 2 different computers
  • Chrome - 'error loading file' on 2 different computers
  • Slimbrowser - 'error loading file' on 2 different computers
  • Firefox - loads full file, only gives audio.
  • Android browser - works
  • Android chrome - works
These were all with the mp4 file.

The previously uploaded videos (flv) all still play fine on windows, but not on android. Do I have to readd them to the gallery?
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Media player for mobile devices
« Reply #12 on: January 25, 2013, 01:23:51 am »

Also works for me in Chrome on Vista.
Is error loading file the only error text you see?
Maybe use the developer tools in the browser to see exactly what is trying to be loaded.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Media player for mobile devices
« Reply #13 on: January 25, 2013, 10:00:38 am »

This is what I get on Windows XP using Chrome (see attachment). Chrome is using the HTML5 player. I'm currently not able to check your encoded video file, but maybe this guide helps: http://www.longtailvideo.com/support/jw-player/28838/mp4-video-encoding
Logged

GrimmReaperNL

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: Re: Media player for mobile devices
« Reply #14 on: January 25, 2013, 04:03:39 pm »

This is what I get on Windows XP using Chrome (see attachment). Chrome is using the HTML5 player. I'm currently not able to check your encoded video file, but maybe this guide helps: http://www.longtailvideo.com/support/jw-player/28838/mp4-video-encoding
yes, i'm getting that same error.

the exact specs for the encoded videos are:
  • 1080 - 1920x1080, 7Mbit/s, AAC 320Kbit/s, 48 kHz
  • 720 HBR - 1280x720, 4Mbit/s, AAC 256 Kbit/s, 48 kHz
  • 720 - 1280x720, 2.5Mbit/s, AAC 192 Kbit/s, 48 kHz
All 3 of these work on android, but gives me that error in aformentioned browsers.
Also works for me in Chrome on Vista.
Is error loading file the only error text you see?
Maybe use the developer tools in the browser to see exactly what is trying to be loaded.
I've attached the <td> the video is in .
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Media player for mobile devices
« Reply #15 on: January 25, 2013, 04:15:12 pm »

Can you upload the original file somewhere so that I can download it and try encoding it myself.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Veronica

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: se
  • Offline Offline
  • Posts: 106
  • Coppermine 1.5.22
Re: Media player for mobile devices
« Reply #16 on: January 25, 2013, 04:20:13 pm »

Current video versions works ok for me on: Opera, Chrome, FireFox, IE8 and Safari on XP
Logged

GrimmReaperNL

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: Re: Media player for mobile devices
« Reply #17 on: January 25, 2013, 04:27:55 pm »

Can you upload the original file somewhere so that I can download it and try encoding it myself.
http://avantcourir.nl/cpg/albums/gallery/2013/Drachten1/AC_Juniorclass2013_Drachten1.mpg is my source file.

Current video versions works ok for me on: Opera, Chrome, FireFox, IE8 and Safari on XP
Thanks for trying. I've had a couple of guy I know try on their desktops and mobile devices (android and ios) too. mobile devices work, desktops it doesn't.. isn't webdev fun?! >.<
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Media player for mobile devices
« Reply #18 on: January 25, 2013, 04:32:03 pm »

I wonder why it worked for Veronica. Veronica, can you please check if the flash player or the HTML5 player has been used on each browser? Thanks!
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Media player for mobile devices
« Reply #19 on: January 25, 2013, 04:45:56 pm »

It worked for me on my work laptop yesterday but today at home it does not (fine on ios though). I am experimenting with different encoding methods as we speak. What software are you using to convert the videos?
Logged
It is a mistake to think you can solve any major problems just with potatoes.
Pages: [1] 2 3   Go Up
 

Page created in 0.029 seconds with 20 queries.