Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Flash 8 MP3 stream

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Flash
View previous topic :: View next topic  
Author Message
mondoshawan



Joined: 21 May 2004
Posts: 12

PostPosted: 20.07.2007 10:03    Post subject: Flash 8 MP3 stream Add user to your forum ignore list Reply with quote

Imam Mp3 na Serveru i sa ovako krenem stream


Code:
   var Audio1:Sound = new Sound();

   Audio1.loadSound("Opener.mp3", true);
   Audio1.setVolume(60);
   Audio1.start();



Cudno je da mp3 kad krene stream je mnogo sporo glasovi su u dubljoj frequenziji nego originali. To snaci da mp3 mnogo sporije igra .... to dosada sam poznavao od Kasetofona Wink

hvala vam unaprijed
Back to top
View user's profile Send private message
Vj3k0



Joined: 12 Jul 2007
Posts: 185
Location: Zagreb

PostPosted: 20.07.2007 10:32    Post subject: Add user to your forum ignore list Reply with quote

Možda da probaš ovako:

Code:
var soundReq:URLRequest = new URLRequest("Opener.mp3");
var Audio1:Sound = new Sound(soundReq);
var Vol:SoundTransform = new SoundTransform();

Audio1.addEventListener(Event.COMPLETE, onComplete);

function onComplete(event:Event):void
{
Audio1.play();
Vol.volume = .6;
}


Mislim da bi to bilo to. Pozdrav!
Back to top
View user's profile Send private message Visit poster's website
mondoshawan



Joined: 21 May 2004
Posts: 12

PostPosted: 20.07.2007 10:46    Post subject: Add user to your forum ignore list Reply with quote

Nazalost mi dolazi greska:

da nemoze naci "URLRequest"
Back to top
View user's profile Send private message
segen



Joined: 19 Dec 2006
Posts: 671
Location: ZG <-> ST

PostPosted: 20.07.2007 10:56    Post subject: flash Add user to your forum ignore list Reply with quote

Nemože vjerovatno jer je URLRequest relativan, ja bi proba stavit absolutni URL sa "http://www.mojastranica.com/moj.mp3".
To bi trebalo radit, osim ako ne radi Smile

_________________
NEW ∞folija∞ Follow me
Ovaj svijet je samo varka!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger Twitter profile
mondoshawan



Joined: 21 May 2004
Posts: 12

PostPosted: 20.07.2007 11:29    Post subject: Add user to your forum ignore list Reply with quote

Ne radi ni tako.

Nepoznaje URLRequest kao methodu.
Mozda Flash8 nema najnoviji Actionscript.
Back to top
View user's profile Send private message
segen



Joined: 19 Dec 2006
Posts: 671
Location: ZG <-> ST

PostPosted: 20.07.2007 12:31    Post subject: stream Add user to your forum ignore list Reply with quote

Evo ovako.

Streaming u Flash-u je moguće jedino ostvariti uz server-side tehnologiju kao što je Flash Communication Server.
Naime "Streaming" je kada se mp3 ne stavlja u cahe nego ide direktno sa servera i ima neki svoj buffer i moguće je pokrenuti zvuk odmah, to Flash nemože bez gore navedenog.

Šta Flash radi je progressive download koji downloada linearno i tek kada je određeni dio fajla loadan moguće je pokrenuti reprodukciju samo iz te točke.

Pazi ovo: "Audio1.loadSound("Opener.mp3", true);"

true bi bilo za progressive download, što znači da čim nešto downloada da krene reprodukcija.

Audio1.start(); neće radit jer možeš samo koristiti stop(); i ništa više kada je progressive download "true".




To je razlog zašto ti se događa da ti je zvuk kao na starim kazetofonima.[/i]

_________________
NEW ∞folija∞ Follow me
Ovaj svijet je samo varka!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger Twitter profile
indigo_child



Joined: 28 Jan 2007
Posts: 58
Location: Right here, right now!

PostPosted: 20.07.2007 13:42    Post subject: Add user to your forum ignore list Reply with quote

Digni kvalitetu Mp3, previse si kompresirao to za flash, mislim da ti je to problem, probaj staviti recimo 128kbps i probaj onda mislim da ce ti biti ok.

poz

_________________
Hello!
Back to top
View user's profile Send private message
Jurica



Joined: 17 Sep 2005
Posts: 90
Location: Croatia

PostPosted: 20.07.2007 14:34    Post subject: Ja imao sličan problem Add user to your forum ignore list Reply with quote

Vrlo sličan problem...

Meni je ili sproo ili bilo jako ubrzano, kao da pitch dignše više... e sada ono što je meni upalilo je... to da Flash ne potrdažave sve bitratove od mp3, tako da ih staviš na nešto standardno.. i onda bi ti trebalo raditi.. dakle presempliraj ih...

"Adobe Flash can handle most standard mp3 encodings with any bitrate. However, some mp3 encoders use "non-standard" encoding techniques that Adobe Flash can not handle... Namely the MP3-PRO encoding scheme. When a file is encoded with the MP3-PRO setting the file seems to play too fast and makes the audio sound as if it were made by chipmonks. The solutions is to re-encode your mp3's with a standard MP3 codecs"

Dakle bitno:
- Ensure that the frequency rate is a multiple of 11,025:
- 11,025 kHz
- 22,050 kHz
- 44,100 kHz
- e.g 48 kbps is not good

_________________
www.euroart93.hr - otvoreno
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Vj3k0



Joined: 12 Jul 2007
Posts: 185
Location: Zagreb

PostPosted: 20.07.2007 15:23    Post subject: Add user to your forum ignore list Reply with quote

mondoshawan wrote:
Ne radi ni tako.

Nepoznaje URLRequest kao methodu.
Mozda Flash8 nema najnoviji Actionscript.


Joj oprosti, moja greška. Ovo je AS3.0 podržan u Flash CS3, nije za Flash 8. Nisam vidio.
Back to top
View user's profile Send private message Visit poster's website
segen



Joined: 19 Dec 2006
Posts: 671
Location: ZG <-> ST

PostPosted: 20.07.2007 17:11    Post subject: Re: Ja imao sličan problem Add user to your forum ignore list Reply with quote

Jurica wrote:

Dakle bitno:
- Ensure that the frequency rate is a multiple of 11,025:
- 44,100 kHz
- e.g 48 kbps is not good


44,100 kHz Ovu bi izdvojio kao najbolja solucija.

_________________
NEW ∞folija∞ Follow me
Ovaj svijet je samo varka!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger Twitter profile
djankey



Joined: 22 Nov 2006
Posts: 128
Location: zg

PostPosted: 20.07.2007 18:01    Post subject: Re: Ja imao sličan problem Add user to your forum ignore list Reply with quote

Jurica wrote:
Dakle bitno:
- Ensure that the frequency rate is a multiple of 11,025:
- 11,025 kHz
- 22,050 kHz
- 44,100 kHz
- e.g 48 kbps is not good
Samo se drzati toga. I ja sam dosta davno imao problema sa time, ali sam nasao na netu ovo gore. i sve OK

_________________
http://www.as-flash.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Flash All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group