Shockwave won't play linked Director files from server

I created a bunch of director files for the course content of my  class. All can be accessed from a contents file. When I created an html  contents file on my desktop (in the same folder as the linked director  files), the contents pages would open in shockwave in my browser (both  Firefox and Safari) and then by clicking on a link other director files  would open and play. However, when all these files were place on our  server (in the same folder), only the contents pages would open and we  get an error message saying the dirctor files cannot be opened. I think  this means it sees them, but can't open them.
Help!

Hi Sean
   sorry if my e-mail was a bit whiney, but I got a bit frustrated, 
having tried to use the Adobe website for help and then trying for 
help over the phone. Adobe has this nice thing where they will call 
you back instead of you sitting on hold, which I used at first, but 
you get called back by a machine, not a person, then you subsequently 
get a progression of robocalls with nobody on the other end! I 
finally just sat and waited and got a person, who seemed 
knowledgeable and nice, but couldn't help me without a payment. So, I 
would greatly appreciate any help you could provide!
       What I have is this. I constructed a "book" in CD form for my 
class. This is based on CDs that Mike Coleman and I published a few 
years ago. A picture of the contents page is shown below. Each topic 
is in a separate Director file, each with its own casts. We made a 
lot of animations, some in Flash and some in Quicktime that appear in 
each topic. I redid everything in Director 11.5, changing text 
spacing because of the way things get altered when things get played 
in Shockwave! When I click on one of these subtopics, the 
corresponding Director file opens. I accomplished linkage this by 
appending a behavior to the text, "Play Movie X". I then originally 
made a projector file of the contents page and distributed the CD to 
my class free (textbook prices are getting out of hand). Now I want 
to put it on the web, because I'm tired of burning CDs and we're 
getting students from other locations taking the course on-line. So 
within the folder on my desktop that held all the Director files, I 
made a second folder "dswMedia" into which I placed all the 
animations. I also linked all the animation casts to the Contents 
Director file. I then constructed a Contents.html file and 
Contents.dcr file using the Publish commands in Director. When I 
click on the Contents.html file within my main folder (the one 
holding all the Director files and the dswMedia file) the page opens 
nicely in my browser (Firefox) and I can play all the Director movies 
by clicking on each topic. All the animations play beautifully. 
Great , I thought, I'm in business. I then took the files to our 
media guy who put it on the server, in the same form as on my 
desktop. If we click on the Contents.html file through the web it 
opens. Clicking on a topic does not open that Director Movie. The 
error message is not that it can't find the movie, however, but that 
it can't open it. Everything works just fine on our media guys 
computer,  we only have a problem when we attempt to use this stuff 
through the web. (Our web guy's computer does not have Director, so 
that's not the issue).
      Any guidance would be greatly appreciated!
         Regards
                Paul

Similar Messages

  • Audio won't play on MPEG files from camera?

    I'm having issues with my new video camera. I want to use my final cut express to edit the videos, but the audio on the video files won't play. The videos play just fine, just no sound. I've turned the volume all the way up on my mac, but still nothing.
    Any suggestions to make the audio work?
    (I'm not the most familiar with computers, so simple/specific instructions would be best)

    You have to separate out the audio and video tracks (referred to as "demuxing") of an MPEG-1 or MPEG-2 file before you import it into FCE. Try MPEG StreamClip to convert the MPEG files into an editing format (DV Stream, for instance). If your camera outputs MPEG-2, you'll also need the MPEG-2 Playback Component.
    Hope this helps.

  • Premiere Elements 4 audio won't play on mp4 files, codecs missing/unavailable on .mov files

    I dowlnloaded Premiere Elements 4, and when I import mp4 files, the video plays but the audio will not. I've also tried to import .mov files, and an error message pops up that says "Codec missing or unavailable." I downloaded the latest version of Quicktime, but that didn't change anything. The files will play back on the video camera, but I"m having trouble with them on my computer. The audio on the mp4 files plays in Quicktime, but not the video, and vice versa when I import them into Elements. Any suggestions?

    Does Quicktime Pro also edit .mov files on a PC?
    Date: Wed, 27 Nov 2013 07:53:14 -0800
    From: [email protected]
    To: [email protected]
    Subject: Premiere Elements 4 audio won't play on mp4 files, codecs missing/unavailable on .mov files
        Re: Premiere Elements 4 audio won't play on mp4 files, codecs missing/unavailable on .mov files
        created by Steve Grisetti in Premiere Elements - View the full discussion
    Premiere Elements 4 pretty much works with tape-based digital video. That would be video from a miniDV or HDV tape-based camcorder. It doesn't handle other formats very well.
    If you plan to edit MP4s, you definitely want to upgrade to a more current version of the program. If you can't install a current version of the program, you may need to address issues on your computer (such as an outdated operating system or underpowered hardware configuration).
    Short of that, you could buy Quicktime Pro from Apple for $29. It will edit MP4s, even on a PC platform.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5879880#5879880
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5879880#5879880
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5879880#5879880. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Premiere Elements at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Ipod Nano won't play any songs downloaded from MySpace pages...

    My first generation Nano was initially sent back to Apple due to the battery losing it's charge to quickly. They sent me back what appears to be a replacement Nano and now this one won't play any songs downloaded from MySpace pages of bands, shared from friends (unprotected mp3 files) or otherwise downloaded from the internet.
    Whats unusual is that any songs imported from a CD to the Nano play fine as do any songs purchased from iTunes. I know Apple has stated that any files the user wishes to play on their iPods will play as long as the format is compatible. (All of these songs in question played on the original Nano and the problems started when they said they fixed it and sent it back (although it is missing the engraving which to me indicates they gave me a refurbished Nano). My Applecare runs out in mid-October so I need to figure out what is wrong. I sent it back a second time and they told me they couldn't recreate the problem so they just updated the software and sent it back.
    Someone suggested that some iPods have a part of the firmware activated (which Apple may have been testing) that prevents any non-ITunes store music or music no t off an original CD to fail to play.
    When attempting to play downloaded songs from sites like Purevolume and MySpace the iPod plays for a few seconds then shuts down and restarts itself, all of these songs worked fine before Apple took it in for service.
    Any suggestions?

    Hello,
    I have exactly the same problem. It`s so annoying.
    I did a little bit research on this discussion board and this problem seems to be known for quite a long time. It`s confusing me Apple is not able to fix that prob or give customers quick introduction to resolve the prob.
    I am currently on vacation in Florida and just bought the new iPod 30 Gig. I transfered already songs from my music cd. That worked fine.
    I bought 2 music video files, synced them with no error to the iPod, but it only shows me a black screen when I want to start the video on the iPod itself. itunes plays the files with no problem.
    Any ideas how to fix it??
    DELL Latitude D800   Windows XP Pro  

  • Quicktime won't play my .mov files since I upgraded to Mavericks.

    Quicktime won't play my .mov files, even those from an iPhone, since I installed Mavericks.  "Tell Me More" doesn't tell me anything about a solution.  Any suggestions?

    What do I do?
    Frankly, if you have deleted the original movie clips from your camera/camcorder and iPhoto, then it sounds as if you are up the proverbial creek without a paddle and there is nothing further that you can do.
    Some facts:
    For some reason, the movieclips are awful small (13-30 KB).
    640 x 480
    Codecs: H.264, AAC
    While these facts are of little value without file duration information, as you yourself have already noted, the file sizes quoted are extremely small. A typical VGA H.264/AAC file of reasonable quality would normally have a combined total data rate in the 700 to 1,700 Kbps range depending on specific settings, profile, and level of the encoding software and could be even higher or lower depending on the quality levels required. Therefore, it is reasonable to assume that files in the 13 to 30 KB range only contain 104 to 240 Kbs and either have durations measured in fractions of seconds or do not actually contain enough data to be played. (E.g., the video data may be missing or the file is corrupted.) Thus, it is most likely that something was wrong with the workflow used to "export" your files to the external drive and when you ignored the fact that the files were not playing correctly, you closed the door on anything that you could do when you deleted the source files. (I.e., the normal workflow here is to copy the entire iPhoto library to the external drive, switch libraries, confirm the new library is working properly and only then delete the boot drive copy of the iPhoto library.)
    OBS: When I try to convert the files into something else (AVI, MP4 whatever) either it comes with an error, nothing happens or the converted file wont open. This happens with various convert-programs.
    If the data in the files is missing, then there is nothing to be converted by any application.

  • How do i make it so iTunes plays the music files from where i have chosen to store them?

    how do i make it so iTunes plays the music files from where i have chosen to store them as opposed to it scattering copies of my files into a myriad different folders based on the albums they came from when i'm not even interested in keeping whole albums?
    I recently converted myself to mac after having been a windows formatted person since the beginning of time. I use last.fm and the client scrobbler only supports iTunes on the mac (scobbling since Nov 06 and i'm now heavily dependant upon it as a means of discovering new music) - if you don't know what that means then take it for granted i have no option other than to use iTunes as my media player whn using the mac. And almost immediately upon using iTunes i was filled with horror.
    My tale of woe as follows: I copy all my mp3 files to folder X on my new mac. I copy my simple playlist in to that same folder X. The simple playlist simply lists all the files in folder X in the order i want to hear them in... simple right? And what happens the moment i start playing my simple list? Well you probably all ready know; itunes throws copies of all those files in to the air, scatters them to the four winds so each of them fall into a little folder of their own representing the album they might once have come from. I don't keep whole albums. For me the 'album experience' is a ruse to trick one into listening to weaker material. I only keep the concentrated goodness. I only put up with albums in a previous lifetime because in the days of vinyl i had no other choice apart from spending hours compiling mix tapes. Now i am liberated from these restrictions and have been for the 15 or so years i've been using a computer to listen to music. Until along comes iTunes forcing me backwards in time, frog marching me back into the past.
    That simple list i mentioned is my one and only playlist. This single playlist has been evolving for 15 years as tracks are added and removed and their position in the list changes because that song sounds amazing when heard after that other song whereas hearing this song after that song would be like pouring custard over your sausages (for me shuffling is an abomination). And so here is how i've managed this list and managed synchronization of said list and listed files with my mp3 player (currently a Zen).
    Adding a new file: After deciding that song is a keeper i will copy it into that simple folder that holds all my music and drop it in to a position on the list i deem most suited for it. Incidentally over this entire 15 year (i'm pretty sure it's been around that long) my media player has been winamp but for the reason previously mentioned i am unable to use winamp in mac world.
    Removing a file: fortunately winamp has an option to simultaneously remove a file from the list and the hard drive. And naturally so because after all if i no longer like a song then i want it expunged completely from life or at least from my hard drive and playlist. In the brave new world of iTunes i have to remove from the list there then delete the file from where iTunes copied it from and then the place iTunes copied it to.
    Editing the list: drag an item in the list to it's preferred location and select to save it as i would for any other file using any other application... well desktop type application as opposed to one that uses a database as its primary means of storage.
    Syncing with the mp3 player: copy drag drop playlist file from the simple folder on the hard drive to the simple folder on the mp3 player as i would for any other file. And then also copy drag drop the most recently created files from simple folder on hard drive to simple folder on player after having ordered them by creation date so as to make it easier to select the most recently created. After a while the mp3 player will fill up with the files no longer on the list so i will delete all files from player then re-copy all flies from simple folder on hard drive to simple folder on mp3 player.
    I do not make changes to the list on the mp3 player so synchronization needs only to go one way: from laptop to player.
    So all very simple. Apart from editing the positions of files in the list everything is managed by copy drag dropping and deleting files using windows explorer.
    But i'm in a mac and circumstances have forced me in to the corner of using iTunes. And this whole iTunes situation is terrifying for me as over the years i've heard horror stories about it deleting all of someone's music files. Perhaps this may have been by using the software incorrectly but even so, the very fact that it appears possible for this to happen simply by using the software incorrectly and the fact that it happens with some degree of frequency given the number of reports of this happening that i have heard of over the years on music discussion forums fills me with dread that i have to now use this software. And given the software's blatant disregard for the user's choice as to where to store his/her files it's no surprise that this happens. The software is pointlessly doing dangerous things with my data. Please make it stop.
    Please can i just at the very least make iTunes play the music from the folder i have chosen to put my files in and not copy those files here there and everywhere without my say so? Thankyou.

    option discovered in preferences. Really this and any feature that moves deletes or edits a users data should as far as possible be OFF BY DEFAULT. It shouldn't by default and without the users specific say do this dangerous and unnecessary thing without even letting the user know what it's doing!!! And then cause me a few hours (as i'm new to mac) searching for the option so as to switch it off. If i hadn't noticed the status cage declaring that it was copying files then i might never have twigged that this insane thing was occurring. And if i hadn't of noticed i would have been left maintaining the contents of the folder i copied the files to, the folder which as far as i was informed and so believed was also the location of the music files i was playing. How does Apple justify this 'genius' piece of software non-design? Surely it will hurt no one if this was off by default for new users - overall at least i dare say it would cause a lot less distress in the future for the unsuspecting public at large. Thanks for the support.

  • I can no longer play quicktime mov files from a canon firestore

    I can no longer play quicktime mov files from a canon firestore from an HDV camera that play on other macs and play in vlc. It happened all of a sudden. Files that I could play before no longer play. It seems to be something wrong with the quicktime codec management because the files do not play in premiere and final cut pro. In FCP it says: File Error: 1 File(s) recognized, 0 access denied, 1 unknown. These files work on other computers. I have four drives and it doesnt matter which file i attempt to open on each drive, these files are unreadable on this system. Please help. Possible issues might be a corrupted index, but i dont understand how that can go across four different drives.
    Model Name:          Mac Pro
      Model Identifier:          MacPro4,1
      Processor Name:          Quad-Core Intel Xeon
      Processor Speed:          2.66 GHz
      Number Of Processors:          1
      Total Number Of Cores:          4
      L2 Cache (per core):          256 KB
      L3 Cache:          8 MB
      Memory:          8 GB
      4 SATA drives

    Apple kindly updated Quicktime and rendered Firestore files unplayable. I think a recent update of iTunes was the culprit.
    Solutions: What I did. Wipe the system disc. Re-install Snow Leopard. Re-install FCP7. Don't update Quicktime or iTunes to anything after Jun 2011. QT v7.6.6 is the last good version. That'll get your files back.
    A colleague tried a different approach. For this you need a pre-July 2011 version of the file QuickTimeComponents.component.  It is in the system/library/QuickTime folder. Delete your current one and drop in an old one.
    However if you're working with Final Cut X, I think you screwed until Focus and Apple work something out. My address is on my contacts page at teevideousadotcom if you need any further help.

  • I paid for and downloaded a song, but it won't play saying the file could not be found. It says this even when I click on the song IN the itunes store, so I can't even listen to the sample now??

    I paid for and downloaded a song, but it won't play saying the file could not be found. It says this even when I click on the song IN the itunes store, so I can't even listen to the sample now??
    I haven't kept records of the songs I have paid for, and a number of songs have recently been displaying this message, making me search my computer for them. Most I have been able to find, but this one immediately "disappeared" the moment I attempted to play it after downloading...... how do I either get it back or get my money back???

    How did you do this move?  Unless you know what you are doing you have to move the whole, complete iTunes folder.
    iTunes: How to move [or copy] your music to a new computer [or another drive] - http://support.apple.com/kb/HT4527
    Quick answer if you use iTunes' default preferences settings:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Open iTunes and immediately hold down the Option (alt) key (shift on Windows), then guide it to the new location of the library.
    Windows users see tip at: https://discussions.apple.com/message/18879381

  • How to get file from server while click on link

    Hi,
    i created on link and i gave one server path to select file from server but while clickinng on link it no displaying any thing.
    following is the Destination url that i gave for the item.
    /u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/
    please tell me how to get file from server while click on link.

    Ok I got your requirement now.
    If you are getting file names from view attribute then you should not be adding destination URI property for the link.
    Instead you can use OADataBoundValueViewObject API.
    Try below code in your controller processRequest method:
    I am assuming that you are using classic table.
    Also in below example it considers OAMessageStyleText and you can replace it with link item if you want.
    OATableBean tableBean =
    (OATableBean)webBean.findChildRecursive("<table item id>");
    OAMessageStyledTextBean m= (OAMessageStyledTextBean)tableBean.findChildRecursive("<message styled text in table item id>");
    OADataBoundValueViewObject tip1 = new OADataBoundValueViewObject(m, "/u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/"+"<vo attr name which stores file name for each row>");
    m.setAttributeValue(oracle.cabo.ui.UIConstants.DESTINATION_ATTR, tip1);
    Regards,
    Sandeep M.

  • I backed up my I-tunes library (by dragging my "music" folder to my new external hard drive.  Now 6,000  songs won't play stating, "original file cannot be found."  What can I do to get these songs back???!!!

    I backed up my I-tunes library (by dragging my "music" folder to my new external hard drive.  Now 6,000  songs won't play stating, "original file cannot be found."  What can I do to get these songs back???!!!

    Try putting the files back where they were before you moved them, then follow the steps in this Apple document -> iTunes: Back up your iTunes library by copying to an external hard drive

  • Playing an audio file from applet

    Hi friends,
    I have a problem to be solved .
    Please help me.
    I have to play an audio file from applet.When the applet loads it shold start playing .There is a progress bar in the applet it shold alsomove corresponding to that.
    How can i do that.Give me an idea.
    I know nothing about jmf.
    I am using j2sdk1.4,windows 2000 server.

    Andrew,
    Forgive my naivety, but i struggle with JAVA! I am desperately trying to create a JAVA plugin to SERVOY and have to date been successful with a few things. Record, Playback, convert to .spx.
    I am really struggling with implementing a rewind and fastforward function of the type you have. I thought it would be easy, but it appears not.
    At the bottom is the complete code from my class that is called by the servoy plugin wrapper,
    i had thought that adding some simple jump 500 ms would have been easy in something like this:
    public AudioStream js_FastForward (AudioStream as) throws IOException {
    !!! Line or two here to move the play head forward !!!
         AudioPlayer.player.start(as);
         return as;
    Can you give me any pointers to how i code that fast forward bit.
    many thanks
    David
    package com.d2e.MyPlugin;
    import com.servoy.j2db.scripting.IScriptObject;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.awt.Button;
    import javax.sound.sampled.*;
    import org.xiph.speex.*;
    import org.xiph.speex.spi.*;
    import  sun.audio.*;    //import the sun.audio package
    public class MyPluginProvider implements IScriptObject  {
          public void JSencode()
             throws IOException{
               /** Version of the Speex Encoder */
                final String VERSION = "Java Speex Command Line Encoder v0.9.7 ($Revision: 1.5 $)";
                /** Copyright display String */
                final String COPYRIGHT = "Copyright (C) 2002-2004 Wimba S.A.";
                /** Print level for messages : Print debug information */
                final int DEBUG = 0;
                /** Print level for messages : Print basic information */
                final int INFO  = 1;
                /** Print level for messages : Print only warnings and errors */
                final int WARN  = 2;
                /** Print level for messages : Print only errors */
                final int ERROR = 3;
                int printlevel = INFO;
                /** File format for input or output audio file: Raw */
                final int FILE_FORMAT_RAW  = 0;
                /** File format for input or output audio file: Ogg */
                final int FILE_FORMAT_OGG  = 1;
                /** File format for input or output audio file: Wave */
                final int FILE_FORMAT_WAVE = 2;
                int srcFormat  = FILE_FORMAT_OGG;
                int destFormat = FILE_FORMAT_WAVE;
                int mode       = -1;
                int quality    = 4;
                /** Defines the encoders algorithmic complexity. */
                 int complexity = 3;
                /** Defines the number of frames per speex packet. */
                 int nframes    = 1;
                /** Defines the desired bitrate for the encoded audio. */
                 int bitrate    = -1;
                /** Defines the sampling rate of the audio input. */
                 int sampleRate = -1;
                /** Defines the number of channels of the audio input (1=mono, 2=stereo). */
                 int channels   = 1;
                /** Defines the encoder VBR quality setting (float from 0 to 10). */
                 float vbr_quality = -1;
                /** Defines whether or not to use VBR (Variable Bit Rate). */
                 boolean vbr    = false;
                /** Defines whether or not to use VAD (Voice Activity Detection). */
                 boolean vad    = false;
                /** Defines whether or not to use DTX (Discontinuous Transmission). */
                 boolean dtx    = false;
              //HArd code src format and dest
               // private String srcPath ="junk.wav";
              srcFormat = FILE_FORMAT_WAVE;
              destFormat = FILE_FORMAT_OGG;
              //destPath="junk.spx";
             byte[] temp    = new byte[2560]; // stereo UWB requires one to read 2560b
             final int HEADERSIZE = 8;
             final String RIFF      = "RIFF";
             final String WAVE      = "WAVE";
             final String FORMAT    = "fmt ";
             final String DATA      = "data";
             final int WAVE_FORMAT_PCM = 0x0001;
             // Open the input stream
             DataInputStream dis = new DataInputStream(new FileInputStream("junk.wav"));
             // Prepare input stream
           //DP - Sort out the Wave File
               // read the WAVE header
               dis.readFully(temp, 0, HEADERSIZE+4);
               // Read other header chunks
               dis.readFully(temp, 0, HEADERSIZE);
               String chunk = new String(temp, 0, 4);
               int size = readInt(temp, 4);
               while (!chunk.equals(DATA)) {
                 dis.readFully(temp, 0, size);
                 if (chunk.equals(FORMAT)) {
                   typedef struct waveformat_extended_tag {
                   WORD wFormatTag; // format type
                   WORD nChannels; // number of channels (i.e. mono, stereo...)
                   DWORD nSamplesPerSec; // sample rate
                   DWORD nAvgBytesPerSec; // for buffer estimation
                   WORD nBlockAlign; // block size of data
                   WORD wBitsPerSample; // Number of bits per sample of mono data
                   WORD cbSize; // The count in bytes of the extra size
                   } WAVEFORMATEX;
                   if (readShort(temp, 0) != WAVE_FORMAT_PCM) {
                     System.err.println("Not a PCM file");
                     return;
                   channels = readShort(temp, 2);
                   sampleRate = readInt(temp, 4);
                   if (readShort(temp, 14) != 16) {
                     System.err.println("Not a 16 bit file " + readShort(temp, 18));
                     return;
                   // Display audio info
                   if (printlevel <= DEBUG) {
                     System.out.println("File Format: PCM wave");
                     System.out.println("Sample Rate: " + sampleRate);
                     System.out.println("Channels: " + channels);
                 dis.readFully(temp, 0, HEADERSIZE);
                 chunk = new String(temp, 0, 4);
                 size = readInt(temp, 4);
               if (printlevel <= DEBUG) System.out.println("Data size: " + size);
           //DP ENd sort wave file 
           //Now Choose the mode , we have a file sampled at 44100
                 mode = 2; // Ultra-wideband
             // Construct a new encoder
             SpeexEncoder speexEncoder = new SpeexEncoder();
             speexEncoder.init(mode, quality, sampleRate, channels);
             if (complexity > 0) {
               speexEncoder.getEncoder().setComplexity(complexity);
             if (bitrate > 0) {
               speexEncoder.getEncoder().setBitRate(bitrate);
             if (vbr) {
               speexEncoder.getEncoder().setVbr(vbr);
               if (vbr_quality > 0) {
                 speexEncoder.getEncoder().setVbrQuality(vbr_quality);
             if (vad) {
               speexEncoder.getEncoder().setVad(vad);
             if (dtx) {
               speexEncoder.getEncoder().setDtx(dtx);
             // Display info
             // Open the file writer
             AudioFileWriter writer;
             if (destFormat == FILE_FORMAT_OGG) {
               writer = new OggSpeexWriter(mode, sampleRate, channels, nframes, vbr);
             else if (destFormat == FILE_FORMAT_WAVE) {
               nframes = PcmWaveWriter.WAVE_FRAME_SIZES[mode-1][channels-1][quality];
               writer = new PcmWaveWriter(mode, quality, sampleRate, channels, nframes, vbr);
             else {
               writer = new RawWriter();
             writer.open("junk.spx");
             writer.writeHeader("Encoded with: " + VERSION);
             int pcmPacketSize = 2 * channels * speexEncoder.getFrameSize();
             try {
               // read until we get to EOF
               while (true) {
                 dis.readFully(temp, 0, nframes*pcmPacketSize);
                 for (int i=0; i<nframes; i++)
                   speexEncoder.processData(temp, i*pcmPacketSize, pcmPacketSize);
                 int encsize = speexEncoder.getProcessedData(temp, 0);
                 if (encsize > 0) {
                   writer.writePacket(temp, 0, encsize);
             catch (EOFException e) {}
             writer.close();
             dis.close();
            * Converts Little Endian (Windows) bytes to an int (Java uses Big Endian).
            * @param data the data to read.
            * @param offset the offset from which to start reading.
            * @return the integer value of the reassembled bytes.
           protected static int readInt(final byte[] data, final int offset)
             return (data[offset] & 0xff) |
                    ((data[offset+1] & 0xff) <<  8) |
                    ((data[offset+2] & 0xff) << 16) |
                    (data[offset+3] << 24); // no 0xff on the last one to keep the sign
            * Converts Little Endian (Windows) bytes to an short (Java uses Big Endian).
            * @param data the data to read.
            * @param offset the offset from which to start reading.
            * @return the integer value of the reassembled bytes.
           protected static int readShort(final byte[] data, final int offset)
             return (data[offset] & 0xff) |
                    (data[offset+1] << 8); // no 0xff on the last one to keep the sign
         AudioFormat audioFormat;
           TargetDataLine targetDataLine;
         public Class[] getAllReturnedTypes() {
              // TODO Auto-generated method stub
              return null;
         public String[] getParameterNames(String arg0) {
              // TODO Auto-generated method stub
              return null;
         public String getSample(String arg0) {
              // TODO Auto-generated method stub
              return null;
         public String getToolTip(String arg0) {
              // TODO Auto-generated method stub
              return null;
         public boolean isDeprecated(String arg0) {
              // TODO Auto-generated method stub
              return false;
         public String js_Record (String name){
              captureAudio();
              return "Started Recording " +name;
        public String js_StopRecord (String name) throws IOException{
             //new ActionListener(){
             //   public void actionPerformed(ActionEvent e)
                  //Terminate the capturing of input data
                  // from the microphone.
                  targetDataLine.stop();
                  targetDataLine.close();
              //  }//end actionPerformed
             //};//end ActionListener
                 // JSpeexEnc ("junk.wav","output.spx");
                  JSencode();
              return "Stop Records " +name;
        //Play audio file
        public AudioStream js_Playback (String name) throws IOException{
             InputStream in = new FileInputStream("junk.wav");
             AudioStream as = new AudioStream(in);        
             AudioPlayer.player.start(as);           
             return as;
        public AudioStream js_ContPlay (AudioStream as) throws IOException {
             AudioPlayer.player.start(as);           
             return as;
         //Stop Play
        public AudioStream js_Stop_Playback (AudioStream as) throws IOException{
             AudioPlayer.player.stop(as);
              return as;
         //This method captures audio input from a
        // microphone and saves it in an audio file.
        private void captureAudio(){
          try{
            //Get things set up for capture
            audioFormat = getAudioFormat();
            DataLine.Info dataLineInfo =
                                new DataLine.Info(
                                  TargetDataLine.class,
                                  audioFormat);
            targetDataLine = (TargetDataLine)
                     AudioSystem.getLine(dataLineInfo);
            //Create a thread to capture the microphone
            // data into an audio file and start the
            // thread running.  It will run until the
            // Stop button is clicked.  This method
            // will return after starting the thread.
            new CaptureThread().start();
          }catch (Exception e) {
            e.printStackTrace();
            System.exit(0);
          }//end catch
        }//end captureAudio method  
    //  This method creates and returns an
        // AudioFormat object for a given set of format
        // parameters.  If these parameters don't work
        // well for you, try some of the other
        // allowable parameter values, which are shown
        // in comments following the declarations.
        private AudioFormat getAudioFormat(){
          float sampleRate = 44100.0F;
          //8000,11025,16000,22050,44100
          int sampleSizeInBits = 16;
          //8,16
          int channels = 1;
          //1,2
          boolean signed = true;
          //true,false
          boolean bigEndian = true;
          //true,false
          return new AudioFormat(sampleRate,
                                 sampleSizeInBits,
                                 channels,
                                 signed,
                                 bigEndian);
        }//end getAudioFormat
        class CaptureThread extends Thread{
               public void run(){
                 AudioFileFormat.Type fileType = null;
                 File audioFile = null;
                 //Set the file type and the file extension
                 // based on the selected radio button.
                 //if(aifcBtn.isSelected()){
                  // fileType = AudioFileFormat.Type.AIFC;
                  // audioFile = new File("junk.aifc");
                // }else if(aiffBtn.isSelected()){
                 //  fileType = AudioFileFormat.Type.AIFF;
                 //  audioFile = new File("junk.aif");
                // }else if(auBtn.isSelected()){
                 //  fileType = AudioFileFormat.Type.AU;
                 //  audioFile = new File("junk.au");
                // }else if(sndBtn.isSelected()){
                //   fileType = AudioFileFormat.Type.SND;
                 //  audioFile = new File("junk.snd");
                // }else if(waveBtn.isSelected()){
                 fileType = AudioFileFormat.Type.WAVE;
                 audioFile = new File("junk.wav");
                // }//end if
                 try{
                   targetDataLine.open(audioFormat);
                   targetDataLine.start();
                   AudioSystem.write(
                         new AudioInputStream(targetDataLine),
                         fileType,
                         audioFile);
                 }catch (Exception e){
                   e.printStackTrace();
                 }//end catch
               }//end run
             }//end inner class CaptureThread
    }

  • Playing the audio file from the point of mark

    Hi All, i want to play a audio file from the point of mark.
    i have used mark() method to mark but when i play the audio it is still playing the audio from the starting point. please help me.

    Hi,
    Question:
    1. You have a folder for each DVD whose video contents you edited.
    Answer: Yes
    Question:
    You talk about projects 34, 35, 36, 37. Are these projects associated with only one specific DVD?
    What is supposed to be in each project - just edited VTS_01_1.VOB or edits from the others in the series
    such as VTS_01_2.VOB, VTS_01_3.VOB, etc.
    Answer:
    Project 34 has edited Premiere Elements file 34 and the VOB files (VST_01_1.VOB, VTS_01_2.VOB, etc) from DVD#34
    Project 35 has edited Premiere Elements file 35 and the VOB files (VST_01_1.VOB, VTS_01_2.VOB, etc) from DVD#35
    Project 36 has edited Premiere Elements file 36 and the VOB files (VST_01_1.VOB, VTS_01_2.VOB, etc) from DVD#36
    etc.
    Question:
    2. If you screen each DVD video file VOB for a given DVD disc, does the content follow sequentially and cleanly?
    Answer:
    Yes
    When I run the VST_01_1.VOB, VTS_01_2.VOB, etc from each project the audio and the video are clean and match.
    When I run the edited Premiere Elements file that were created after project 34 edited Premiere Elements file project 35, 36, 37 etc. I am getting the audio from project 34
    When I run the edited Premiere Elements file that were created  before project 34 edited Premiere Elements file project 1, 2, all the way to 33. I am getting the correct audio
    Thanks,
    Ron

  • Playing an mp4 file from my iPad on to a TV screen.

    I am playing an mp4 file from my ipad 2 on to a TV screen. I would like to see the video on both the TV screen and my ipad. Currently the video can only be seen on the TV screen.
    I am using an HDMI cable with an adapter to connect the ipad to the TV screen.
    Thanks
    Dave

    OK, I can get the video to play, but I have no ability to scroll thru the movie.

  • HT3775 I have Mac OS X v10.6.8 and it won't play an mpg file. Any idea why not?

    I have Mac OS X v10.6.8 and it won't play an mpg file. Any idea why not? I get the message that The document “M2U00002.MPG” could not be opened. The movie is not in a format that QuickTime Player understands. You may need to install additional software to open this type of file. But when I go to the help page it says that Quick TIme will play MPEG. Any help would be appreciated a lot. Thanks!

    Try VideoLAN media player

  • Subsequent play of WAV files from HTTP

    Hi,
    I have to subsequently play many WAV files from HTTP in a nokia series 60 emulator.
    Everything is ok for the first two files, but at the third I catch an exception:
    "java.io.IOException: exceeded the configured maximum number of connections"
    I tried two ways to load the files from HTTP:
    Manager.CreatePlayer(InputStream...)
    Manager.CreatePlayer("http:\\...")
    Below there is the code of the two methods I use. Please note that I try in every way to close the connection before open a new one!!!
    public void Method_1(String src, String type){
    int iLen=0;
    is = null;
    httpCon = null;
    byte[] bBuf;
    try {
    if (p != null) {
    if (p.getState() == Player.STARTED) {
    p.stop();
    p.removePlayerListener(this);
    p.deallocate();
    p.close();
    p=null;
    if (is!=null){
    is.close();
    is=null;
    if (httpCon!=null){
    httpCon.close();
    httpCon=null;
    httpCon = (HttpConnection) Connector.open(src);
    if (httpCon.getResponseCode() != HttpConnection.HTTP_OK) {
    System.out.println("Bad response code");
    return;
    System.out.println("Connection OK! (audio)");
    iLen = (int) httpCon.getLength();
    System.out.println("audio file length : " + iLen);
    is = httpCon.openInputStream();
    p = Manager.createPlayer(is, type);
    p.addPlayerListener(this);
    p.setLoopCount(1);
    p.prefetch();
    p.start();
    vc = (VolumeControl)p.getControl("VolumeControl");
    catch (MediaException ex) {
    ex.printStackTrace();
    catch (IOException ex) {
    ex.printStackTrace();
    public void Method_2(String src){
    try {
    if (p!=null){
    if (p.getState() == Player.STARTED)
    p.stop();
    p.deallocate();
    p.close();
    p=null;
    p = Manager.createPlayer(src);
    p.addPlayerListener(this);
    p.setLoopCount(1);
    p.start();
    vc = (VolumeControl)p.getControl("VolumeControl");
    catch (java.io.IOException e) {
    e.printStackTrace();
    catch (MediaException e) {
    e.printStackTrace();

    My question is:
    how can I load (from a HTTP server) and play more than two WAV files without crashing?
    Do I have to close the connection in a better way in order to re-open it without problems (and more than two times)?
    It is simply an emulator bug?
    Thanks.

Maybe you are looking for

  • I bought MacbookPro 15 2.4 ( Mid-2010)

    Today I bought my MacbookPro 15, 2.4 ( Mid-2010)..I was so lucky to get it with a good discount ( -200 Euros).In the Apple Store there were some MBP (Early 2011) complaining about them, looking for a solution to get them back...everything I could rea

  • Customizing Flash Player 10 Install

    Greetings: I registered and downloaded the flash player 10 install executable. I want to push it out to about 425 machines, but do not want the Google toolbar. It messes up other software we have at our institution. Is there a command line parameter

  • Premiere 2014 Crash on app start

    I recently updated my 2014 premiere pro, and now it crashes on the slash screen startup. the last thing it tries to load is the adobe.ImporterQuickTime I tried dumping preferences, and uninstall and reinstall, but no luck. Oddly the old Premiere CC d

  • Do these Console logs explain why QB2015 crashes upon installation?

    I purchased Quickbooks 2015 in early November. Every time I installed it, it crashed before I could register it. I downloaded more than one DMG. I spent hours with QB support. Nothing has worked. It finally occurred to me that I have a backup 17" Mac

  • BB ID username email

    When I first set up my Phone, I accidentally entered my BB ID Username email as @live.ca instead of live.com. This was never a problem until I tried to update some apps.  It asked me for my password (which i cant remember).  I remember the security a