Play : a new module to play video and audio files
Re: Play : a new module to play video and audio files
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.
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.
Re: Play : a new module to play video and audio files
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!
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!
Re: Play : a new module to play video and audio files
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.
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.
Re: Play : a new module to play video and audio files
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.
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.
Re: Play : a new module to play video and audio files
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.
Re: Play : a new module to play video and audio files
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
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
Re: Play : a new module to play video and audio files
Your error is not in Play module, but FLV Player.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.
Re: Play : a new module to play video and audio files
I have problems with 'Play; module:
Any ideas?
Thanks.
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
Thanks.
Re: Play : a new module to play video and audio files
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.
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.
Re: Play : a new module to play video and audio files
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?
I gave the Editor group the "Use Play" permission.
Anybody had this experience before? or any idea where to look for a solution?
-
- New Member
- Posts: 4
- Joined: Fri Dec 21, 2007 10:32 am
Re: Play : a new module to play video and audio files
Comment line 25 in Play.module.phpmetaxa 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?
//function VisibleToAdminUser() { return $this->CheckPermission('Use Skeleton'); }
Re: Play : a new module to play video and audio files
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 ?
But the solution given by maxfagotto doesn't work for me.
Has anyone else got an other solution please ?
Re: Play : a new module to play video and audio files
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.
Re: Play : a new module to play video and audio files
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:
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:
Do you know what's going wrong ?<?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;
}
The universe of information technology is constantly growing and contains only emerging products built on successive patches
-
- New Member
- Posts: 4
- Joined: Tue May 04, 2010 10:35 am
Re: Play : a new module to play video and audio files
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
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:
So it 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);
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
