Sealyu

--- 博客已迁移至: http://www.sealyu.com/blog

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  618 随笔 :: 87 文章 :: 225 评论 :: 0 Trackbacks

The best media file handle is Embedded Media Field module
http://drupal.org/project/emfield

The problem: one needs to modify: zzz_custom_url.inc
to play mp3.

Sample site: http://www.thanhsiang.org/en/av

How to use jQuery Media module to play flv and mp3 files?

Another module is jQuery Media module
http://drupal.org/project/jquery_media

1. Install modules
jQuery Media module
jQ module

2. Install player
flv (mp3) player:
http://www.jeroenwijering.com/?item=JW_FLV_Player
Download the player something like: mediaplayer-3-16.zip
You only need one file: mediaplayer.swf
copy that file to your drupal directory, http://localhost/drupal/files/mediaplayer.swf

3. configure
admin/settings/jq

Select "Auto-invoke Media class"

setting player
flve player:
http://localhost/drupal/files/mediaplayer.swf

mp3 player:
http://localhost/drupal/files/mediaplayer.swf

Default settings
Media Width: 320
Media Height: 240

4. create a page use link (a class="media" href=)
Example:

<a class="media" href="http://localhost/files/flvfiles.flv">Movie Files</a>

<a class="media" href="http://localhost/files/mp3files.mp3"> MP3 Files</a>
posted on 2010-08-18 10:55 seal 阅读(247) 评论(0)  编辑  收藏 所属分类: PHP

只有注册用户登录后才能发表评论。


网站导航: