Results 1 to 12 of 12

Thread: Adding a music sample to a page??

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2004
    Posts
    110

    Adding a music sample to a page??

    I have .mp3 files I want to play to people but!! I dont want them to be able to download the song just listen to it, because they are custom made beats made by myself and I dont want people stealing them just sampling them. I've seen it done all over the web like at CDUniverse but I can't find any documentation on it. Can anyone help me out??

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Adding a music sample to a page??

    There are proprietary plug-ins that allow streaming of proprietary format, in an attempt to make it difficult to download the files.
    It's not possible using plain MP3s and typical plain software. While you can use these to make it difficult to the point where people without much computer knowledge are stumped, you can't make it impossible.

    Using the proprietary stuff, you can make it even more difficult. You can't make it impossible, however - the mere fact that the sound comes out of the speakers of the user means that it somehow got there and was decoded.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    Frenzied Member
    Join Date
    Jan 2001
    Posts
    1,374

    Re: Adding a music sample to a page??

    I was experimenting with this sort of thing recently. Try using an "EMBED" tag as follows:

    HTML Code:
    <HTML>
    <HEAD>
    <TITLE>Play MyTune</TITLE>
    </HEAD>
    <BODY>
    <EMBED src="MyTune.mp3" border="0" width="150" height="150">
    </BODY>
    </HTML>
    Create a HTML file and put an mp3 called "MyTune.mp3" in the same folder.

    I have only tried this on my local machine. I haven't deployed it to a remote server so I don't know whether the file is actually streamed or downloaded.

    As CornedBee suggested, any sound that goes through your sound card can be recorded.

    Let me know if you have any success with this.

    P.S. I couldn't get this to work in FireFox - only IE.

  4. #4
    Frenzied Member
    Join Date
    Jan 2001
    Posts
    1,374

    Re: Adding a music sample to a page??

    I tested this on a remote server and it simply downloaded the file and played it through the browser so probably not what you're looking for....

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jul 2004
    Posts
    110

    Re: Adding a music sample to a page??

    Correct, I'm looking for something like this. Notice you can click listen in Windows Media Player or Real Player. That's what I want.

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Adding a music sample to a page??

    But even that isn't too hard to get. I'm listening to a sample with a command line player right now, and grabbing the file for offload listening would be a matter of a single command line switch. They can do this because only short samples are uploaded; they couldn't do it with the complete files.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Jul 2004
    Posts
    110

    Re: Adding a music sample to a page??

    Any suggestions then?

  8. #8
    Fanatic Member kaihirst's Avatar
    Join Date
    Jul 2005
    Location
    The Resaurant At the End of The Universe
    Posts
    633

    Re: Adding a music sample to a page??

    Hi,

    Right then

    2 choices on this matter.

    1. Either use an activeX plugin on your page. 9youll end up coding it forever..)

    2. use playlist files that point to your fiel on your server. then they simply cannott save the file, but will ahve to download the playlist (not the file) to play the clip in their music player of choice. Even when the playlist is downloaded, the ycan t get to the file to save it..

    This is how MSNmusic work and how we secure public viewing files for a music commerce project we are running.

    Simple really. Playlists are creted in teh music player of choice, saved to your root directory onyour web server, then linked Hrefs... EASY PEASY!!!

    Even if they save the playlist, they cant play the Bas*tard as theyve no directl link to your server, as as soon as the player has finished the binary buffer transferr, it diconnects itself.... You gotta lvove Language disconnectiveness....


    Rate me for this!!

    Hope this helps

    Kai
    As the information I give is useful in its nature, consider using the RATE POST feature located on the bottom left of this post please..

    A few things that make a good Developer a Great One.
    Methodical and a thorough approach to research and design inevitably leads to success.
    Forward thinking is the key to Flow of control.
    Never test in the design environment, always test in real time, you get the REAL results.
    CBSE & OOSE are the same animal, they just require different techniques, and thinking.
    SEO is a globe of objectives, SE rankings is an end to a means for these objectives, not part of them.
    The key to good design is explicit attention to both detail and response.
    Think Freely out of the "Box" you're in..... You will soar to better heights.

    Kai Hirst - MSCE, MCDBA, MCSD, MCP, MCAP, MSCT


  9. #9

    Thread Starter
    Lively Member
    Join Date
    Jul 2004
    Posts
    110

    Re: Adding a music sample to a page??

    Would you mind helping me figure it out for Windows Media Player? I am a little inexperienced with it. =P

  10. #10
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Adding a music sample to a page??

    I suggest broadcasting your music using ASX files (which stores a location to the track) so that the user only gets the tiny ASX file, and nothing else.

    Check out this article from MS:

    http://www.microsoft.com/windows/win...webserver.aspx

  11. #11
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Adding a music sample to a page??

    Quote Originally Posted by kaihirst
    This is how MSNmusic work and how we secure public viewing files for a music commerce project we are running.

    Even if they save the playlist, they cant play the Bas*tard as theyve no directl link to your server, as as soon as the player has finished the binary buffer transferr, it diconnects itself.... You gotta lvove Language disconnectiveness....
    That's exactly what this site does for the samples, and it's still easy to grab: all you need is a player like mplayer, which can contact the server and dump the data to a file.
    And of course you bind yourself to the Windows platform - is there a WMP for Mac?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  12. #12
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Adding a music sample to a page??

    Yeah, there's a WMP 9 for Mac OS. Who'd've figured.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width