Support Forums

ATutor Feature Requests

expand the media tag and include a flash video player skin


You must be signed-in to post.

AuthorSubject
  Page: 1 | 2
vegard

Avatar for vegard
Subject: expand the media tag and include a flash video player skinQuote this post in your reply
I've been playing around with the media tag some more, which works great for inserting swf-s, except you cannot control size as it's 320 x 240 by default, which is too small for most of our swf-s, so we're back to using the embed tag.

is it much work to expand the media tag functionality so you can customize this, say with adding parameters[media]blah.swf|800|600[/media]

also, we use a lot of Flash video, as it's the video format most users always can see, and is platform independent.

could we add an open source flash player to Atutor, and make this kick in if we use [media]blah.flv[/media] ? - the size parameters (+ maybe loop / autoplay parameters) would be needed here as well.

a *very* quick search gave me this: flowplayer.org/ which is GLP3 and should be able to ship with Atutor. I guess there are several options available.

same goes for mp3 files, which we also like to play in an embedded flash player, I particulary like this one that we have used many times (also without Wordpress): www.1pixelout.net/code/audio-player-wordpress-plugin/

I guess what is needed is:

1. expand the media tag functionality to atleast include size parameters, and support for .flv
2. find an open source flv and mp3 player and ship it with Atutor
3. add the appropriate JS to templates.
4. probably add an admin feature where you could chose if mp3's should be played in a users locally installed player (typically Windows Media Player or Quicktime) or the Flash player.
Posted: 2008-04-08 06:58:48
greg

Avatar for greg
Subject: Re: expand the media tag and include a flash video player skinQuote this post in your reply
It would not take too much to add your suggestion. We should have the patch creator ready for testing in the next few days. This might be a good opportunity for you or Gorzan to create a patch to add in adjustable sizes for media, and give us some feedback on the patch creator..

As for mp3 and flv players, this maybe something for the future. We are moving into a release cycle in a couple weeks,and we still want to get course slugs together before then, so it will likely be June before we start considering more new features.
Posted: 2008-04-08 08:59:51
vegard

Avatar for vegard
Subject: Re: expand the media tag and include a flash video player skinQuote this post in your reply
thanks, do you know which file(s) that would have to be edited to add flv support through the media tag?
Posted: 2008-04-15 05:29:27
greg

Avatar for greg
Subject: Re: expand the media tag and include a flash video player skinQuote this post in your reply
The embed_media function in

/include/lib/output.inc.php
Posted: 2008-04-15 08:40:15
vegard

Avatar for vegard
Subject: Re: expand the media tag and include a flash video player skinQuote this post in your reply
thanks - that was quite easy, even for a non-coder smile

I added a new one for .flv which looks like this:

$text = preg_replace("#\[media\](.+[^\s\"]+).flv\[/media\]#i",
<div id="flowplayerholder">test</div>
<script type="text/javascript">
// <![CDATA[
new flashembed("flowplayerholder", { src: "http://OURPLAYERLOCATION/FlowPlayerLight.swf", width: 600, height: 400 }, { config: { videoFile: "\\1.flv", embedCode: "CUSTOM TEXT" } });
// ]]>
</script>',
$text);

...where videoFile: "\\1.flv" is replaced with the name of the .flv in the file manager.

this is based on the code you use in Flowplayer (www.flowplayer.org) to include videos.

two problems / issues still..

first: it doesn't work smile The player is loaded and when viewing source it looks for the right video file (demo.flv) here, but the file is not displayed.

second: when clicking the "insert" button for the flv in the file manager, it doesn't wrap it in the media tag, but creates a link to it. the link points to /get.php/demo.flv when you hover over it, although the code says A HREF=demo.flv

anyways, I'm guessing these to problems are related and that a small adjustment somewhere else is needed to recognize flv as a media file that should be wrapped in the media tag, and probably not served through get.php..? any pointers for where to look?
Posted: 2008-04-17 08:40:42
greg

Avatar for greg
Subject: Re: expand the media tag and include a flash video player skinQuote this post in your reply
See:

include/lib/mime.inc.php
Posted: 2008-04-17 08:45:02
vegard

Avatar for vegard
Subject: Re: expand the media tag and include a flash video player skinQuote this post in your reply
I added

$mime['flv'] = array('video/x-flv', 'flv');

..but that didn't do much good or bad. I also found where to add an extension to be recognized by the media tag which is around line 349 in /include/html/filemanager_display.inc.php

add ext =="flv" and insterting works, but it still wont open the file in the Flash player.

I can add [media]http://url.to.file/file.flv[/media] which works just fine, so the problem is somewhere in the reference to the internal file manager I believe..
Posted: 2008-04-17 09:10:43
greg

Avatar for greg
Subject: Re: expand the media tag and include a flash video player skinQuote this post in your reply
is your browser file associations/helper apps setup to recognize flv files?
Posted: 2008-04-17 10:18:33
vegard

Avatar for vegard
Subject: Re: expand the media tag and include a flash video player skinQuote this post in your reply
yes. I'll experiment some more with some other players aswell, it might be some Flowplayer javascript specificalities that's causing this.
Posted: 2008-04-18 03:12:33
vegard

Avatar for vegard
Subject: Re: expand the media tag and include a flash video player skinQuote this post in your reply
it's probably the player, I added a different flash mp3 player quite easily..

Flowplayer has this variable:

baseURL: Where to load the video files from. This is appended in front of the value of videoFile value. If not specified, the file is loaded from the same directory as the HTML file.

..as I haven't specified this I guess it tries to load the video from [mysite]/atutor, which does not work.

is there any baseURL for Atutor content I could try to specify here..?
Posted: 2008-04-18 05:37:03
greg

Avatar for greg
Subject: Re: expand the media tag and include a flash video player skinQuote this post in your reply
Try using $_base_href

www.atutor.ca/development/documentation/guidelines.html#var-base_href
Posted: 2008-04-18 08:54:57
greg

Avatar for greg
Subject: Re: expand the media tag and include a flash video player skinQuote this post in your reply
FYI
Another, apparently accessible, Flash player
www.jeroenwijering.com/?item=JW_FLV_Media_Player
Posted: 2008-06-04 17:05:20
greg

Avatar for greg
Subject: Re: expand the media tag and include a flash video player skinQuote this post in your reply
On closer inspection, it is somewhat accessible. I can start and stop the video by keyboard, but not toggle full screen, or mute, and the accesskeys for these conflict with keyboard commands for IE. Full screen Alt+F instead opens the File menu, and Mute Alt+M opens the Home utility in IE.

And the video isn't exactly accessible using images of text. Effective for sighted users mind you, but it just sounds like a tune playing if you can't see the video. I'd didn't see an option to turn on captions.
Posted: 2008-06-06 08:20:38
stephenz
Subject: Re: expand the media tag and include a flash video player skinQuote this post in your reply
I use Moyea web player pro,
www.flash-video-mx.com/web-player-pro/
a flash video player maker, less popular than JW flv media player yet easier to use.

In reply to:
FYI
Another, apparently accessible, Flash player
www.jeroenwijering.com/?item=JW_FLV_Media_Player

Posted: 2009-04-14 05:33:40
chieuhado
Subject: Re: expand the media tag and include a flash video player skinQuote this post in your reply
Thank you very much , I have this information want to share for everybody at here :
The license for Multi Flash Video Player permits single use only.This means that for web server scripts, such as those using PHP/MySQL/Flash/XML, you can use the software on a single website, and any sub-domains or parked domains of the website. The exception to this are the Flash Components, such as the Datagrid Extensions, which can be used on multiple projects.
More than :http://www.tufat.com/s_multi_flash_video_player_applet.html
Thank you for your topic.
_______________________________________________
www.laptopshop.vn |[url=http://www.laptopshop.vn/shop/index.php?target=categories&category_id=1]laptop dell[/url]
Posted: 2010-05-31 03:56:27
 Page: 1 | 2

You must be signed-in to post.