PDA

View Full Version : mp3player plugin


jaaaab
04-02-2007, 02:46 PM
does this plugin work the same way before? i can't get it to work.... why is'nt it included in v2?

thanks!

Denis
04-02-2007, 04:09 PM
I going to make a new player (with external interface). Currently you can use any swf mp3 player (just load it as a spot), like this:
http://www.draftlight.net/dnex/mp3player/free/
or like this:
http://www.jeroenwijering.com/?item=Flash_MP3_Player

jaaaab
04-02-2007, 04:45 PM
Ok, sounds good, but does the old one work with v2 or not? tx

Denis
04-04-2007, 06:50 PM
Yes. Any swf with sound will work as a spot object without any problem.
Hint: use hue value to change the color of mp3 player easy:
<spot url="mp3player.swf?file=my.mp3" hue="0.5" />
:)

jaaaab
04-04-2007, 09:45 PM
ok thanks!

i'm already trying to make my own player using the .fla source provided with v1 :)

in fact it seems the only problem with this player is relative paths that don't work...

could you give me a sample of code or an idea about relative paths?

Denis
04-05-2007, 01:43 PM
Old mp3 player works with relative paths.
mp3player.swf?file=folder/1.mp3 and
mp3player.swf?file=http://mysite.com/folder/1.mp3
work ok for me...

By the way, you can use linked parameter with mp3player spot to change panorama backgroun music automatically.

andras
04-18-2007, 04:27 PM
hmmm . . .

i use swf files (which are streaming players of an mp3) for each pano as hotspots in conhunction with the linked param as suggested above.

BUT! while switching from one pano to the next, the new player loads as expected, and although the old player (spot) is made invisible, the old sound continues to play . . .

any ideas?
________
Vaporizer Questions (http://vaporizer.org/forum/vaporizer-questions/)

fritsjan
04-18-2007, 07:09 PM
just curious,
Is there a way to change the sound when changing a pano in a virtual tour? In other words, can the panoplayer communicate to a mp3-player(swf/fla) that it has changed the viewing pano?

It would be nice to have a mp3-player plugin which can read an xml file to know which mp3 it has to play when changing to a different pano.
(or maybe that it does not need to change the sound at a specific pano, or that there is no sound at a specific pano, etc, etc)

This would be a very nice plugin!

Can some-body build this? I think it is not that hard to do, but I have almost no experience with actionscript. Any heros? :)

andras
04-19-2007, 11:36 AM
http://www.jeroenwijering.com/?item=Flash_MP3_Player can do this for you. you can give it a playlist and tell it to move to the next (or any other) track or just load a different mp3 for each pano via javascript or a local connection, as done here:

http://www.jazzfestblog.com/vt/view.php?id=sziget
________
Live Sex (http://livesexwebshows.com/)

kevin
06-17-2007, 03:27 AM
What am I missing?

I downloaded the .swf from http://www.jeroenwijering.com/?item=Flash_MP3_Player

Add to my xml:

<spot id="sound" url="files/mp3player.swf?file=files/music.mp3" />

The pano plays sound fine... but I can not see my controller for the mp3 anywhere.

Denis
06-21-2007, 07:29 AM
Some Flash components can use absolute links for normal working (like _root. and so on).
This is bad practice, because in this case you can't load this product to any other Flash file.

Ask him to fix it. :)
Usually it can be fixed with only one line in Actionscript code:
_lockroot = true

kevin
06-25-2007, 08:45 PM
Denis,

I found this player that I am trying to use.

http://musicplayer.sourceforge.net/

The download has both a .as and .fla file as well as the .swf.

Is there a place I can add your suggested code:

_lockroot = true

Here is the .as source:

/*
Copyright (c) 2005, Fabricio Zuardi
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of the author nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

//repeat_playlist = true;
//playlist_size = 3;
//player_title = "customizeable title test"
//song_url = "http://downloads.betterpropaganda.com/music/Imperial_Teen-Ivanka_128.mp3";
//song_title = "Imperial Teen - Ivanka";
//autoload=true
//playlist_url = "testplaylist02.xspf"
//info_button_text = "Buy Album"
//playlist_url = "http://hideout.com.br/shows/radio-test.xspf";
//playlist_url = "http://cchits.ning.com/recent/xspf/?xn_auth=no";
//radio_mode = true;


stop();
//constants
DEFAULT_PLAYLIST_URL = "http://webjay.org/by/hideout/allshows.xspf";
DEFAULT_WELCOME_MSG = "Hideout XSPF Music Player - by Fabricio Zuardi";
LOADING_PLAYLIST_MSG = "Loading Playlist...";
DEFAULT_LOADED_PLAYLIST_MSG = "- click to start"
DEFAULT_INFOBUTTON_TXT = "Track Info"
//default playlist if none is passed through query string
if(!playlist_url){
if(!song_url){
playlist_url = DEFAULT_PLAYLIST_URL;
}else{
single_music_playlist = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><playlist version=\"1\" xmlns = \"http://xspf.org/ns/0/\"><trackList>";
single_music_playlist += "<track><location>"+song_url+"</location><annotation>"+song_title+"</annotation></track>"
single_music_playlist += "</trackList></playlist>"
}
}
//info button
info_mc._visible=false;
if(!info_button_text){
info_button_text = DEFAULT_INFOBUTTON_TXT;
}

//variables initialization
playlist_array = [];
track_index = 0;
volume_level = 100;
pause_position = 0;

playlist_xml = new XML();
playlist_xml.ignoreWhite = true;
playlist_xml.onLoad = playlistLoaded;
mysound = new Sound(this);
playlist_listener = new Object();
playlist_list.addEventListener("change", playlist_listener)
//play_btn.onPress = playTrack;
//functions
//xml parser
function playlistLoaded (success){
if(success){
var root_node = this.firstChild;
for(var node = root_node.firstChild; node != null; node = node.nextSibling){
if(node.nodeName == "title"){
playlist_title = node.firstChild.nodeValue;
}
if(node.nodeName == "trackList"){
//tracks
var tracks_array = [];
for(var track_node = node.firstChild; track_node != null; track_node = track_node.nextSibling){
var track_obj = new Object()
//track attributes
for(var track_child = track_node.firstChild; track_child != null; track_child = track_child.nextSibling){
if(track_child.nodeName=="location"){
track_obj.location = track_child.firstChild.nodeValue
}
if(track_child.nodeName=="image"){
track_obj.image = track_child.firstChild.nodeValue
}
if(track_child.nodeName=="title"){
track_obj.title = track_child.firstChild.nodeValue
}
if(track_child.nodeName=="creator"){
track_obj.creator = track_child.firstChild.nodeValue
}
if(track_child.nodeName=="annotation"){
track_obj.annotation = track_child.firstChild.nodeValue
}
if(track_child.nodeName=="info"){
track_obj.info = track_child.firstChild.nodeValue
}
}
track_obj.label = (tracks_array.length+1) +". ";
if(track_obj.title) {
if(track_obj.creator) {
track_obj.label += track_obj.creator+' - ';
}
track_obj.label += track_obj.title;
} else {
track_obj.label += track_obj.annotation;
}
tracks_array.push(track_obj)
}
}
}
playlist_array = tracks_array;
if(!playlist_size) playlist_size = playlist_array.length;
if(autoplay){
loadTrack()
}else{
start_btn_mc.start_btn.onPress = loadTrack;
track_display_mc.display_txt.text = playlist_title+" "+DEFAULT_LOADED_PLAYLIST_MSG;
if(track_display_mc.display_txt._width>track_display_mc.mask_mc._width){
track_display_mc.onEnterFrame = scrollTitle;
}else{
track_display_mc.onEnterFrame = null;
track_display_mc.display_txt._x = 0;
}
}
}else{
annotation_txt.text = "Error opening "+playlist_url;
}

}

playlist_listener.change = function(eventObject){
annotation_txt.text = playlist_list.selectedItem.annotation;
location_txt.text = playlist_list.selectedItem.location;
}

function loadTrack(){

//Radio Mode feature by nosferathoo, more info in: https://sourceforge.net/tracker/index.php?func=detail&aid=1341940&group_id=128363&atid=711474
if (radio_mode && track_index==playlist_size-1) {
playlist_url=playlist_array[track_index].location;
for (i=0;i<playlist_mc.track_count;++i) {
removeMovieClip(playlist_mc.tracks_mc["track_"+i+"_mc"]);
}
playlist_mc.track_count=0;
playlist_size=0;
track_index=0;
autoload=true;
autoplay=true;
loadPlaylist();
return(0);
}

start_btn_mc.start_btn._visible = false;
track_display_mc.display_txt.text = playlist_array[track_index].label;
if(track_display_mc.display_txt._width>track_display_mc.mask_mc._width){
track_display_mc.onEnterFrame = scrollTitle;
}else{
track_display_mc.onEnterFrame = null;
track_display_mc.display_txt._x = 0;
}
mysound.loadSound(playlist_array[track_index].loca tion,true);
play_mc.gotoAndStop(2)

//info button
if(playlist_array[track_index].info!=undefined){
info_mc._visible = true;
info_mc.info_btn.onPress = function(){
getURL(playlist_array[track_index].info,"_blank")
}
info_mc.info_btn.onRollOver = function(){
track_display_mc.display_txt.text = info_button_text;
}
info_mc.info_btn.onRollOut = function(){
track_display_mc.display_txt.text = playlist_array[track_index].label;
}
}else{
info_mc._visible = false;
}
resizeUI();
_root.onEnterFrame=function(){
//HACK doesnt need to set the volume at every enterframe
mysound.setVolume(this.volume_level)
var load_percent = (mysound.getBytesLoaded()/mysound.getBytesTotal())*100
track_display_mc.loader_mc.load_bar_mc._xscale = load_percent;
if(mysound.getBytesLoaded()==mysound.getBytesTotal ()){
//_root.onEnterFrame = null;
}
}
}

stop_btn.onRelease = stopTrack;
play_mc.play_btn.onRelease = playTrack
next_btn.onRelease = nextTrack
prev_btn.onRelease = prevTrack
mysound.onSoundComplete = nextTrack;
volume_mc.volume_btn.onPress = volumeChange;
volume_mc.volume_btn.onRelease = volume_mc.volume_btn.onReleaseOutside = function(){
this._parent.onEnterFrame = null;
}

function volumeChange(){
this._parent.onEnterFrame = function(){
var percent = (this._xmouse/this._width)*100
if(percent>100)percent=100;
if(percent<0)percent=0;
this.volume_bar_mc._xscale = percent
this._parent.volume_level = percent;
mysound.setVolume(percent)
}
}

function stopTrack() {
mysound.stop();
play_mc.gotoAndStop(1)
mysound.stop();
mysound.start();
mysound.stop();
_root.pause_position = 0;

};
function playTrack() {
if(play_mc._currentframe==1){ //play
seekTrack(_root.pause_position)
play_mc.gotoAndStop(2)
}else if(play_mc._currentframe==2){
_root.pause_position = mysound.position;
mysound.stop();
play_mc.gotoAndStop(1)
}

};

function seekTrack(p_offset:Number){
mysound.stop()
mysound.start(int((p_offset)/1000),1)
}
function nextTrack(){
if(track_index<playlist_size-1){
track_index ++;
loadTrack();
}else{
if(repeat_playlist){
last_track_index = track_index;
track_index = 0;
loadTrack()
}
}
}

function prevTrack(){
if(track_index>0){
track_index --;
loadTrack();
}
}

function scrollTitle(){
track_display_mc.display_txt._x -= 5;
if (track_display_mc.display_txt._x+track_display_mc. display_txt._width<0){
track_display_mc.display_txt._x = track_display_mc.mask_mc._width;
}
}

function resizeUI(){
bg_mc._width = Stage.width;
track_display_mc.loader_mc._width = Stage.width - track_display_mc._x - 3;
track_display_mc.mask_mc._width = track_display_mc.loader_mc._width - 26;
if(track_display_mc.display_txt._width>track_display_mc.mask_mc._width){
track_display_mc.onEnterFrame = scrollTitle;
}else{
track_display_mc.onEnterFrame = null;
track_display_mc.display_txt._x = 0;
}
if (info_mc._visible){
info_mc._x = Stage.width - info_mc._width - 4;
}else{
info_mc._x = Stage.width - 4;
}
volume_mc._x = info_mc._x - volume_mc._width - 2;
start_btn_mc._xscale = Stage.width;
}

function loadPlaylist(){
track_display_mc.display_txt.text = LOADING_PLAYLIST_MSG;
if(track_display_mc.display_txt._width>track_display_mc.mask_mc._width){
track_display_mc.onEnterFrame = scrollTitle;
}else{
track_display_mc.onEnterFrame = null;
track_display_mc.display_txt._x = 0;
}

//playlist
if(playlist_url){
playlist_xml.load(playlist_url)
}else{
//single track
playlist_xml.parseXML(single_music_playlist)
playlist_xml.onLoad(true);
}
}

//first click - load playlist
start_btn_mc.start_btn.onPress = function(){
autoplay = true;
loadPlaylist();
}

//main
Stage.scaleMode = "noScale"
Stage.align = "LT";
this.onResize = resizeUI;
Stage.addListener(this);
if(!player_title) player_title = DEFAULT_WELCOME_MSG;
track_display_mc.display_txt.autoSize = "left";
track_display_mc.display_txt.text = player_title;
if(track_display_mc.display_txt._width>track_display_mc.mask_mc._width){
track_display_mc.onEnterFrame = scrollTitle;
}else{
track_display_mc.onEnterFrame = null;
track_display_mc.display_txt._x = 0;
}
//start to play automatically if parameter autoplay is present
if(autoplay){
start_btn_mc.start_btn.onPress();
} else if (autoload){
loadPlaylist()
}

//customized menu
var my_cm:ContextMenu = new ContextMenu();
my_cm.customItems.push(new ContextMenuItem("Stop", stopTrack));
my_cm.customItems.push(new ContextMenuItem("Play!", playTrack));
my_cm.customItems.push(new ContextMenuItem("Next", nextTrack));
my_cm.customItems.push(new ContextMenuItem("Previous", prevTrack));
my_cm.customItems.push(new ContextMenuItem("Download this song", function(){getURL(playlist_array[track_index].loca tion)},true));
my_cm.customItems.push(new ContextMenuItem("Add song to Webjay playlist", function(){getURL("http://webjay.org/poster?media="+escape(playlist_array[track_index].location))}));
my_cm.customItems.push(new ContextMenuItem("About Hideout", function(){getURL("http://www.hideout.com.br")},true));
//my_cm.customItems.push(new ContextMenuItem("Crossfade", function(){}));
//my_cm.customItems.push(new ContextMenuItem("Mando Diao - Paralyzed", function(){}));
my_cm.hideBuiltInItems();
this.menu = my_cm;
resizeUI();

Denis
06-28-2007, 06:23 PM
Denis,

I found this player that I am trying to use.

http://musicplayer.sourceforge.net/

The download has both a .as and .fla file as well as the .swf.

Is there a place I can add your suggested code:

_lockroot = true


Better ask player's developers. :)
By the way, I noticed that player has it's own resize functionality (onResize, scaleMode and align). Try to remove this code. Possible it will do the trick.

adriansalisbury
07-10-2007, 01:03 PM
Guys, I have no idea what I'm doing :-(

I want what andras has talked about, for an audio commentary to play when I load a new tour and not repeat. I don't need the player visible I would prefer to make a button that turned sound on and off.

I downloaded the JW MP3 player as recommended, linked it to my mp3 file fine but I get a huge black box in my pano and have to click it to play the file. Where do I resize the thing and how can I set it to auto play?

Any example code would be appreciated, I'm no programmer and feel totally out of depth with some of this stuff.

I have just gone back through the tutorials but can't see anything for mp3s, please help!

adriansalisbury
07-10-2007, 02:02 PM
What do you know, a bit of poking around and I've done it :-)

http://opticalfx-testsite.co.uk/clients/abells/ - you need to click on the second tour in the drop down - Cookers AGA (don't worry I know the floorplan doesn't work yet, just having it recreated in flash).

The only problem is it all goes wrong when you click fullscreen.

Here's the code:

<spot id="sound-aga" linked="images/2" static="1" staticAlign="bc" staticX="180" staticY="-50.5" url="files/mp3player.swf?file=files/aga.mp3&height=20&width=150&autostart=true" />

Any ideas???

Yannis
07-11-2007, 02:46 PM
Can you tell me how to use the mp3plugin

I put layer_6 = mp3player.swf in <parameters>
I put the line between <global>
<spot id="music" url="mp3player.swf" file="1.mp3" repeat="1" level="100"/>

I can the mp3player in the pano but it not playing, what wrong?

Thanks,

Y.

Yannis
07-12-2007, 03:23 PM
Couldn t work as before but like it s should like this no?

<spot id="sound" url="files/mp3player.swf?file=files/music01.mp3" linked="fijm"/>

I dont get it :(

adriansalisbury
07-13-2007, 10:47 AM
Looks pretty much the same as mine and I can get the first tour to play fine but the others dont?

Here's the tour:

http://opticalfx-testsite.co.uk/clients/abells/

Here's the code:

<spot id="sound-fires" linked="images/1" static="1" staticAlign="bc" staticX="180" staticY="-50.5" url="files/mp3player.swf?file=files/fires.mp3&height=20&width=180&autostart=true" />
<spot id="sound-aga" linked="images/2" static="1" staticAlign="bc" staticX="180" staticY="-50.5" url="files/mp3player.swf?file=files/aga.mp3&height=20&width=180&autostart=true" />
<spot id="sound-ios" linked="images/3" static="1" staticAlign="bc" staticX="180" staticY="-50.5" url="files/mp3player.swf?file=files/ios.mp3&height=20&width=180&autostart=true" />
<spot id="sound-siematic" linked="images/4" static="1" staticAlign="bc" staticX="180" staticY="-50.5" url="files/mp3player.swf?file=files/siematic.mp3&height=20&width=180&autostart=true" />
<spot id="sound-kitchens" linked="images/5" static="1" staticAlign="bc" staticX="180" staticY="-50.5" url="files/mp3player.swf?file=files/kitchens.mp3&height=20&width=180&autostart=true" />
<spot id="sound-vileroy" linked="images/6" static="1" staticAlign="bc" staticX="180" staticY="-50.5" url="files/mp3player.swf?file=files/vileroy.mp3&height=20&width=180&autostart=true" />
<spot id="sound-tradit" linked="images/7" static="1" staticAlign="bc" staticX="180" staticY="-50.5" url="files/mp3player.swf?file=files/traditional.mp3&height=20&width=180&autostart=true" />
<spot id="sound-whirl" linked="images/9" static="1" staticAlign="bc" staticX="180" staticY="-50.5" url="files/mp3player.swf?file=files/whirlpool.mp3&height=20&width=180&autostart=true" />
<spot id="sound-tiles" linked="images/8" static="1" staticAlign="bc" staticX="180" staticY="-50.5" url="files/mp3player.swf?file=files/tiles.mp3&height=20&width=180&autostart=true" />
<spot id="sound-calor" linked="images/9" static="1" staticAlign="bc" staticX="180" staticY="-50.5" url="files/mp3player.swf?file=files/calor.mp3&height=20&width=180&autostart=true" />


Any thoughts? Do I need to somehow close off the first one before opening the others?

adriansalisbury
07-21-2007, 01:13 PM
If anyone's interested I took Denis's advice and converted my mp3's to flv files and they work a treat with the flvplayer!

See for yourself - http://bells.uk-virtualtours.co.uk

I used Xilisoft FLV Converter which is free and was very simple to use - http://www.sharewareguide.net/Audio-Multimedia/Video-Tools/xilisoft-flv-converter.html

While I realise most of you are very technical (thankfully) this may help other simple folk like me who struggle with all this.

kevin
07-22-2007, 04:48 AM
Hey folks,

I have a funny issue with an MP3 player in fullscreen, anyone out there seen this before?

Take a look at the player in the navigation bar (lower right), when I go Full Screen the player is a black box, it does not show. Normal view is fine.

http://host.newspin360.net/mickymantles/thumbNavMp3.html

kevin
07-22-2007, 04:54 AM
I forgot,

I am using this MP3 player:

http://www.jeroenwijering.com/

kevin
07-23-2007, 03:22 AM
Update,

I took adriansalisbury suggestion and tried to add a music file to the pano using the flvplayer and Xilisoft FLV Converter

Here is the code for the sound hotspot.

<spot id="sound_btn" static="1" salign="LB" align="LB" staticX="-6" staticY="8" url="graphics/sound.png"/>

<box id="sound" url="files/flvplayer.swf?file=files/foreignparticles.flv" soundVolume="1" static="1" salign="LB" align="LB" staticX="-6" staticY="8"

onClick="soundVolume=+=0"

/>


Anyone have thoughts?

Aifos
08-08-2007, 09:23 AM
What do you know, a bit of poking around and I've done it :-)

http://opticalfx-testsite.co.uk/clients/abells/ - you need to click on the second tour in the drop down - Cookers AGA (don't worry I know the floorplan doesn't work yet, just having it recreated in flash).

The only problem is it all goes wrong when you click fullscreen.

Here's the code:

<spot id="sound-aga" linked="images/2" static="1" staticAlign="bc" staticX="180" staticY="-50.5" url="files/mp3player.swf?file=files/aga.mp3&height=20&width=150&autostart=true" />

Any ideas???

Hi! this is my first time at the forum! i bought the program and allways check this forum for some info.

i can not make the mp3player plug in works! i think iґm doing everything well
now iґm using this mp3player and set it as a hotspot: http://www.jeroenwijering.com/?item=Flash_MP3_Player

adriansalisburyґs code was very useful for me! thanx!!!
i have a solution for that problem with fullscreen... maybe not the best, but it works...
just make it desapear in fullscreen mode, at the hotsopt fullscreen parameters write this: onClick="fullscreen(-);sound-aga.visible=0"

but i think andras did something better because his mp3player works in fullscreen... check: http://www.jazzfestblog.com/vt/view.php?id=sziget

Andras!!! iґd really like to know how did you do that!... thank tou verrrry muchhhh

well
bye!
i will eat some xml files and then come back

Aifos
08-08-2007, 09:36 AM
opsss!! that solution is incomplete!!!

the correct parameters would be:

<global onEnterFullscreen="enterButton.visible=0;exitButton.visible=1;" onExitFullscreen="enterButton.visible=1;exitButton.visible=0;" >
<spot id="enterButton" static="1" salign="RT" align="RT" url="full.jpg" onClick="fullscreen()";mp3.visible=0" />
<spot id="exitButton" static="1" salign="RT" align="RT" url="fullOut.jpg" visible="0" onClick="fullscreen()";mp3.visible=1" />
</global>

neil
08-16-2007, 03:26 AM
The popularity of this thread shows that a Flash Panoramas sound player would be a popular addition to the program - looking forward to it Denis!

For those wanting to create flv files on a Mac, before you trawl through the Flash help notes like I did, you can convert MP3 files etc. using Quicktime Pro.

I'm still trying to work out how to play separate sound files triggered by simple hotspot buttons, regardless of what panorama is playing (ie. not linked to a particular pano). If anyone has some tips I'd be glad to hear them.

Neil

Scott Witte
09-17-2007, 06:53 AM
After reading all this and other posts I am still confused. Does the mp3player.swf supplied with the version 2.1 download work??? Or must we use one of the others for now? And if it works, could someone give an example code, please?

Thanks

Aifos
09-17-2007, 07:28 PM
After reading all this and other posts I am still confused. Does the mp3player.swf supplied with the version 2.1 download work??? Or must we use one of the others for now? And if it works, could someone give an example code, please?

Thanks

I couldnґt make the FPP mp3player plugin work... I asked for an example, but had no reply. I still would like to see it.

For now, i recomend you to use some of the examples showed here... those are betters players than FPPs (at least for now). I know Denis is preparing a big surpirse for the next version. :)

Dalileis
10-01-2007, 03:08 PM
Hey folks,

I have a funny issue with an MP3 player in fullscreen, anyone out there seen this before?

Take a look at the player in the navigation bar (lower right), when I go Full Screen the player is a black box, it does not show. Normal view is fine.

http://host.newspin360.net/mickymantles/thumbNavMp3.html


Hi Kevin

Just bought Flash Panoramas player after seeing your interface, which is by far the best one I have seen yet.

Micky and Riversedge amongst others and I like what wideeyes.dk has done with it as well. Very nice.

Regarding the problem with the black box in fullscreen mode, no player showing.

Try this:

<!-- MUSIC HOTSPOTS -->

<spot id="music1" url="files/mp3player.swf?file=files/music.mp3&height=20&width=180&autostart=true&backcolor=0x000000&frontcolor=0xFFFFFF&lightcolor=0xCC0000" visible="0" static="1" staticX="-374.00" staticY="-39.00" salign="RB" depth="37" scale="1.30" alpha="0.7" scaleable="1" brightness="-0.3 " contrast="1.5" blendMode="lighten"

onOver="brightness=.05,100; alpha=1,100"
onOut="brightness=.05; brightness=-0.3,100; alpha=.7,100"

/>

Aifos solution wouldn't work in your case, because of the spot id="navstrip", spot id="nav_btn" and spot id="nav_btn_out" causing the black box in fullscreen mode to show anyway.

This is the most elegant solution, I believe. Try it and see if you like it. Of course you can always play around with brightness, contrast, alpha... to get the look you want in "lighten" blend mode.

"Lighten" is of course something very familiar to any Photoshop user. As it says in Photoshop help:

"Lighten looks at the color information in each channel and selects the base or blend color—whichever is lighter—as the result color. Pixels darker than the blend color are replaced, and pixels lighter than the blend color do not change. "

Regards,

Dalileis

Cameleer
10-14-2007, 08:06 PM
Hi all,

I tried installing the mp3 player from fpp 2.2, did not work.
Tried the code above from Dalileis and tried the way Scott is doing it.
I got the sound to come up using the last 2 ways but it was playing at about 10 times the speed that it should.
Below is a link to the sound file, any ideas?
http://www.indiavrtours.com/jaipur/files/elephants.mp3

Thanks,
Roger

Dalileis
10-14-2007, 08:40 PM
Hi Roger

The problem is that your audio sample rate is too low.

It's at 8 khz.

Try changing it to at least: 11 kHz.

In fact here you go, it should work perfectly now:

http://labs360.com/temporary/audio/roger/elephants.MP3



Hi all,

I tried installing the mp3 player from fpp 2.2, did not work.
Tried the code above from Dalileis and tried the way Scott is doing it.
I got the sound to come up using the last 2 ways but it was playing at about 10 times the speed that it should.
Below is a link to the sound file, any ideas?
http://www.indiavrtours.com/jaipur/files/elephants.mp3

Thanks,
Roger

Dalileis
10-14-2007, 08:46 PM
Also, if you only have sound, change the parameter visible from "0" to "1". It should say visible="1" (if you want the mp3Player visible on screen directly upon opening of the VR).

Hi all,

I got the sound to come up using the last 2 ways...

Roger