This is a message.

iPad plugin won"t work with playlists Created Dec 8, 2010

This thread is solved

Views: 3359     Replies: 8     Last reply Dec 22, 2011  
You must login first before you can use this feature

benny_b

Posts: 3

Registered:
Oct 31, 2010

iPad plugin won"t work with playlists

Posted: Dec 8, 2010

Trying to get the iPad player to work with a playlist. Been having a few problems with this, I set up a basic player and although the documentation says you don't need the iPad js file to invoke the plugin I kept getting the 'requires flash' error which only went away when I included the JS file (and then only when i included it in the right order)

Now when I try to use the plugin with a playlist (for a splash image) I just get a blank screen on the ipad/iphone. Anyone know why?

Heres my code:


setPlayer = function(playerId, imagePath, moviePath){
	$f(playerId, {src: 'flowplayer-3.2.5.swf', wmode: 'opaque'}, {	
		clip: {
			bufferLength: 5
		},
		plugins: {
			/*
			viral: {
				// load the viral videos plugin
				url: 'flowplayer.viralvideos-3.2.2.swf',
				email: false,
				share: {
					description: 'Video by '+dirName
				}
			},*/
		},
		playlist: [
			// this first PNG clip works as a splash image
			{
				url: imagePath, 
				scaling: true
			},
			// second clip is a video. when autoPlay is set to false the splash screen will be shown
			{
				url: moviePath, 
				autoPlay: false, 
				// video will be buffered when splash screen is visible
				autoBuffering: true 
			}
		]
	}).ipad();
};

benny_b

Posts: 3

Registered:
Oct 31, 2010

Solution found

Posted: Dec 9, 2010

Reply to: iPad plugin won"t work with playlists, from benny_b
Found the easiest solution is to just use JW Player instead.

nanoamp

Posts: 4

Registered:
Jul 10, 2009

Alternative solution

Posted: Dec 13, 2010

Reply to: Solution found, from benny_b
The cause is that the plugin replaces the flowplayer flash movie with an HTML5 video tag, which doesn't handle static images, so you get this black screen instead.

I've edited the iPad plugin to skip unsupported clip formats in playlists, so it goes straight to the video. I'm posting the edit to flowplayer devs today.

karschsp

Posts: 1

Registered:
Oct 7, 2010

» Alternative solution

Posted: Jan 3, 2011

Reply to: Alternative solution, from nanoamp
issunk, care to post your edit for thie .ipad plugin? I'm having this issue as well. Thanks.

nanoamp

Posts: 4

Registered:
Jul 10, 2009

Patches to skip non-video playlist content on iPad

Posted: Jan 4, 2011

Reply to: » Alternative solution, from karschsp
Hi,

Apparently it is going to be rolled into next plugin update by devs.

The changes to v3.2.1 are in fixclip(), replace line 198:
extendedClip.type = 'video';
with
var validVideo = /mov|m4v|mp4|avi/gi;
if (validVideo.test(extendedClip.extension))
	extendedClip.type = 'video';
else
	extendedClip.type = 'unsupported';

and in video.fp_setPlaylist(), replace lines 463-4:
for ( var i = 0; i < playlist.length; i++ )
	playlist[i] = fixClip(playlist[i]);
with:
for ( var i = playlist.length-1; i>=0 ; i-- ) {
	var fixedClip = fixClip(playlist[i]);
	if (fixedClip.type == 'video')
		// accept valid video clip
		playlist[i] = fixedClip;
	else
		// skip unsupported clip format
		playlist.splice(i,i+1); 
}

Seems to work for me. Hope it helps.

baddog

Posts: 2

Registered:
Aug 9, 2011

Changes function in new version of flowplayer.ipad-3.2.2.js

Posted: Dec 21, 2011

Reply to: Patches to skip non-video playlist content on iPad, from nanoamp
I tried these changes to flowplayer.ipad-3.2.2.js with no luck I still cannot get the splash image to work on iPad or iPhone
Example:http://www.colgate.edu

Anyone have any other suggestions?

Christian Ebert
Flowplayer support

Posts: 3024

Registered:
May 27, 2008

» Changes function in new version of flowplayer.ipad-3.2.2.js

Posted: Dec 21, 2011

Reply to: Changes function in new version of flowplayer.ipad-3.2.2.js, from baddog
The devel version of the ipad plugin can handle playlist based splash images. Grab it from here:
http://flowplayer.blacktrash.org/dev/flowplayer.ipad.js

baddog

Posts: 2

Registered:
Aug 9, 2011

» » Changes function in new version of flowplayer.ipad-3.2.2.js

Posted: Dec 22, 2011

Reply to: » Changes function in new version of flowplayer.ipad-3.2.2.js, from blacktrash
Problem solved, thank you!!!!!

Christian Ebert
Flowplayer support

Posts: 3024

Registered:
May 27, 2008

» » » Changes function in new version of flowplayer.ipad-3.2.2.js

Posted: Dec 22, 2011

Reply to: » » Changes function in new version of flowplayer.ipad-3.2.2.js, from baddog
You're welcome. Marking thread as solved.