Play : a new module to play video and audio files

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
newagekat
Forum Members
Forum Members
Posts: 161
Joined: Mon Feb 06, 2006 6:06 pm

Re: Play : a new module to play video and audio files

Post by newagekat »

Hi:

just found out about Play module.  got very excited until I started reading the very long post, all 6 pages.

I'm on Linux running php 5 as CGI.  I'm using the JW Player in CMSMS v1.4.1. the site i'm working on is .

What I need is to be able to display a dynamic list using php so that the client only needs to upload his mp3 files in the uploads/audio/ directory.

i got the php script from the Forum at JW.  Without the Play module, which is what you'll if you visit the link, I am unable to play or list anything.  With the Play module, i was able to add the player, configure the param, upload 2 mp3 files, which are listed on the same line, but still won't play.  And you have to indicate which record to play.  So it's not working for me.

If someone has successfully achieved to list a dynamic playlist and play on click, would you mind terribly sharing?  thank you.
rhystaylor1982

Re: Play : a new module to play video and audio files

Post by rhystaylor1982 »

Hi,

I hope someone can help!

I had been using the Neolao FLV player fine until I wanted to change the audio files and now when I click on the Location 'Browse' button in the Multimedia Player section of the admin panel, nothing happens.. The egg timer goes round for ages but then times out.

I can't understand why this is happening all of a sudden... Is there any way of resetting just the multimedia section of the admin panel?

Looking forward to any responses - Thanks!
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 259
Joined: Tue Jun 12, 2007 1:29 pm

Re: Play : a new module to play video and audio files

Post by Franck »

Okay, the thing is this module is no longer updated (supported), is buggy and also doesn't validate : too many defects. The thing is I really really need this sort of addon on many of the sites I'm doing for my clients, and I don't know php unfortunately.

So I'm asking everybody interested : what can we do ? can anyone do something to make this really usable and valid ? Could it be possible to add automatically a media (audio or video) with a simple button on the editor like on many blog systems ?

I'm ready to pay for it, and I hope some others too. Please let me know. Thank you.
NaN

Re: Play : a new module to play video and audio files

Post by NaN »

I'm about creating an own FLV Player module since i didn't know the play module.
When i found the play module i realised that it does almost the same what i wanted to create.
It works fine but i miss some really nice features that i planned to integrate into my module.

So i will continue creating my module.

This is what i'm planing to do:
Categories/genres, albums/playlists (import/export), search function, rating function, public and unpublic videos (for registered users only).
Select a title image for videos if the video thumbnail generation is not supported.
I also planned to integrate possibility to create own classes to perform the frontend output.
E.g. not to put all videos and settings as "visible" params into the ouptut but using an xml file instead what can only be seen if the referer is from your site. Since all players use own xml definitions you will need an additional "default action" for each player. And this will go in separat classes you can select in the backend for each player. (if they exist - similar to frontendusers module)
So you can switch between "module default" action and "player default" action.

Templates won't belong to one player anymore but can be created independently and when calling the module selected by smarty params. (Similar to news module)

To sum it up i try to combine the media management of FLV Player module (in fact this module didn't work for me but has interesting ideas like playlist import, genres etc.) the play module and some of my ideas.

However it will take some time.
If anyone has some ideas that could be useful to integrate, please let me know.
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 259
Joined: Tue Jun 12, 2007 1:29 pm

Re: Play : a new module to play video and audio files

Post by Franck »

Thanx for the answer. The thing is the main features I'm needing are : ease of use for final user & valid xhtml. I'll be waiting for your work.
pandion

Re: Play : a new module to play video and audio files

Post by pandion »

Hi!

I try to use play modul on one of my servers, and it doesnt work. The same video with the same settings works propely on an other server, so the problem is with the server, but I cant find what it is.
This is in the log file:
[12-Oct-2009 15:44:28] PHP Warning:  Missing argument 1 for pPlayer::savedbnew(), called in G:\webroot\bdo\modules\Play\method.installdefault.php on line 20 and defined in G:\webroot\bdo\modules\Play\class.player.php on line 94
[12-Oct-2009 15:44:28] PHP Warning:  Missing argument 1 for pPlayer::savedbnew(), called in G:\webroot\bdo\modules\Play\method.installdefault.php on line 43 and defined in G:\webroot\bdo\modules\Play\class.player.php on line 94
[12-Oct-2009 16:05:44] PHP Warning:  Cannot modify header information - headers already sent by (output started at G:\webroot\bdo\modules\FLVPlayer\FLVPlayer.module.php:27) in G:\webroot\bdo\lib\classes\class.admintheme.inc.php on line 171
[12-Oct-2009 16:05:44] PHP Warning:  Cannot modify header information - headers already sent by (output started at G:\webroot\bdo\modules\FLVPlayer\FLVPlayer.module.php:27) in G:\webroot\bdo\lib\classes\class.admintheme.inc.php on line 174
[12-Oct-2009 16:05:44] PHP Warning:  Cannot modify header information - headers already sent by (output started at G:\webroot\bdo\modules\FLVPlayer\FLVPlayer.module.php:27) in G:\webroot\bdo\lib\classes\class.admintheme.inc.php on line 177
[12-Oct-2009 16:05:44] PHP Warning:  Cannot modify header information - headers already sent by (output started at G:\webroot\bdo\modules\FLVPlayer\FLVPlayer.module.php:27) in G:\webroot\bdo\lib\classes\class.admintheme.inc.php on line 178
[12-Oct-2009 16:05:44] PHP Warning:  Cannot modify header information - headers already sent by (output started at G:\webroot\bdo\modules\FLVPlayer\FLVPlayer.module.php:27) in G:\webroot\bdo\lib\classes\class.admintheme.inc.php on line 181
[12-Oct-2009 16:05:44] PHP Warning:  Cannot modify header information - headers already sent by (output started at G:\webroot\bdo\modules\FLVPlayer\FLVPlayer.module.php:27) in G:\webroot\bdo\lib\classes\class.admintheme.inc.php on line 186
[12-Oct-2009 16:05:49] PHP Warning:  Cannot modify header information - headers already sent by (output started at G:\webroot\bdo\modules\FLVPlayer\FLVPlayer.module.php:27) in G:\webroot\bdo\lib\classes\class.admintheme.inc.php on line 171
[12-Oct-2009 16:05:49] PHP Warning:  Cannot modify header information - headers already sent by (output started at G:\webroot\bdo\modules\FLVPlayer\FLVPlayer.module.php:27) in G:\webroot\bdo\lib\classes\class.admintheme.inc.php on line 174
[12-Oct-2009 16:05:49] PHP Warning:  Cannot modify header information - headers already sent by (output started at G:\webroot\bdo\modules\FLVPlayer\FLVPlayer.module.php:27) in G:\webroot\bdo\lib\classes\class.admintheme.inc.php on line 177
[12-Oct-2009 16:05:49] PHP Warning:  Cannot modify header information - headers already sent by (output started at G:\webroot\bdo\modules\FLVPlayer\FLVPlayer.module.php:27) in G:\webroot\bdo\lib\classes\class.admintheme.inc.php on line 178
[12-Oct-2009 16:05:49] PHP Warning:  Cannot modify header information - headers already sent by (output started at G:\webroot\bdo\modules\FLVPlayer\FLVPlayer.module.php:27) in G:\webroot\bdo\lib\classes\class.admintheme.inc.php on line 181
[12-Oct-2009 16:05:49] PHP Warning:  Cannot modify header information - headers already sent by (output started at G:\webroot\bdo\modules\FLVPlayer\FLVPlayer.module.php:27) in G:\webroot\bdo\lib\classes\class.admintheme.inc.php on line 186
[12-Oct-2009 16:06:02] PHP Warning:  Cannot modify header information - headers already sent by (output started at G:\webroot\bdo\modules\FLVPlayer\FLVPlayer.module.php:27) in G:\webroot\bdo\lib\classes\class.admintheme.inc.php on line 171
[12-Oct-2009 16:06:02] PHP Warning:  Cannot modify header information - headers already sent by (output started at G:\webroot\bdo\modules\FLVPlayer\FLVPlayer.module.php:27) in G:\webroot\bdo\lib\classes\class.admintheme.inc.php on line 174
[12-Oct-2009 16:06:02] PHP Warning:  Cannot modify header information - headers already sent by (output started at G:\webroot\bdo\modules\FLVPlayer\FLVPlayer.module.php:27) in G:\webroot\bdo\lib\classes\class.admintheme.inc.php on line 177
[12-Oct-2009 16:06:02] PHP Warning:  Cannot modify header information - headers already sent by (output started at G:\webroot\bdo\modules\FLVPlayer\FLVPlayer.module.php:27) in G:\webroot\bdo\lib\classes\class.admintheme.inc.php on line 178
[12-Oct-2009 16:06:02] PHP Warning:  Cannot modify header information - headers already sent by (output started at G:\webroot\bdo\modules\FLVPlayer\FLVPlayer.module.php:27) in G:\webroot\bdo\lib\classes\class.admintheme.inc.php on line 181
[12-Oct-2009 16:06:02] PHP Warning:  Cannot modify header information - headers already sent by (output started at G:\webroot\bdo\modules\FLVPlayer\FLVPlayer.module.php:27) in G:\webroot\bdo\lib\classes\class.admintheme.inc.php on line 186
Has anyone any idea?
Thanks
User avatar
dam
Forum Members
Forum Members
Posts: 136
Joined: Sat Jan 14, 2006 6:07 pm

Re: Play : a new module to play video and audio files

Post by dam »

pandion wrote: Hi!

I try to use play modul on one of my servers, and it doesnt work. The same video with the same settings works propely on an other server, so the problem is with the server, but I cant find what it is.
Your error is not in Play module, but FLV Player.
metaxa
New Member
New Member
Posts: 6
Joined: Tue Mar 03, 2009 10:34 pm

Re: Play : a new module to play video and audio files

Post by metaxa »

I have problems with 'Play; module:

Code: Select all

Warning: exec() has been disabled for security reasons in /home/kajewski/public_html/cms-1-6/modules/Play/class.ffmpeg.php on line 114
Any ideas?
Thanks.
NaN

Re: Play : a new module to play video and audio files

Post by NaN »

Nope.

You will simply not be able to use the functionalities of ffmpeg - recieve info like length, size, audio, video or ID3 tags etc. from the media directly. Because ffmpeg is a command line tool that needs the function exec() to be enabled.
In the most cases this function is diabled for security reasons.

You should disable the php warnings in your .htaccess or open the file class.ffmpeg.php and disable all lines where the function exec is used.
That's all you can do i guess.
metaxa
New Member
New Member
Posts: 6
Joined: Tue Mar 03, 2009 10:34 pm

Re: Play : a new module to play video and audio files

Post by metaxa »

When I am logged in as Admin I can go to the Module's interface through the content menu, as expected.  But if I create a user that is an editor, the module no longer shows in the admin menu.

I gave the Editor group the "Use Play" permission.

Anybody had this experience before?  or any idea where to look for a solution?
maxfagotto
New Member
New Member
Posts: 4
Joined: Fri Dec 21, 2007 10:32 am

Re: Play : a new module to play video and audio files

Post by maxfagotto »

metaxa wrote: When I am logged in as Admin I can go to the Module's interface through the content menu, as expected.  But if I create a user that is an editor, the module no longer shows in the admin menu.

I gave the Editor group the "Use Play" permission.

Anybody had this experience before?  or any idea where to look for a solution?
Comment line 25 in Play.module.php
//function VisibleToAdminUser() { return $this->CheckPermission('Use Skeleton'); }
vatvat99
New Member
New Member
Posts: 4
Joined: Mon Oct 25, 2010 10:42 am

Re: Play : a new module to play video and audio files

Post by vatvat99 »

I have the same problem as Metaxa : When I am logged in as Admin I can go to the Module's interface through the content menu, as expected.  But if I create a user that is an editor, the module no longer shows in the admin menu.

But the solution given by maxfagotto doesn't work for me.

Has anyone else got an other solution please ?
vatvat99
New Member
New Member
Posts: 4
Joined: Mon Oct 25, 2010 10:42 am

Re: Play : a new module to play video and audio files

Post by vatvat99 »

Well, I have found why it didn't work for me, that was because of the ftp permission on the directory 'modules', the file I was modifying did'nt upload, so I couldn't see the changes.
User avatar
seensite
Forum Members
Forum Members
Posts: 173
Joined: Sun Feb 10, 2008 7:36 pm

Re: Play : a new module to play video and audio files

Post by seensite »

Hello,

Using Play 1.0.3 with cmsms 181, in admin pannel "Players" tab I tried to copy "Neolao FLV Player" to create another player. This message was shown :

Fatal error: Cannot redeclare _play_getdefaultplayers() (previously declared in /home/httpd/vhosts/httpdocs/modules/Play/methods.defaultplayers.php:5) in /home/httpd/vhosts/httpdocs/modules/Play/methods.defaultplayers.php on line 10

Line 1 to 10 of methods.defaultplayers.php:
<?php

if (!class_exists('Play')) return;

function _play_getdefaultplayers($summary=true) {
$players = array();
$players[] = _play_getdefaultplayer_1($summary);
$players[] = _play_getdefaultplayer_2($summary);
return $players;
}
Do you know what's going wrong ?
The universe of information technology is constantly growing and contains only emerging products built on successive patches
RainerZufall
New Member
New Member
Posts: 4
Joined: Tue May 04, 2010 10:35 am

Re: Play : a new module to play video and audio files

Post by RainerZufall »

Now, Play-Module works fine!  :)

If someone has problems with slash "/" and backslashes "\", because the Play-Module make trouble by link generation, you can do this:

File: Play.module.php Line 138 insert

Code: Select all

       $search = array("\\");            
       $replace = array("/");

       $location = str_replace($search, $replace, $location);
       $links = str_replace($search, $replace, $links);
before this:  $this->smarty->assign('location',$location);


And I must change the Path of "$player['location']" in File methods.defaultplayers.php to find the flv-player. I have copied the "Play"-folder to a subfolder of uploads and make a path like this:

Code: Select all

$player['location'] = 'play/modules/Play/bin/player_flv_maxi.swf
So it works fine ;-)
Post Reply

Return to “Modules/Add-Ons”