Page 2 of 17

Re: [BETA] BB3 Media Player

Posted: Tue Sep 29, 2009 4:04 pm
by ameisez
muggins wrote:Well, it's pretty rough, but it's getting better! :mrgreen:

You've hard-coded your test board's URL into the thing,
That is the wrong install files. Fixed it already.
muggins wrote:and after making those changes, I discovered that it doesn't preload the media files when you click on a filename in the player. I get six seconds of music, then silence while it seeks, then music, etc.
It does preload but since the player default preload time is 5sec, there's nothin much to load after preloading that is why it looks like it is not preloading :D

Try to put/play longer clips like trailers

Re: [BETA] BB3 Media Player

Posted: Tue Sep 29, 2009 4:12 pm
by muggins
I'll download it again, thanks.

The copy I have on my test board has a Doug Sahm album in the media directory, so I have samples that run to a few minutes. I added

Code: Select all

s0.addVariable('bufferlength' , '90'); 
to mplayer_body.html, for a 90 second buffer, but it only plays the first 15 seconds...

We'll get it soon, I'm sure!

Edit: I don't know what I did just now, but Louis Riel is playing just fine, full song and no drop-outs. :mrgreen:

Re: [BETA] BB3 Media Player

Posted: Tue Sep 29, 2009 4:27 pm
by rondembo
great mod what anout subsilver2?

Re: [BETA] BB3 Media Player

Posted: Tue Sep 29, 2009 4:28 pm
by muggins
This is odd. It may have more to with my server than the player, but some songs will load fully and others won't...

Re: [BETA] BB3 Media Player

Posted: Tue Sep 29, 2009 5:08 pm
by Nully
Hello,
it seems nice, but I do not have place on my server to upload music mp3 ...:-(

Re: [BETA] BB3 Media Player

Posted: Tue Sep 29, 2009 5:21 pm
by Mircea007
this look promosing i will try it out :D

Re: [BETA] BB3 Media Player

Posted: Tue Sep 29, 2009 5:58 pm
by ameisez
rondembo wrote:great mod what anout subsilver2?
Working on it :)

Re: [BETA] BB3 Media Player

Posted: Tue Sep 29, 2009 10:46 pm
by noob5
First off, AWESOME mod!


I have one problem though... It won't play the music.. i click on the songfile and it directs me to http://www.littlegraffyx.com/ameisez/mplayer/....

Whats the issue?

Re: [BETA] BB3 Media Player

Posted: Tue Sep 29, 2009 11:44 pm
by keith10456
Great mod!

Re: [BETA] BB3 Media Player

Posted: Tue Sep 29, 2009 11:47 pm
by just_guy
noob5 wrote:First off, AWESOME mod!


I have one problem though... It won't play the music.. i click on the songfile and it directs me to http://www.littlegraffyx.com/ameisez/mplayer/....

Whats the issue?
You have to change the music path in pl_all.php

Edit p_all.php and change the line below

// url to be added to the path *** NO TRAILING SLASH ***
$url = 'http://www.XXXXXX.com/mplayer';

// path to the directory you want to scan
$directory = './media';

Re: [BETA] BB3 Media Player

Posted: Wed Sep 30, 2009 1:37 am
by noob5
Actually its not that...

Code: Select all

  <track>
      <title>$title</title>
      <location>$url$item</location>
      <info>http://www.yoursite.com/phpBB3/mplayer</info>
    </track>
before i asked the question.. i already did the way said.. but it was still directing to his site... so i found it myself.. quick fix

Re: [BETA] BB3 Media Player

Posted: Wed Sep 30, 2009 6:11 am
by ameisez
Sorry guys.. those are all fixed on the next version but I haven't got the time to upload the pack :D

SOME QUICK FIXED:

Open: styles/prosilver/template/mplayer_body.html
FIND AND REMOVE

Code: Select all

      <script type="text/javascript">
      /** Install the safety net - START **/
      if (window.onload_functions) // prosilver
      {
         onload_functions[onload_functions.length] = "placeFocus();";
      }
      else if (typeof(window.addEventListener) != "undefined") // DOM
      {
         window.addEventListener("load", placeFocus, false);
      }
      else if (typeof(window.attachEvent) != "undefined") // MSIE
      {
         window.attachEvent("onload", placeFocus);
      }
      /** Install the safety net - END **/
      </script>
FIND

Code: Select all

s0.addVariable('image','http://www.littlegraffyx.com/ameisez/mplayer/bb3player_logo.png');
REPLACE WITH

Code: Select all

s0.addVariable('image','bb3player_logo.png');
Open: root/mplayer/index.php
FIND AND REMOVE

Code: Select all

// Some oft used variables
$safe_mode		= (@ini_get('safe_mode') == '1' || strtolower(@ini_get('safe_mode')) === 'on') ? true : false;
$file_uploads	= (@ini_get('file_uploads') == '1' || strtolower(@ini_get('file_uploads')) === 'on') ? true : false;
$user->add_lang( array('acp/common', 'mods/bb3_media_player') );
Open Open: root/mplayer/pl_all.php
FIND

Code: Select all

$url = 'http://www.littlegraffyx.com/ameisez/mplayer';
REPLACE WITH YOUR MPLAYER URL

FIND

Code: Select all

<info>http://www.littlegraffyx.com/ameisez/mplayer</info>
REMOVE IT (if you dont want the files to be downloaded.

REPLACE WITH (if you want the file to be downloadable)

Code: Select all

      <info>$url$item</info>
more update coming for this line to enable force download

Re: [BETA] BB3 Media Player

Posted: Wed Sep 30, 2009 12:04 pm
by muggins
:D Thank you.

I did most of those changes already. I wondered where you got that bit of code for Javascript, because your mod doesn't use any...

Re: [BETA] BB3 Media Player

Posted: Wed Sep 30, 2009 1:39 pm
by ameisez
muggins wrote::D Thank you.

I did most of those changes already. I wondered where you got that bit of code for Javascript, because your mod doesn't use any...
You might see where it is supposed to be use if we start enabling user upload so that they can create their own playlist. for now let's just wait how this will go :D

It was supposed to be there originally but as a beginner I guess it is too much for me. I decided to start little by little :)

Re: [BETA] BB3 Media Player

Posted: Wed Sep 30, 2009 1:46 pm
by muggins
Ah. Yessir, thanks. ;)

BTW, I worked out my playback issues. It came down to Flash 9 and 64-bit Linux not liking one another very much... :cry: