Hi Thomas !
I've been playing around with the Flash 9 HTML Settings in Pano2VR 2.0.2 to be able to embed an mp3 sound file using the XSPF Web Music Player.
However, I would like to loop the play of the mp3 file so it repeats itself. How can this be done ?
Alternatively, how can I modify the fullscreen.ggt template to have the mp3 file autoplay but not display the actual player or even the "Close" link ?
Would it be possible for you to modify the existing fullscreen template to do this and place this on the forum for us all to use ?
Your help would be very much appreciated ... and great product ...seems to do almost everything i could possibly need !
Rod
How to loop mp3 player to repeat sound files
Professional photographer, videographer and 360 degree interactive panorama specialist.
http://www.rodedwards.com
http://www.rodedwards.com
Nicre request. I'm searching something similar. How to implement a soundfile into a flash panorama (swf File) without any additional command. Just a soundfiles which loops constantly.
Advise = welcome.
Advise = welcome.
360 Panorama Creators http://luxmap.com
Google Trusted Photographer
Google Trusted Photographer
- henri_smeets
- Posts: 67
- Joined: Mon Jan 14, 2008 5:46 pm
Yesss, pleaseHow to implement a soundfile into a flash panorama (swf File) without any additional command.
I just tested this ... very nice...
As the previous posts have stated, are there any controls exposed through the SKIN EDITOR which I can add buttons to the pano for play and stop ? rewind and forwad and title are not necessary to me I would take just a single icon that can toggle play pause... I would put in an animated gif like those on web pages with sound embedded.
I have Adobe Flash CS3 and if there is a way to incorporate the controls into the pano, please let me know how to do it.
Cheers
mg
As the previous posts have stated, are there any controls exposed through the SKIN EDITOR which I can add buttons to the pano for play and stop ? rewind and forwad and title are not necessary to me I would take just a single icon that can toggle play pause... I would put in an animated gif like those on web pages with sound embedded.
I have Adobe Flash CS3 and if there is a way to incorporate the controls into the pano, please let me know how to do it.
Cheers
mg
Hi
On http://musicplayer.sourceforge.net/ you find some descriptions and different xspf styles. Especially the button style may be of use for one or the other.
On
http://xspf.org/
you get advise on the playlist format
But : All this requires embedding into a html doc. I want to add sound to the swf directly or into the skin (with the autoplay option)
So any further hint = welcome.
On http://musicplayer.sourceforge.net/ you find some descriptions and different xspf styles. Especially the button style may be of use for one or the other.
On
http://xspf.org/
you get advise on the playlist format
But : All this requires embedding into a html doc. I want to add sound to the swf directly or into the skin (with the autoplay option)
So any further hint = welcome.
360 Panorama Creators http://luxmap.com
Google Trusted Photographer
Google Trusted Photographer
I may include this in the near future... I just need to dig into the Flash documentation.
MfG, Thomas
- castillonis
- Posts: 39
- Joined: Wed May 28, 2008 9:53 pm
- Location: Portland, Oregon
The sound is buffered for 3000 = 3 seconds. The song plays from an offset in time of 0seconds initially and repeats 4 times.
You could accept parameters from the gui such as how many seconds to buffer and how many times to repeat the loop. You could provide default behavior.
Looping the sound file
The first parameter is the offset in time into the sound file.
The second parameter is the number of times to repeat the sound.
You can also just call the play method without passing any values.
You could accept parameters from the gui such as how many seconds to buffer and how many times to repeat the loop. You could provide default behavior.
Code: Select all
package {
import flash.display.Sprite;
import flash.media.Sound;
import flash.net.URLRequest;
public class LoadSound extends Sprite {
private var _sound:Sound;
public function LoadSound () {
var request:URLRequest = new URLRequest("music.mp3");
var buffer:SoundLoaderContext = new SoundLoaderContext(3000);
_sound = new Sound(request, buffer);
_sound.play(0, 4);
}
}
}
The first parameter is the offset in time into the sound file.
The second parameter is the number of times to repeat the sound.
Code: Select all
_sound.play(0, 4);
Code: Select all
_sound.play();
- castillonis
- Posts: 39
- Joined: Wed May 28, 2008 9:53 pm
- Location: Portland, Oregon
You can get the current position in the sound stream using the flash.media.SoundChannel class. The sound object's play method may have more than one SoundChannel object. You could have the sound of a creek as one SoundChannel object and a guitar as another SoundChannel object instance and the two are mixed together. The position in a SoundChannel object instance is different from the flash.media.Sound class length variable which tells you how much has been loaded.
Code: Select all
...
import flash.media.SoundChannel;
...
private var _channel:SoundChannel;
...
_channel = sound.play(0, 4);
...
_position = _channel.position
_channel.stop();
...
_channel = sound.play(_position);
Thanks for the code but I have to agree to the previous post
Where to put it in, an html doc. We can stay with my previous posting ideas.
To implement it in flash measn opening the pano in flash and editing the code. I am def. no flash expert neither a very good novice so I don't know even if this works. Aren't the swf protected agains code manipulation?
Where to put it in, an html doc. We can stay with my previous posting ideas.
To implement it in flash measn opening the pano in flash and editing the code. I am def. no flash expert neither a very good novice so I don't know even if this works. Aren't the swf protected agains code manipulation?
360 Panorama Creators http://luxmap.com
Google Trusted Photographer
Google Trusted Photographer
- 360Texas
- Moderator
- Posts: 3684
- Joined: Sat Sep 09, 2006 6:06 pm
- Location: Fort Worth, Texas USA
- Contact:
I use "emff" player. Google for it. here is the player code. I like the player control panel.
I could not get this one to repeat either, so I just added the sound seductionloop.mp3 3 times. Each .mp3 is about 3 minutes long. Find the code view source on this page
http://360texas.com/tips/rd/tedi/pagereynolds.htm
I could not get this one to repeat either, so I just added the sound seductionloop.mp3 3 times. Each .mp3 is about 3 minutes long. Find the code view source on this page
http://360texas.com/tips/rd/tedi/pagereynolds.htm
Code: Select all
<object type="application/x-shockwave-flash" data="sound/skin/emff_lila.swf" width="200" height="55">
<param name="movie" value="sound/skin/emff_lila.swf">
<param name="bgcolor" value="#cccccc">
<param name="FlashVars" value="src=sound/seductionloop.mp3,sound/seductionloop.mp,sound/seductionloop.mp3,sound/seductionloop.mp3&autoload=yes&autostart=yes&repeat=yes&shuffle=yes&volume=75"></object>