How To Stream MP3's Instead Of SWF's From Player?
Hi I was wondering how to modify the Winamp player in the Movies section found on flashkit.com to stream MP3's instead of SWF's
Player
thanks
FlashKit > Flash Help > Flash MX
Posted on: 06-29-2003, 12:58 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
HELP ABOUT THE NET STREAM PLAYER
Hey i am creating a cool netStream player which you can download. but the problem is, that my scrubber won't let me fast forward and rewind. even tho i put the perfect code. please check it out and tell me what to do. and how do i create the zoom effact so first the video is 320 X 240
Web Stream Player In Flash
Hey, I am running Winamp/Shoutcast, streaming audio! You can listen by, tuning in to the iport/listen.pls - Such audio players you can use are winamp, real audio, etc...
I would like a flash player, like http://www.radiotakeover.com - where you can tune into the stream, which is embedded in flash, with controls... they use the shockwave plugin, so I am assuming they did it in director- remember, it needs to play the listen.pls, not actual mp3 files.
I am willing to compensate and or host you.
aim: distantwhite
email: robbie.moran@cox.net
msn: setyournet@cox.net
Stream Video Player
I'm looking for a streaming video player similar to this: http://espn.go.com/
with multiple clips to choose from. Anyone know where i can purchase one or better yet, get one for free?
Live Stream Player
hi,
i'm creating a a web broadcast application for a school event which records from multiple video-camera and encodes using Flash Media Encoder & FMS3 streaming. using the rtmp to apply onto a player in AS3.(normally i done it using FLV playback) But the requires states no Playback component should be used. As the deadline is the end of the year i hope u guys could direct/links me some tutorials which would be helpful.
Thanks.
yours gratefully,
Live MP3 Stream Player
Hi,
I wrote a simple function which connect to an mp3 streaming radio.
It works fine with flash player 6 under windows but not under pocket PC.
Under PPC it make connection to server, start buffering but never start to play.
Another strange thing under windows XP (not pocket pc). It works when opened with standalone player but not in internet explorer. It works under mozilla.
The script is :
ActionScript Code:
_soundbuftime = 1; // do not change problem
mp3 = new Sound();
mp3.loadSound( "http://64.236.34.141:80/stream/1040", true );
[HELP] How To Stream FLV On Flash Player 6
Hi,
I follow the guide, using NetConnection and Netstream to stream my FLV video. However, it cannot work in Flash Player 6 r79, which is the final release of Flash Player 6
According to guide, it only works if using Flash Communication Server, I just using usual http server stream, so it only works on Flash Player 7 and above.
Is there any alternative it also supports Flash Player 6?
Thanks.
Mp3 Player With Timeline And Preloader/stream......
hi, as title, i would like to learn how to do a flash mp3 player with timeline and preloader/stream......
i hope u all know what i mean. i want to do a mp3 player like www.ideaden.com
i currently know how to do a mp3 player with play, stop buttons.
Flash Video-Stream Player
hey guys,
maybe someone out there has already made a
Flash Video-Stream Player or flv-player or tutorial on
how to make these things...
because I want to make such a player, but
I'm too newbie for that
it would be really great if someone could
post something on that...
Flash Video-Stream Player
hey guys,
maybe someone out there has already made a
Flash Video-Stream Player or flv-player or tutorial on
how to make these things...
because I want to make such a player, but
I'm too newbie for that
it would be really great if someone could
post something on that...
Flash Stream Mp3 Player Advanced
Hi,
I am trying to make a player like this one
http://eloo.izlenim.com/fl_p.asp?fieldNum=3&productID=8
unfortunately the guy didn't include source fla files. Does anyone know where can i find something like this ? Needs to have the option to select a playlist/genre....
The other one he posted
http://eloo.izlenim.com/fl_p.asp?fieldNum=2&productID=6
the next/prev buttons do not work and playlists do not refresh properly etc
Any good resources or ideas out there?
thanks
How To? Flash Online Stream Player
Hello,
I have recently started learning Flash and XML and this site has proven to be the best resource for me. Simply to understand and easy to follow.
However, I have a request from anyone. I need to design a flash player with a graphic layout I have already got. It should be able to read a radio stream and display the song played from that API (feed).
Layout: Code:
http://i31.tinypic.com/qqzaps.jpg
The API/XML info would be in a URL. Example:
Code:
http://stream.example.com/api_public.php
The contents of the URL above will look similar to:
Code:
<result>
<nowplaying>Bob Marley - Warno More Trouble</nowplaying>
<countdown_hours>0</countdown_hours>
<countdown_minutes>3</countdown_minutes>
<nextshow_dj>MD101</nextshow_dj>
<nextshow_name>MD101 Rock Show</nextshow_name>
<nextshow_time>22:00</nextshow_time>
<gentime>0.0021s</gentime>
</result>
So I was really looking for some insight on how to approach this and the best way to get it done.
I really hope to hear from someone.
Regards,
Flash Mp3 Player, Change Stream Rate Or Something
Hello people.
Need your help with something please.
Got a site that I am building.
Its pretty cool, but has its problems:
http://www.checkmatemuzik.net/test1/main4.html
No preloaders work with it for some reason,
I am thinking that this may be due to it loading
its news from RSS feed (yes the one on there is
currently macromedia, I will be changing soon).
It just shows a black screen, if you know anything
about that, it would be helpful.
My main concern is the mp3 player.
Its got this script:
Quote:
data_xml = new XML();
data_xml.ignoreWhite = true;
data_xml.onLoad = ladeDaten;
data_xml.load(playlist);
function ladeDaten(success) {
if (success) {
aPath = new Array();
songTitel = new Array();
songArtist = new Array();
songCover = new Array();
audioTracks = new Array();
audioTracks = this.firstChild.childNodes;
totalAudio = audioTracks.length;
for (var i=0; i<totalAudio; i++) {
if (audioTracks[i].nodeName == "song") {
aPath.push(audioTracks[i].attributes.path);
songTitel.push(audioTracks[i].attributes.title);
songArtist.push(audioTracks[i].attributes.artist);
songCover.push(audioTracks[i].attributes.bild);
}
}
AudioPath = aPath[0];
titel = songTitel[0];
artist = songArtist[0];
aktAudio = 1;
trackAnzeige = aktAudio+" / "+totalAudio;
status = "Status: playlist - Loaded";
if (playerlook) setCover(0);
erstesBild = true;
} else {
status = "Status: PlayList - Not loaded";
}
delete audioTracks;
delete data_xml;
}
// StreamSignal Prüfen
if (StreamSignal) {
sback_mc._visible = 0;
svor_mc._visible = 0;
}
// Rückwärts
function ruck(diff) {
pausgabe = MySound.position - diff;
MySound.stop();
MySound.start(pausgabe/1000,0);
}
// Vorwärts
function vor(diff) {
pausgabe = MySound.position + diff;
MySound.stop();
MySound.start(pausgabe/1000,0);
}
// Lautstärke und Balance Ausgangswerte
volume = 100;
// Playschalter
play_btn.onRelease = function(playfunc) {
if (pauseSignal == true) {
MySound.start(pausePos, 0);
pauseSignal = false;
playSignal = true;
delete pausePos;
kugel_mc._visible = 1;
} else {
MySound = new Sound();
if (volstatus < volume) {
volume = volstatus;
} else if (volstatus > volume) {
volume = volstatus;
} else if (volstatus == 100) {
volume = 100;
}
if (balstatus < balance) {
balance = balstatus;
} else if (balstatus > balance) {
balance = balstatus;
} else if (balstatus == 0) {
balance = 0;
}
MySound.loadSound(AudioPath, StreamSignal);
MySound.setVolume(volume);
MySound.setPan(balance);
MySound.onSoundComplete=function(){
kugel_mc._visible = 0;
playSignal = false;
status = "Status: stopped";
}
volstatus = volume;
balstatus = balance;
pauseSignal = false;
playSignal = true;
wahlSignal = false;
_parent.onEnterFrame = function() {
total = MySound.getBytesTotal();
geladen = MySound.getBytesLoaded();
if (geladen != total) {
if (geladen != undefined && total != undefined) {
status = "Status: " + Math.round((geladen*100/total)) + "% loaded";
}
mc._xscale = Math.round((geladen*100/total));
} else {
status = "Status: 100% Loaded";
delete _parent.onEnterFrame;
kugel_mc._visible = 1;
if (!StreamSignal) {
MySound.start(pausePos, 0);
}
}
}
}
}
play_btn.onRollOver = function() {
status = "Status: load / play song";
}
play_btn.onRollOut = function() {
status = (playSignal) ? status = "Status: playing" : status = "Status: stopped";
}
// Stop Schalter
stop_btn.onRelease = function() {
MySound.stop();
playSignal = 0;
delete pausePos;
kugel_mc._visible = 0;
}
// Zeit Schalter
zeit_btn.onRelease = function() {
zeitSignal = !zeitSignal;
}
zeit_btn.onRollOver = function() {
dstatus = status;
status = "Status: Total / " +t_TrackZeit.total +" - switch timedisplay ";
}
zeit_btn.onRollOut = function() {
status = dstatus;
}
// Drag Schalter
drag_btn.onPress = function() {
startDrag(this._parent, false);
}
drag_btn.onRelease = drag_btn.onReleaseOutside = function() {
stopDrag();
}
drag_btn.onRollOver = function() {
dstatus = status;
status = "Status: drag 'n' drop";
}
drag_btn.onRollOut = function() {
status = dstatus;
}
// Look Schalter
look_btn.onPress = function() {
if (_currentFrame == 2) {
cover_mc._visible = 0;
gotoAndStop(3);
} else {
cover_mc._visible = 1;
gotoAndStop(2);
setCover(aktAudio-1);
}
}
look_btn.onRollOver = function() {
dstatus = status;
status = "Status: change look - simple/extended";
}
look_btn.onRollOut = function() {
status = dstatus;
}
// Credits/Logo Schalter
fslogo_btn.onPress = function() {
fslogo_mc._visible = !fslogo_mc._visible;
}
fslogo_btn.onRollOver = function() {
dstatus = status;
status = "Status: player - credits";
}
fslogo_btn.onRollOut = function() {
status = dstatus;
}
// Credits/Logo Clip (Ausgangszustand)
fslogo_mc._visible = 0;
fslogo_mc.onRelease = function() {
getURL("http://www.flashstar.de","_blank");
}
// Equalizer Schalter
kugel_mc._visible = 0;
// Display
onEnterFrame = function () {
_global.dauer = int(MySound.duration/1000);
_global.position = int(MySound.position/1000);
// Total Zeit
t_TrackZeit = {};
t_TrackZeit.minutes = int(_global.dauer/60);
t_TrackZeit.seconds = int(_global.dauer%60);
t_TrackZeit.total = checkDigits(t_TrackZeit.minutes)+":"+ checkDigits(t_TrackZeit.seconds);
// Bereits
b_TrackZeit = {};
b_TrackZeit.minutes = int((_global.position)/60);
b_TrackZeit.seconds = int((_global.position)%60);
b_TrackZeit.total = checkDigits(b_TrackZeit.minutes)+":"+ checkDigits(b_TrackZeit.seconds);
// Noch zu Spielen
n_TrackZeit = {};
n_TrackZeit.minutes = int((_global.dauer - _global.position )/ 60);
n_TrackZeit.seconds =int(( _global.dauer - _global.position )%60);
n_TrackZeit.total = checkDigits(n_TrackZeit.minutes)+":"+ checkDigits(n_TrackZeit.seconds);
// Ausgabe
sBalken("smc");
if (zeitSignal) {
display =n_TrackZeit.total;
} else {
display =b_TrackZeit.total;
}
// Trackslider
if (trackDrag != true) regler_mc._x = (MySound.position / MySound.duration) * sliderMax;
}
// Zweistelligkeit
function checkDigits(pWert) {
return (pWert<10) ? pWert="0"+pWert : pWert;
}
// Statusanzeige (Balken)
function sBalken(obj) {
prozent = _global.position*100/_global.dauer;
this[obj]._xscale = prozent;
prozent = parseInt(prozent)+"%";
}
// Doppelclick
movieclip.prototype.dClick = function(tempo) {
if (getTimer()-clickZeit<=tempo) return true;
clickZeit = getTimer();
}
// Prüfen des Komponenten Parameters playerlook
// (Simple/Extended Version)
if (!playerlook) gotoAndStop(3);
// Direkt Wahl
function setzeDirektwahl() {
for (var j=1; j <= 12; j++) {
this["dw" + j + "_btn"].nrtxt = j;
}
}
function setzeAudiowahl(pAkt) {
trace(pAkt);
aktAudio = pAkt;
AudioPath = aPath[aktAudio-1];
titel = songTitel[aktAudio-1];
artist = songArtist[aktAudio-1];
MySound.stop();
playSignal = 0;
pauseSignal = 0;
wahlSignal = 1;
delete pausePos;
kugel_mc._visible = 0;
trackAnzeige = aktAudio+" / "+totalAudio;
status = "Status: stopped - press play";
setCover(aktAudio-1);
}
// Trackslider
trackDrag = false;
sliderMax = bigdisplay_mc._width;
regler_mc.onPress = function() {
if (this._parent.MySound) {
trackDrag = true;
startDrag(this,false,0,this._y, sliderMax,this._y);
this._parent.onMouseMove = function() { updateAfterEvent() };
}
}
regler_mc.onRelease = regler_mc.onReleaseOutside = function() {
if (this._parent.MySound) {
trackDrag = false;
delete this._parent.onMouseMove;
stopDrag();
neuePosition = (this._x * (MySound.duration / 1000)) / sliderMax;
pausePos = neuePosition;
MySound.stop();
MySound.start(neuePosition, 0);
kugel_mc._visible = 1;
status = "Status: playing";
dstatus = status;
playSignal = true;
pauseSignal = false;
}
}
regler_mc.onRollOver = function() {
dstatus = status;
status = "Status: Drag Slider";
}
regler_mc.onRollOut = function() {
status = dstatus;
}
Now I don't know what bit of that is important, I have deleted
many features of the mp3 player such as equaliser etc.
But anyway: The mp3 player works perfectly when the user has
broadband. But with narrowband, it goes start, stop, start, stop
etc. (this is not due to the mp3s which are demos, I have tried
with smaller file sizes etc).
Any idea how I can change the point at which it starts to play the song? currently it is when it is about 8% loaded.
Also, any idea how I can make it autoplay? the instance name of the
play button is play_btn the code should help with this. I have deleted the code for pause, stop, next and previous as otherwise the code was over the limit for this board.
I know that this is a big task. But if someone can help then I will
send some money via paypal or something.
Thanks
From Jack
Stream Live Radio Use Flash Player
Hi Does anyone know about how to run script on flash player to run a IP stream radio like http://IP.....Port no...listen.pls like winamp file
and what type player I used and where I put the script on flash player?
Simple Mp3 Stream Player For Html Page?
hello,
I´m trying to build a homepage for a sound studio in html.
There should be a category for sound examples. For each example should be a simple mp3 player with a start and stop forward and backward button and maybe the sound should be streamed...
has anybody an idea how to build?
thanx
Understanding MP3 Stream In Flash8? Finding The Right Player
Hi there,
Can someone point me to a free(if possible)MP3 streamer player to study it.
I want to be able to load many of my songs (30+) so peoples can listen to them.
So, I need a kind of scroll bar-selection of track area /start/stop/volume etc.
I know there are lots of free ones out there but, I dont quiet understand how to organise my tracks.
At the moment I have a simple start button for each track then a general Pause and stop.
Soon the page will be covered with "start" button which is why I am looking at a player
I hope this make sense and thank you for your help
Many thanks
How To Detect Video Stream Freeze In Player
Hello,
I have a video player which plays only live streams. The stream could contain audio / video or audio only. I am seeing an intermittant freeze only in the video. I am not able to track down the source of the freeze. If I restart the player everything works fine. The audio does not have any problem, even when the video is frozen.
I am trying to find out if there is any way to detect that video streaming has frozen in the player. I am thinking that if I can detect that video streaming is frozen, I could silently restart the player.
Is there a way to detect this video freeze?
Thanks,
-Jayant.
Freeware/Commercial Stream Flash Player
Hi guys
I wonder if someone knows about the existence of a sound player (in flash) which would support this stream:
http://www.cadenavida.com/vida.m3u
The stream is generated by L I V E 365 website
Now the website has a link to get the m3u file and load winamp, etc. but I'd like to put a flash player in website, which loads instantly...
I know this would make L I V E 365 servers to blow, but well, website has not more than 10 live users in any moment..
Thanks a lot in advance 4 any help you can give me.
How Come My Music Player Won't Stream...it Waits Till It Loads?
I'm begging for anybody to figure out why my mp3's don't stream. Instead, you have to wait for the whole song to load before it plays. I am using an XML file...you can view what I'm talking about at www.trippblake.com/index2
My .fla file is too big so I can't attach that. However this is my action script:
//defines a new sound object
music = new Sound(this);
trkInfo = new Date();
//comment these three lines if you don't want it to play on startup
playing = false;
paused = false;
loading = true;
///////////////////////////////////////////////////////////////////
//sets the beginning slider attributes
vol_mc.slider_mc._x = 50;
bal_mc.slider_mc._x = 50;
pos_mc.slider_mc._x = 0;
pos_mc.slider_mc._visible = false;
vol_mc.slider_mc.slider.useHandCursor = false;
bal_mc.slider_mc.slider.useHandCursor = false;
pos_mc.slider_mc.slider.useHandCursor = false;
scroller_mc.slider_mc.slider.useHandCursor = false;
loop_mc.radio_mc.useHandCursor = false;
shuffle_mc.radio_mc.useHandCursor = false;
//controls which song is highlighted in the playlist, see attacher
function select(){
for(i in playlist_mc.target_mc){
if(playlist_mc.target_mc[i].songNum != songNum){
playlist_mc.target_mc[i].gotoAndStop(1);
}
else{
playlist_mc.target_mc[i].gotoAndStop(2);
}
}
}
songNum = 0;
numTracks = songInfo.content.length;
//attacher: attaches the playlist movies, select() is called here
for(i = 0; i < numTracks; i++){
songInfo.content[i].songNum = i;
playlist_mc.target_mc.attachMovie("playlistItem", "item" + i, (i+1), songInfo.content[i]);
playlist_mc.target_mc["item" + i]._y = i * 18;
if(playlist_mc.target_mc["item" + i].title == songInfo.content[songNum].title){
playlist_mc.target_mc["item" + i].gotoAndStop(2);
}
else{
playlist_mc.target_mc["item" + i].gotoAndStop(1);
}
}
scrollWindowHeight = 72;
scrollMax = (playlist_mc.target_mc._y + playlist_mc.target_mc._height) - scrollWindowHeight;
//if there's not enough to scroll, there will be no handle
if(playlist_mc._height <= scrollWindowHeight){
scroller_mc.slider_mc._visible = false;
}
else{
scroller_mc.visible = true;
}
//loads the song
music.loadSound(songInfo.content[songNum].path, false);
//this is what makes the music fade when you hit the stop button
function fadeOut() {
if (music.getVolume()>0) {
music.setVolume(music.getVolume()-5);
} else {
music.stop();
pos_mc.slider_mc._visible = false;
pos_mc.slider_mc._x = 0;
}
}
//this function is called when the first song ends, or the next button is press. It moves to the next song
function nextSong(){
if(loop == true and skipLoop != true){
music.stop();
music.start(0, 0);
}
else{
if(shuffle == true){
songNum = Math.floor(Math.random()*(numTracks-1));
}
else{
songNum++;
if(songNum == songInfo.content.length){
songNum = 0;
}
}
loading = true;
playing = false;
paused = false;
select();
if(skipLoop == true){
skipLoop = false;
}
music.loadSound(songInfo.content[songNum].path, false);
}
}
//self explantory =)
function prevSong(){
songNum--;
if(songNum < 0){
songNum = songInfo.content.length - 1;
}
loading = true;
playing = false;
paused = false;
select();
music.loadSound(songInfo.content[songNum].path, false);
}
//this function controls the text in the info window and what actions the player will take next based on what button is pressed
this.onEnterFrame = function() {
dur = music.duration;
pos = music.position;
total = music.getBytesTotal();
loaded = music.getBytesLoaded();
//preloader
if (loading == true) {
if (music.getBytesLoaded() == music.getBytesTotal() and dur > 0){
loading = false;
playing = true;
music.start(0,0);
music.setVolume(vol_mc.slider_mc._x);
music.setPan((bal_mc.slider_mc._x-50)*2);
status = "playing";
pos_mc.slider_mc._visible = true;
}
else{
pos_mc.slider_mc._visible = false;
if(music.getBytesTotal() != undefined){
artist = Math.round(music.getBytesLoaded()/music.getBytesTotal()*100)+"% loaded";
}
else{
artist = undefined;
}
title = undefined;
status = "loading";
}
}
//updates the sound attributes (vol, bal, etc...) and displays their info in the text fields
else if (playing == true) {
vol = music.getVolume() + "%";
bal = music.getPan();
if(whichDrag != "pos_mc"){
pos_mc.slider_mc._x = (music.position/music.duration)*100;
}
music.setVolume(vol_mc.slider_mc._x);
music.setPan((bal_mc.slider_mc._x-50)*2);
titleArtist = songInfo.content[songNum].path;
title = songInfo.content[songNum].title;
artist = songInfo.content[songNum].artist;
music.onSoundComplete = nextSong;
} else{
titleArtist = undefined;
fadeOut();
status = "stopped";
}
//controls the scrolling of the playlist
if(scrolling == true){
if(playlist_mc._height > scrollWindowHeight){
percentScroll = (scroller_mc.slider_mc._y/(scroller_mc.scrollBg_mc._y + scroller_mc.scrollBg_mc._height));
scrollValue = scrollMax*percentScroll;
playlist_mc.target_mc._y = -(scrollValue);
}
}
//displays the time
if(timeWay == "forward" or timeWay == undefined){
trkInfo.setSeconds(music.position/1000);
trkInfo.setMinutes((music.position/1000)/60);
trkInfo.setHours((music.position/1000)/3600);
}
else{
trkInfo.setSeconds((music.duration -music.position)/1000);
trkInfo.setMinutes(((music.duration -music.position)/1000)/60);
trkInfo.setHours(((music.duration -music.position)/1000)/3600);
}
seconds = trkInfo.getSeconds();
minutes = trkInfo.getMinutes();
hours = trkInfo.getHours();
if(seconds < 10){
seconds = 0 + seconds.toString();
}
if(minutes < 10){
minutes = 0 + minutes.toString();
}
if(hours < 10){
hours = 0 + hours.toString();
}
trkHrs = Math.floor((music.duration/1000)/3600);
trkMin = Math.floor((music.duration/1000)/60);
trkSec = Math.floor((music.duration/1000) - (60*trkMin));
if(trkSec < 10){
trkSec = 0 + trkSec.toString();
}
if(trkMin < 10){
trkMin = 0 + trkMin.toString();
}
if(trkHrs < 10){
trkHrs = 0 + trkHrs.toString();
}
if(loading != true){
time = hours + ":" + minutes + ":" + seconds;
totalTrkTime = trkHrs + ":" + trkMin + ":" + trkSec;
}
else{
time = undefined;
totalTrkTime = undefined;
}
};
///////////////////////////////end onEnterFrame///////////////////////////////
//controls the play button
play_mc.onRelease = play_mc.onReleaseOutside = function() {
if(playing != true or paused == true){
if(loading != true){
if(paused == true){
seconds = pos/1000;
music.start(seconds, 0);
paused = false;
}
else if (loading != true) {
loading = true;
music.loadSound(songInfo.content[songNum].path, false);
//music.start(0,0);
}
}
}
};
//controls the stop button
stop_mc.onRelease = stop_mc.onReleaseOutside = function () {
//if(loading != true){
loading =false;
playing = false;
paused = false;
//}
};
//controls the pause button
pause_mc.onRelease = pause_mc.onReleaseOutside = function(){
if(playing == true){
if(paused == false){
pos = music.position;
music.stop();
//playing = false;
paused = true;
}
else{
seconds = pos/1000;
music.start(seconds, 0);
paused = false;
}
}
}
//controls the next button
next_mc.onRelease = next_mc.onReleaseOutside = function(){
if(loading != true){
skipLoop = true;
nextSong();
}
}
//controls the previous button
back_mc.onRelease = back_mc.onReleaseOutside = function(){
if(loading != true){
prevSong();
}
}
loop_mc.radio_mc.onRelease = shuffle_mc.radio_mc.onRelease = function(){
if(this._parent._currentframe == 1){
this._parent.gotoAndStop(2);
}
else{
this._parent.gotoAndStop(1);
}
if(this._parent._name == "loop_mc"){
if(loop == true){
loop = false;
}
else{
loop = true;
}
}
if(this._parent._name == "shuffle_mc"){
if(shuffle == true){
shuffle = false;
}
else{
shuffle = true;
}
}
}
//controls the sliders
vol_mc.slider_mc.slider.onPress = bal_mc.slider_mc.slider.onPress=pos_mc.slider_mc.s lider.onPress=function () {
whichDrag = this._parent._parent._name;
this._parent.onMouseMove = function() {
updateAfterEvent();
};
this._parent.startDrag(false, 0, this._y, 100, this._y);
};
vol_mc.slider_mc.slider.onRelease = vol_mc.slider_mc.slider.onReleaseOutside=
bal_mc.slider_mc.slider.onRelease = bal_mc.slider_mc.slider.onReleaseOutside=
pos_mc.slider_mc.slider.onRelease = pos_mc.slider_mc.slider.onReleaseOutside=
function () {
if(whichDrag == "pos_mc"){
if(pos_mc.slider_mc._x == 100){
pos_mc.slider_mc._x = 99.5;
}
newPos = (pos_mc.slider_mc._x*(music.duration/1000))/100;
music.stop();
music.start(newPos, 0);
}
whichDrag = undefined;
beenDragged = "pos_mc";
this._parent.onMouseMove = undefined;
this._parent.stopDrag();
if(bal_mc.slider_mc._x > 47 and bal_mc.slider_mc._x < 53){
bal_mc.slider_mc._x=50;
}
};
scroller_mc.slider_mc.slider.onPress = function(){
scrolling = true;
this._parent.startDrag(0, this._parent._x, this._parent._parent.scrollBg_mc._y,
this._parent._x, this._parent._parent.scrollBg_mc._y + this._parent._parent.scrollBg_mc._height);
}
scroller_mc.slider_mc.slider.onRelease = function(){
scrolling = false;
this._parent.stopDrag();
}
//controls the button that changes the time display from time elapsed to time left, and vice versa
timeButton_mc.onRelease = function(){
if(timeWay == undefined){
timeWay = "back";
}
else if(timeWay == "forward"){
timeWay = "back";
}
else if(timeWay == "back"){
timeWay = "forward";
}
}
stop();
Playing A Rtsp Protocol Stream With Flash Player
hi,
my question is about the support that flash palyer gives for streaming media from servers different from FMS.
In particular, my client asks for a player streaming audio from a rtsp protocol.
thanks everybody
;)
Flash Player Version For Recorded Stream Playback
I'm having difficulty to determine which flash player version is required by users when playing FLV files using the video object in flash (so no fancy FLV playback components). I've read that thare ar basically 2 codec for FLV files, Sorenson an On2, and that Sorenson is supported from Flash player 6 and upwards and On2 from Flash player 8 and upwards, but what codec is used when just playing flv files that were recorded by Flash Media Server and playing is in a "simple" video object.? Or can i just use the publishing settings and set it to player 6 and thats it? (To be absolutely clear: I am not encoding the flv files with an encoder, i just play back the flv streams recorded by Flash Media Server itself)
Custom Flash Video Player With Live Stream
Hello,
I'm building an custom flash video player with live streams. I hope someone can help me out with this.
How can i check if the live stream is online. Because if not, the video player has to play an flv file. Please help me with this.
it has to be as 2.
its really urgent. Thank you very much.
The live stream is with FMS.
Firefox/flash Player Video Stream Shudder Problem?
I have found on my site and a few others that the recent flash player on firefox (or recent update version of firefox) doesn’t stream flash movies properly - it jerks and shudders, when using good old setBufferTime property on video stream.
examples of what i mean:
http://www.ripe.co.uk/showreel
http://www.videocopilot.net/
If anyone has any knowledge why and what can be done to get around it, please feel free to share!
Thanks a million
Player Stopps While Playing Big "data Only" Stream
I developped 2 applications. The first one creates a "data only" (NS.send()) stream. The second one, running on a different machine plays it back. While recording the stream and playing it back live, everything worked fine. In order to replay the stream at a later time i chose the "record" option. In my Media Server Application Folder several up to 4 GB (8 hours) files were created. When I try to replay the recorded streams with my second application, the player halts after several seconds. I have to mention that the stream is not constantly filled with data, there may be gaps of several seconds maybe even minutes.
I get the following NS status notifications:
Netstream.play.reset
Netstream.play.start
(NS.myfunction invoked a few times)
Netstream.Buffer.full
(NS.myfunction invoked several times)
Netstream.Play.Stop (no reason)
(NS.myfunction invoked several times)
Netstream.Buffer.flush
(NS.myfunction invoked several times)
Netstream.Buffer.empty
Sound - Event Vs. Stream (stream Quality Problem)
Hey Guys,
I've got a flash piece with various MP3's that I have playing throughout. When I set it to stream within Flash, it sounds great. However when I publish the SWF and play it solely in the Flash viewer, the audio is significantly worse. If I go back into Flash and set the audio type to "event", it sounds great again. The problem is I need to keep the audio streaming.
Any suggestions on how to do this?
Thanks Much.
FMS 3 - Stream.play() For Recorded Stream Returns False
I have a custom app and when trying to playback a recorded stream using the Stream.play(streamName, startOffset, -1), the result returned is always false, below is some sample codes:
flvPlay = Stream.get("myFLVSession");
flvPlay.onStatus = function(info){
trace("> Status code: " + info.code + " Level: " + info.level + " Stream: " +info.details);
};
stat = flvPlay.play("myFLV", startOffset, -1);
When I prints out stat, it returns false, and the status callback will print:
> Status code: NetStream.Play.Failed Level: error Stream: undefined
Even if I try flvPlay.play("myFLV");, the return status is still false. However, the video will be able to continue playing, anyone face similar problem before?
The same application runs in FMS 2 with return status=true, but not in FMS 3, though the playback still can proceed, but it won't start at the offset I specified, and since the return status is false, why can the playback still proceed?
Thanks in advance for any pointer on this.
Can I Insert An Extra Audio Stream Into The Live Stream?
I have a project where I need to set up a broadcast (from pre-recorded files) so people can 'tune in' at a certain time to watch a show. Some of these shows should have a soundtrack, can I use SSAS to overlay an extra audio stream? So I would send one video and two audio streams out to the client as one stream.
Alternatively, can I use SSAS to replace the audio, so effectively demux the original audio off and send out a different audio stream in its place.
Thank you in advance for any advice.
Character Mouth Synching--stream Or Not To Stream?
Hi-
I was curious to see if streaming is preferred when synching mouths to voiceovers in an animation. I always chose "Event" by default, but find that it doesn't play well, particulalrly when the server is active.
I saw on Macromedia's site that to "stream or not to stream" depends on several factors and that it is a matter of trial and error.
Any advice?
Thanks!!
-Rob
STREAM From File, NO STREAM From Server Why?
I have a Flash Communication Server set up by (mt) for my site.
After using the fantastically-simple dinamically played .flv file, with progressive download, I wanted to try the real rtmp streaming.
I set everything as it has to be (in the client, there is no server code), and things appear to work: the NetConnection and NetStream objects give all the good status info.
BUT
No darn sound or image are output by the flash movie! If I try *echoing* all the NetStream properties it looks like it's completely dead (just as before using the .play() code).
what da hell!
by the way, I can see from my lan switch that the stream take place, because there is data passing through to my computer from the server.
Does anybody know why?
I tried all of these:
.play("mp3:mySong"); <-- returns an error;
.play("mySong.mp3"); <-- starts playing;
.play("mySong"); <-- starts playing;
.play("myVideo"); <-- starts playing;
.play("myVideo.flv"); <-- starts playing;
Can Stream LIVE, But Can't Stream FLV -=
Hi there. Pulling out my hair...and i'm bald enough already!
I built a FLA that streams live from the FME - works great.
Cannot for the life of me figure out how to use the FLVPlayback (or anything for that matter) to stream a regular FLV.
Any help would be SO helpful!!
My fms and flv set up - ... applications/playapp/play.flv (also put in streams folder and _definst_ folder with play.flv in there just in case)
in the source, I have tried all variations - but is currently: rtmp://edge2.xxx.net/playapp/instance1
It demands an instance name, even though I don't know how that works (i know i put the source in FME with that, but this is an already made FLV).
Sincere thanks -
adam
To Stream Or Not To Stream?
Hi,
I'm working on a project that includes a background music loop and I've tried various techniques for the sound both as a streaming sound and event loop. Both have caused me problems and I'm just wondering what the general consensus is on the best solution.
I'm loading the music.swf into a blankMC which resides in home.swf and I also have a volume/balance slider to control the sound.
I'm currently trying to use an event sound which has linkage but the linkage is making the whole movie wait while it forces the sound object to load first.
What's the best way of having background music without this delay?
Thanks
Mp3 Stream
I was trying out some streaming with sound
I thought that
_soundbuftime = 10
was going to make sure that when I stream a mp3, it buffers 10 seconds before it starts.
the mp3 is loaded into an empty mc.
when I test the movie and set the bandwidth to lets say 56K, should the sound wait for 10 seconds before it starts playing ??
btw, using MX here
END OF STREAM?
Hey I posted this link before at the MX forum but got no response so I'll try it in here...!
Is there some code that can detect the end of an mp3 stream and via AS tell a MC to start playing when the stream (a song) has finished?
THANKS
This is the code I use to start the stream:
on (release) {
stopAllSounds();
coolsound = new sound('containerMC');
coolsound.loadSound('http://www.mothersfinest.net/mp3/youlllikeithear.mp3', true);
coolsound.start(0, 0);
_soundbuftime = 4;
How To Stream Mp3's
I would like to have a button that when pressed will stream a 10mb mp3 file (say called documentary.mp3), without bringing up W Media Player, real or whatever the viewer uses to play mp3, what code would I need for the button?
thanks
Mp3 Stream
hello, is it possible to play a mp3 stream thruw flash ? and if yes, any examples ?
Stream
how do i stream audio, i read the other posts but i dont see the box with the choices in it
Stream
Hi,
I'm creating a site for a music artist, and I realized I only know how to get music to play in the flash player. But the right way to do it would be to stream the music so that people can hear the real thing through their own music players, but not be able to download it.
Can someone tell me how I get an mp3 to stream? Or where i can find information on how to do it?
Thanks
CD Stream
Why won't a file stream from a cd? I have a movie pulling in external swfs but it won't play them until the whole thing has been pulled off from the cdrom. The same files begin to play(stream?) immediately when I post them on the web. Any Answers? Thanks!
Stream A Swf
how can i stream a swf file with munic in it. i want it to start playing after it is 10% done loading. pleas help
ps. i cant put mp3s on the server.
Mp3 Stream
hi.. i need help on how i can load a mp3 streaming song without compromising the sound and is still fast to load or stream.. coz whenever i i put the sound into sync: stream, it loads fast but the quality is very bad.. but if i change it into sync: start, it has a very good quailty but, it laods slow.. I need help pls.. And i need to slp also.. thanks
Stream Mp3
I have a problem with soundbuftime. I used the search engine and found answers but cannot make this work. I would like to delay a mp3 for say, 6 seconds. this is one that is streamed. I have no problem getting the stream to work, but the soundbuftime is ignored. So can someone actually post a working example with falsh MX? I know catbert and iaskwhy have helped me with this in the past.
What is used in the main timeline frame is:
s = new Sound(this);
s.loadSound("filename.mp3", true);
_soundbuftime = 10; // buffer for 10 seconds The link is
http://www.flashkit.com/board/showth...t=soundbuftime
What's The Best Way To Stream?
Hi,
I was just wandering if anyone had any good tips on successful streaming or maybe someone could explain it to me a little bit?!
Ive just designed a website for our company that works pretty well as it is but i want to improve on it a little. My site is all about the animation from one piece of work to the other and instead of just jumping to a desired point ive animated things to make it smoother. But in doing so i think I may have shot myself in the foot for when I want to expand on the site and maybe make it bigger.
At the moment ive set up a main index page that contains all my navigational buttons and a blank movie clip that loads each of my sections. There are a number of frames within my index page that hold snap shots of of the site so that when i jump to a specific keyframe and load a movie there is no pause or brief blankness where the movie would load into a blank keyframe. Does that make sense?!! This is basically the way ive gone about streaming my site but im not sure that it's the right way to do things.
Can anyone please give me some advice? Is there some way of getting rid of all these snap shots so that when I load one of my movies into a keyframe there is no blank pause becuase it has no content? Has this got something to do with making the movie wait till it's fully loaded before playing?
p.s. if you want to look at the site here's the address to our test version.
www.vermilionuk.com/test
let me know what you think, any tips for improvement are welcome. This is my first site so go easy on me!!
--------------
Time is running out but only for those with clocks!
Stream A Swf.....not Flv
Hey guys,
I was wondering if any knows whether or not it is possible to stream a swf.
I know you can stream a flv. I have been trying to stream in a swf, but it doesn't seem to be happening.
Is this even possible?
Avi Stream?
what i know i cant make flash load anything but its own formats, so tell me if there is any way to stream avi from web of localy?
How To Stream A SWF (SWF To FLV)
Hi, this may be a ver noob question.
I am using Flash 8 and actionscript 2.0
I would like to get my swf streamed in order to avoid preloaders because my swf is a presentation and I would like it to start to run as soon as possible.
The swf is going to be on a web server and be played directly full screen in a flash player.
Somebody knows if I can stream the swf like a flv to smooth the waiting time
for start.
Thanks
Guillermo
Stream Flv From Fms
I am on a 1.5mb connection with a 7mb flv file on the fms server and the stream is awful. stop start stutter stutter.
It really is un-watchable.
I tried to increase the bufferTime to see if that would help but with no joy.
any help or advice very much appreciated
thanks
Paul
Stream Flv From Fms
I am on a 1.5mb connection with a 7mb flv file on the fms server and the stream is awful. stop start stutter stutter.
It really is un-watchable.
If i set flvPlayBack isLive to "true" then the flv want load. It will only load if isLive is set to false witch contradicts what the doc's say.
I tried to increase the bufferTime to see if that would help but with no joy.
any help or advice very much appreciated
thanks
Paul
How To Stream FLV With FMS
Hello!
Have installed FMS 2.0 on windows. I now want to load some flv files that I want to stream via rtmp://
How do I go about doing this? Where should I place the flv files? What would my path in rtmp://path be?
I want to embed the video in a html page and stream as rtmp.
Thanks!!
|