
01-11-2009, 18:53
|
|
מנהל
|
|
חבר מתאריך: 26.07.08
הודעות: 6,473
|
|
אגיד לך מה אני חושב שזו הבעיה..
כיוון שאנו לא יכולים להסתכל על תוכן הפלאש, אז הדרך היחידה לבצע debug היא עם sniffer כמו wireshark.
אז עשיתי את זה, ואלה הפלטים שמצאתי:
עבור קובץ בסיומת pls (הקובץ שלך):
קוד:
///---------------------- The Request
GET /listen.pls HTTP/1.1
Host: 195.189.140.130:8000
User-Agent: ...
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
///---------------------- The Reply
HTTP/1.0 200 OK
content-type:audio/x-scpls
Connection: close
[playlist]
NumberOfEntries=1
File1=http://195.189.140.130:8000/
עבור קובץ בסיומת mp3 (זה שבדוגמה בעמוד ששוביD הביא לך):
קוד:
///---------------------- The Request
GET /assets/mp3/unofficial-yahoo-song.mp3 HTTP/1.1
Host: www.labnol.org
User-Agent: ...
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: ...
///---------------------- The Reply
HTTP/1.1 200 OK
Date: Sun, 01 Nov 2009 16:44:28 GMT
Server: Apache
Last-Modified: Wed, 06 Feb 2008 08:14:13 GMT
ETag: "52f82d7-bb53-44578f143ff40"
Accept-Ranges: bytes
Content-Length: 47955
Keep-Alive: timeout=2, max=100
Connection: Keep-Alive
Content-Type: audio/mpeg
[The MP3 file content is here]
מסתבר שהנגן של גוגל (ושאר הנגנים) לא מבינים תוכן מסוג audio/x-scpls, שזה תוכן לציון רשימת שירים.
אלא הנגנים רוצים את התוכן של הקובץ שאותו אתה רוצה לנגן, במקום רשימה...
אז תנסה עם קובץ MP3 ותראה אם מצליח.
|