any one with an idea of how to embed a player such as VLC on my page. or else how can people play music that is within my server..any resources such as sites or books on how to do this will be highly appreciated..

Dani AI

Generated

Thread context: asked about embedding a player (VLC) or letting visitors play music from the server. pointed to Flash/JS players and HTML5; @Almostbob’s DaniWeb example implements a file-list player.

Embedding the VLC browser plugin is no longer a practical option: it depended on NPAPI-style plugins that modern browsers have dropped. A future-proof approach is the HTML5 audio element plus a small JavaScript player for consistent controls, playlists, and skins. MP3 is the safest single-file format for broad compatibility; adding Ogg/Opus or AAC as alternate sources increases coverage across browsers.

A minimal progressive-download setup looks like this:

<audio controls preload="none">
  <source src="track.mp3" type="audio/mpeg">
  <source src="track.ogg" type="audio/ogg">
  Your browser does not support the audio element.
</audio>

Practical tips and gotchas:

  • Servers must send correct MIME types and support byte-range requests (Accept-Ranges) to allow seeking; most web servers do this by default.
  • Cross-origin hosting requires CORS headers on the media files.
  • Mobile browsers often block autoplay; playback usually needs a user gesture.
  • For many simultaneous listeners or live streams, use a streaming solution (Icecast/Shoutcast) or chunked streaming (HLS/DASH) rather than serving raw files.

For a ready-made player with skins and fallbacks, libraries such as MediaElement.js wrap the HTML5 element, provide consistent UI, playlist helpers, and easy CSS customization (MediaElement.js). For reference on the element and browser behavior, consult the spec and documentation (MDN audio element).

Recommended Answers

All 3 Replies

I guess the most popular way to do this is to use flash.
Check out for example .
Also:

FREE Flash MP3 Player

Good luck!

thanx, but is there no other way apart from this because by using flash am limited to the extensions they can play and to there own skins

You also can try JavaScript players. But I guess you still be limited to certain extensions... I haven't seen any "universal" player so far.
You can check this topic. Almostbob gives a code of a player with a files list.

If you don't need IE support, you might check HTML5 advantages for playing media.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.