Results 1 to 6 of 6

Thread: Recording and playing sounds

  1. #1
    Join Date
    May 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Recording and playing sounds

    is it possible to do that with javascript?
    I have to record voice and other sounds from a website
    i know it can be done with java, and applet java but i need to do that with simple javascript code to make it run on every recent browser without install any other programs or applications (like jvm or a client program).

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Impossible.

    A plugin is the only way forward for you here. Java would be easiest, but I think Flash has support for audio and video input too.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    May 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    also with php or similar? sorry if it isnt the php forum

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    PHP cannot be executed in a web browser. If it could, it would require a plugin.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Actually ...

    Actually there is a way. Goto mozilla developer center and there are two projects running for Javascript1.5 called Rhino and spidermonkey. spidermonkey is javascript implementation with c where as Rhino is js implementation with java. As everyone knows necessity is the mother of inventions I think that your necessity will invent that system in javascript. You can download the source code but I am not sure my idea works.

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    As much as I applaud your dedication to enticing in more developers, if something like this isn't in there already, it's probably for good reason.
    Simply put: when would you ever need to use sound-recording functionality in a webpage? Heck, I don't even play sounds on my pages or those I visit. (X)HTML-embedded Javascript is intended to be a light-weight language -- more to add flexibility to HTML than anything else. I daresay libraries and bindings to do this kind of thing already exist; however, it's not likely to ever be implemented in a browser.
    It is for the less-common scenarios, like this, that applets were invented.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

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