Media Center

Started by JayBachatero, December 02, 2006, 12:43:49 AM

Previous topic - Next topic

chep

Do you have the smf default theme? I doubt it, because if you did it would install on the main menu as "media center" up there where Calendar , Profile, My Messages etc are located.

Under features and options --> Basic Features
Disable filename formating for Media Center   
Width for the music popup   
Height for the music popup   
Width for the videos popup   
Height for the videos popup

nolageek

Great mod.  I fixed my previous problem (stupid permissions!) but now I'm noticing that If I have the listen/audio unchecked (I don't want my users posting audio) that they can't see the thumbnails in the images section.

xardas_piano

Hi

I'd like to extend to music tab so that it accepts ogg.
I tried to simply add the ogg to the music file types. So that it looks like the following:


        $subActions = array(
                'music' => array(
                        'title' => $txt['media_tabs_music'],
                        'sub_template' => 'media',
                        'fileTypes' => array('mp3', 'wav', 'wma', 'ogg'),
                        'href' => $scripturl . '?action=mediacenter;sa=music',
                        'is_allowed' => $context['can_listen'],
                ),


But now it tells me it wouldn't be a valid package and I can't install it at all. :/

Best wishes,
xardas

TrueSatan

@ xardas_piano

I haven't tested it but what immediately springs to mind is that you don't mention editing lines 512 to 526 of MediaCenter.php

// Find out the extension
if ($ext == 'mp3')
$mime = 'audio/mpeg';
elseif ($ext == 'wav')
$mime = 'audio/x-wav';
elseif ($ext == 'wma')
$mime = 'audio/x-ms-wma';
elseif ($ext == 'mpg' || $ext == 'mpeg')
$mime = 'video/mpeg';
elseif ($ext == 'mov')
$mime = 'video/quicktime';
elseif ($ext == 'avi')
$mime = 'video/x-msvideo';
elseif ($ext == 'wmv')
$mime = 'video/x-ms-wmv';


Suitably edit that and see what happens

xardas_piano

Sadly it didn't help. The error consists to exist.

I just added there below wma:


elseif ($ext == 'ogg')
$mime = 'audio/ogg';


xardas

JJLodge

Right after months of trying to install finaly got it, now i have 1 question left.

Am i being blind but where can people/I upload music, videos, pics, to be displayed in the media center please

thanks

xardas_piano

#306
This is pretty easy.
If your attachment is a file type which is known by mediacenter it will appear there. So your users can just upload attachments and browse them afterwards in the mediacenter.

xardas

JJLodge

Right i see

So any file that is attatched to a post will automacitly be added to the media center

is that right

xardas_piano

Yeah, if the file is known by mediacenter. Not all file types are known by mediacenter...

JJLodge

Can media center learn more file types ??, i mean can it be told to accept and show more than whats it does by defult ?

xardas_piano

I hope it is able to do this. :s
But so far nobody could help me either with this question which also concerns me....

JJLodge

right.

Do you no if the media center can only accpet files from posts or is there a way to upload vids or music to be viewed in the media center without it coming from a post ?

xardas_piano

Well.. You somehow had to provide an upload field somewhere which uploads the files to /attachments ... I think then they would be visible in the mediacenter.

JJLodge

Is there a list anywhere that will tell me exactly what files this mod will accept ??

thanks JJ

TrueSatan

@ JJLodge

Please look at the code in my posting above...Reply 304

JJLodge

Quote from: TrueSatan on July 31, 2007, 04:59:11 PM
@ JJLodge

Please look at the code in my posting above...Reply 304

thats great.

I have created a upload ability but i am unsure as to what directory to make the uploaded files go into. can any one help please

xardas_piano

I think it's /attachments. Right in the smf root directory.

JJLodge

mmmm i dont think it must be as simple as this, that the dir i had it set to but no joy, they all upload to my smf attatchments folder ok but not visable when i go into media player

???

JJ

JayBachatero

Sorry for the late reply.  Haven't been around.

JJLodge the only way to add files is from posts.

Also for those of you trying to disable the tabs I believe I added some code for that.  You have to edit the source file.  I don't have the files with me so I'm not too sure what exactly is it.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

spanishsilver

Is there a way to mdisplay random image attachments from posts on the forum index page. Thanks Here is a site with the example of what I am talking about. www.treasurenet.com See how the latest finds are taken from the posts and displayed thanks.

Advertisement: