Imoracle
06-04-2008, 07:26 AM
Hello All,
The quest for making mp3 player perfect continues. As discussed before I am facing following two problems with my mp3 player: (I have attached the code for a single button player I made for my site)
1. When I play a song, the song starts buffering from a remote site. Now suppose you pause the song, the song keeps buffering. But as soon as the song buffering is complete, the player starts playing the song from where it left.
Probably there is an event sent out when the buffer completes which activates the song playing again. But I don't know how to rectify this.
2. Another problem which I am having and is a MAJOR issue, is that, if my user have a download manager configured with the browser. My player instead of playing the song, starts the download. Now I surely don't want this to happen with my user's personal compositions. Over this I am unable to understand how can I stop this from happening.
May be some header information needs to be sent out.
Can someone please see to my code attached with this message and suggest some solutions to the problem ?
Any other suggestions or corrections are also welcomed.
If attachment doesn't works correctly, download the code for mp3 from here
http://tinyurl.com/5t8qdj
Thanks in advance,
Imoracle.
The quest for making mp3 player perfect continues. As discussed before I am facing following two problems with my mp3 player: (I have attached the code for a single button player I made for my site)
1. When I play a song, the song starts buffering from a remote site. Now suppose you pause the song, the song keeps buffering. But as soon as the song buffering is complete, the player starts playing the song from where it left.
Probably there is an event sent out when the buffer completes which activates the song playing again. But I don't know how to rectify this.
2. Another problem which I am having and is a MAJOR issue, is that, if my user have a download manager configured with the browser. My player instead of playing the song, starts the download. Now I surely don't want this to happen with my user's personal compositions. Over this I am unable to understand how can I stop this from happening.
May be some header information needs to be sent out.
Can someone please see to my code attached with this message and suggest some solutions to the problem ?
Any other suggestions or corrections are also welcomed.
If attachment doesn't works correctly, download the code for mp3 from here
http://tinyurl.com/5t8qdj
Thanks in advance,
Imoracle.