473,811 Members | 3,256 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can I use AJAX to keep a musicplayer on a site?

31 New Member
Hello all, thanks in advance -

I want to put a music player on a site, I will make it in flash.
The site is in a LAMP environment. I want to have the music player in the main navigation section. My issue, I do not want to have the music player be reloaded everytime you click a new link. And I don't want to use frames in the site, and i don't want to use flash anything other than the actual music player (no flash made website)

I was thinking i could use AJAX to load the new content on everypage and leave the header (navigation and music player) alone. I this a good use of AJAX? Can someone explain how about I would go about doing this? Is there a simpler way s/o can share with me.

Thanks for all the advice
Frank
Nov 2 '07 #1
4 2331
Ferris
101 New Member
hi

if you know the playlist and you just want to play songs one by one, you needn't use AJAX. You can simply save songs' address in an array, when the media player's status changed(from 'play' to 'stop'), it will fire an event, then you can reload the new address into media player using javascript.


if you don't know the play list,you need to use AJAX to get new song's address, and then, reload the new address into player using js.

but the player in different browser has different code to write. which player do you use? Windows Media Player?

hope it helps.
Nov 3 '07 #2
recordlovelife
31 New Member
hi

if you know the playlist and you just want to play songs one by one, you needn't use AJAX. You can simply save songs' address in an array, when the media player's status changed(from 'play' to 'stop'), it will fire an event, then you can reload the new address into media player using javascript.


if you don't know the play list,you need to use AJAX to get new song's address, and then, reload the new address into player using js.

but the player in different browser has different code to write. which player do you use? Windows Media Player?

hope it helps.

My problem isn't making a music player. It how to keep my music player playing when someone clicks a new link on the page. This is cause the player to reload (interupting the player).
Nov 3 '07 #3
acoder
16,027 Recognized Expert Moderator MVP
In that case, yes, you can use AJAX to keep the music player running.

See this example.
Nov 3 '07 #4
Ferris
101 New Member
My problem isn't making a music player. It how to keep my music player playing when someone clicks a new link on the page. This is cause the player to reload (interupting the player).

Hi

I'm sorry to make you puzzle. I knew your problem is not making a music player. What I told you before was 2 different ways to solve your problem in 2 different situations.

situation 1: you know the play list.

you needn't use ajax.you can just use array to store your list and use javascript to control your player.

situation 2: you don't know the play list.

you need use ajax.see the example given by acoder.


hope it helps.
Nov 4 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1378
by: =?Utf-8?B?TWljaGFlbCBkZSBWZXJh?= | last post by:
To all, I'm trying to use ajax in my web site project but everytime I hit the button on my webform the whole page posts back. The label control that I have in my update panel does what it is suppose to do without effecting any other controls outside the panel. Can you guys provide any insight? Please keep in mind that I'm trying to update an existing website and did not start a whole new project by using the template called, "ASP.NET...
3
11107
by: =?Utf-8?B?bWNpbWFnaW5n?= | last post by:
We have recently applied AJAX to our web site, nothing particularly fancy, just some update panel, progress images and collapsible panels, just the basics to improve the user experience. The project has gone fantastically well except we have ran into a strange error when accessing the site from inside of one of our client networks. All the pages load fine without any problems, but if you try and press any buttons on an AJAX enabled...
3
1662
by: Victor | last post by:
hi I just get a problem. in my site all my menu is using Ajax(like the componentart menu). but the website is heavily rely on the web search engine to promote(like Google bot). I think most of the web search engine use a web spider to go through your site. It seems the Ajax menu will screw up this. Is anyway to solve this issue(keep the Ajax menu and make my site available to the engine)? Cheers Victor
3
1860
by: randommale9999 | last post by:
I was wondering how people are able to create ajax applications like star ratings scripts without having bots hit the scripts. I have a star rating script on my site which was getting hit by bots. After I put in rel="nofollow" into the link part that cut down on the nice bots but I just started getting hit by some bots again. I have had a good amount of experience dealing with bots in the past with them sumitting my forms that were open...
2
4288
by: Nathan Sokalski | last post by:
I am moving my website from my machine to my webhost, and need some help with what extra files I need to include due to the fact that I used AJAX in my site. Everything on the site is obviously functioning as desired when I test it on my machine using Visual Studio 2005. From what I have determined, the files I am forgetting are the JavaScript files from the Microsoft AJAX Library (See "To install Microsoft AJAX Library" at the bottom of...
10
3078
by: =?Utf-8?B?WWFua2VlIEltcGVyaWFsaXN0IERvZw==?= | last post by:
controlsPlease could some of you here post some of your live examples of AJAX (esp drag panels, collapsable panels, and popup menu.) (It's one thing to talk about how great something is, but it's another to really see how great something is.) Thanks -- Share The Knowledge. I need all the help I can get and so do you!
4
1464
by: JJ | last post by:
Just considering my first ajax enabled site.... I notice that Ajax is 'compatible with most modern browsers'. What do you more experienced ajax users do when it comes to older browser compatiblity? i.e. don't worry about it / warn the user / code for older browsers also; Thanks, JJ
6
1556
by: Jonathan Wood | last post by:
Greetings, I'd like to implement some AJAX features on an existing ASP.NET site. I have one example of doing this but, otherwise, don't know much about it. I have one question, though, about getting started: I notice that there are project templates for creating AJAX this and AJAX that. I'm a little confused about this. Am I not able to add AJAX features to an existing Web form? Why is it necessary to select an AJAX form or whatever?
4
1408
by: FutureShock | last post by:
This is not a PHP related question, but a question focused to PHP developers. Sadly enough I just started looking at the functionality using AJAX procedures. All my sites have been 100% PHP with the only javascript being used for user chosen hint boxes and date choices using a pop-up calendar. I was taught early on not to develop any site that requires javascript for its basic operation. I think from most posts that most PHP coders
0
10651
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10393
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10405
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10136
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7671
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5556
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5697
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4342
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3020
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.