Determining movie stream size in javascript

Hi guys,
Is it possible to determine flash movie stream size of any movie using JavaScript only?
Thanks!

JProg,
I am relatively new to programming so I am having some
conceptual difficulties with your suggestion, it
sounds really good, but I can't honestly say that I
understand this fully.
When you say "dump a java class on the server that
will serve as a local file metadata querier" I am a
little stumped. I have a basic understanding of what a
metadata querier is (basically something that gets
info off the server for you) however there are two
things that I would appreciate help with:
1). How does one go about dumping a java class onto
the server?
2). What class would one use?
If you can provide any help with these two points it
will be greatly appreciated. Thanks for the advice so
far.
Regards
Davo
What I meant is create a Java Class that queries File MetaData. Compile it, then put it on the server.
Create an RMI server on the server-side that you would use as a proxy for this class.
From the client-side, call the proxy via the RMI Stubs that were generated when you compiled rmi server. Pass the file name, the stub will send the filename to the querier proxy that serves as RMI server, then this proxy will call the actual file meta data querier passing to it the filename, get the metadata in return, and sends them back to the client.

Similar Messages

  • Reading a PDF without knowing the stream size

    Hi there,
    while I'm able to successfully read a PDF file, the only way I can do it (based
    on what I understood from PDF 1.7 specs) is to go to the end of the stream and
    start from there (section 7.5.5).
    But that requires the stream size to be known. While that is usually not a
    problem (since the stream is usually a simple file), I would like to make my
    library a little bit more generic, being able to handle any kind of stream, as
    long as it is positioned at the start of a PDF document.
    But unless I have missed something from the specs, when I'm dealing with a
    stream of unknown size (one which might not even be fully loaded when I started
    reading it, like a socket), there is not way to do it. I mean, I could do it,
    but I would not be able to tell when I've reached the end of the document. Not
    without some kind of length information (since I don't know where the stream
    ends). I mean, where would I stop? At a trailer? That would only work if the
    document have never been updated.
    If right after the header (%PDF-) there was some kind of meta information about
    the size of the document (after all updates, if any) I could move the stream to
    that position (wait for the data to arrive, if needed) and work my way from
    there (and to there, since I would know where the document ends). But from my
    understanding, there is no way to retrieve this kind of information.
    So, summing up, in order to successfully read a PDF document:
    - I must always know the stream size (which I might not be able to)
    - the stream must end with the PDF's data (which might also not always be true)
    I am correct?

    yeah,
    I knew a little about linearization and but the idea was to help quick loading the very first page of a document while the rest of the data still is arriving. Not exactly what I needed here.
    Anyway, you have just confirmed my fears, I will have to know the document size, where exactly it ends on my stream, in order to correctly load it.
    I appreciate your help sir. Thanks for your time.
    Best regards.

  • Determine actual attachment size

    Hi,
    I am using javamail to develop a kind of webmail solution.
    I need to determine the exact size of an attachment file, but when I call the getSize() method on MimeBodyPart it does not give me the size I want. I think it gives me the size of the Base64 encoded data (??), rather than the size of the actual data.
    Is there any way to determine the size of the actual data, without actually reading the input stream ?
    Thanks for any advice.

    We had the same problem with iMS version 5.1 What version are you running?
    We reported it to iPlanet supported who initially said that this is because all attachments are mime encoded.
    After complaining to our support manager, they came back again and we were told that the Inbox doesn't display the size of attachments, it displays the total size of the message, including the overhead imposed by base64 encoding of attachments.
    We were told that attachment and message size are different things and that the current behaviour is correct.
    This was not the view of our users who were logging a lot of complaints about this. So we asked for a third time that they log this as a bug. They refused again and instead logged it as a Request for Enhancement - giving it a low priority since the current behaviour is apparently correct.

  • How do you determine the optimal size for Mozilla Firefox?

    How do you determine the optimal size for cache in Mozilla
    Firefox? I am using Firefox 7.0.1 on a 64-bit Windows 7 Ultimate operating system with 3GB RAM and 300 GB hard drive, but I have other computers running Windows XP. If the answer doesn't apply to all current versions of Firefox on all supported Windows operating systems, please explain the differences. Is there a formula for calculating the best cache size?

    I found that the best idea is to let Firefox decide that itself.

  • How to determine the database size corresponding to the nber records in DSO

    Hi Colleagues,
    I would like to determine the database size corresponding to my new BI project.
    I know the number of records uploaded in the DSO from the source system for the intialization phase.
    How can I deduct the database size / disk size corresponding to the number of record uploaded ?
    Thanks,

    Hi Ram,
    I am with SAP BI Release SAPKW70019
    I do not have the option Single Table analysis -
    I have in DB02 or ST04 the following options.
    *- Space*
    -- space overview
    ->database
    --overview
    ->users
    --overview
    --detailed analysis
    -> tablespaces
    --overview
    --detailed analysis
    -> segments
    --overview
    --Detailed analysis
    --Detailed Analysis Aggregated
    -> Additional Functions
    --Collector Logs
    --BW Analysis
    Where should I go through ?
    Thanks

  • Apple tv mirroring not working with vidieo/movie streaming from online

    apple tv wont let me play movies streaming through my ipad with safari
    Also i cant seem to download any of my music and movies off my itunes to my ipad, it comes up  Unableto Download song "Name of Song" could not be downloaded at this time.
    Please help

    still have apple tv problem, the second problem with downloading music i have attached my ipad to my computer and is now syncing music. hopefully this will fix the problem

  • In app store some applications are of very small size like 15-20 Mb and after installing them they become more than 100 mb. how to determine their actual size???

    in app store some applications are of very small size like 15-20 Mb and after installing them they become more than 100 mb. how to determine their actual size???

    The app store size is probably just the software, while the size on your iPhone includes data.
    You can determine the size on your iPhone by looking at Settings > General > Usage.

  • In InDesign, how does one determine the pixel size of a text box? Specifically, we need to write text to specifications of 600 pixel width, and have no idea a) how to scale a text box to specific pixel width, b) how to

    This may be a basic question... but in InDesign, how does one determine the pixel size of a text box? Specifically, we need to write text to specifications of 600 pixel width, and have no idea a) how to scale a text box to specific pixel width, b) how to determine what word count we can fit in, and c) how to do it in a table? Thanks!

    Set your ruler increments to pixels Preferences>Units & Increments. You can fill the text box with placeholder text Type>Fill with Placeholder text and get a word count from the Info panel with Show Options turned on from the flyout.
    From the Transform panel you can set a text box's width and height

  • How to determine the proper size for Oracle 8i Data Base Objects

    Hi,
    I'm working on an Oracle 8i Data base. I'd like to know how to determine the proper size for the Data Base objects such as tables, datafiles, tablespaces...
    Thanks.

    Start with the docs.
    http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76956/schema.htm#949
    Best Regards
    Krystian Zieja / mob

  • Can i watch online movies from movies streaming sites by connecting apple av adaptor to my hd tv??

    Id like to know if i connect an av digital adaptor to my hd tv from my ipad can i watch online movies on movies streaming sites?

    staceygibson wrote:
    Id like to know if i connect an av digital adaptor to my hd tv from my ipad can i watch online movies on movies streaming sites?
    Yes, you can watch movies on your HD TV using the Digital AV Adapter and, of course, an HDMI cable.

  • IPhone4 to Apple TV movie streaming problem

    Movies recorded using my iPhone stream no problem to Apple TV via Airplay but movies that have been downloaded seperately and loaded onto my iPhone and are stored in my iPod part of the iPhone do not have the Airplay icon to allow streaming. Any ideas anyone? If my computer is on the same movies stream ok from there to the Apple TV but doesn't seem happy doing it for the one's saved on my phone.
    Many thanks

    I am having the same problem, what are we doing wrong or is that yet another feature that is not supported by Apple

  • Everytime i go on safari numerous ads pop up and when i go to "X" them off it loads up about 3 other tabs with like movie streaming or trying to get me to buy products etc. what should i do?

    Everytime i go on safari numerous ads pop up and when i go to "X" them off it loads up like 3 tabs with things like movie streaming or trying to get me to buy products? what should I do?

    You may have installed the "DownLite" trojan, perhaps under a different name. Remove it as follows.
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "VSearch" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    ~/Library/Internet Plug-Ins/ConduitNPAPIPlugin.plugin
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot" or "Conduit" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    This trojan is distributed on illegal websites that traffic in pirated movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect much worse to happen in the future.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the DownLite developer has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight is inexcusable and has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • HT1222 how do i determine the file size of each download before i download it?

    How do i determine the file size of a down load before i download it?

    I have checked the update page and even checked more and can find no reference to file size.  I'm using a hotspot and some of the downloads cause me to go over my limit and incur extra charges.  I apperciate your help.

  • Determination of array size in bytes

    Dear forum users,
    I want to determine the size of an array subset in bytes.
    At the moment I try to do this as shown in my attached program: Simply said, I am reading in my data (example data can also be found in the attachment) and convert them into an array. From this array I am taking the subset I am interested in. This array subset is saved in a new file from which I determine the byte size with the “Get File Size.vi”.
    That are a lot of steps with file saving (deletion of the compulsory created new file not mentioned) just to get the byte size of this array subset.  And with this approach the file size (the byte size of my array subset) is unfortunately depending on the format with which I save the file (%.6f or similar), but I would need the byte size of this subarray as it would be in the original file (see my comment on the front panel).
    Therefore, I want to know if there is a better, simpler, quicker and correct way to get the byte size of a subarray.
    I would be very happy about every comment and help!
    Attachments:
    ByteSizeOfArraySubsetLV2011.vi ‏18 KB
    ByteSizeOfArraySubsetLV8_6.vi ‏15 KB
    ExampleData.txt ‏1114 KB

    Dear GerdW and smercurio_fc,
    Thanks a lot for your replies! Perhaps I should have mentioned that I need the size of my array (string…, I am confused now) in bytes because I want to use later in my program the “Set File Position.vi” (which needs an offset in bytes). With this vi I want to read in my data again but starting after the data which I have used in my array (I try to make bunches out of my file).
    Ok, the suggestion of GergW is a step forward, but it does not work correctly. I have modified my program a bit (see attachment), so that it gives back the file size of the original file and the length of the string after the file has been read in. Interestingly, the numbers are not the same. The same is also true for my subarray (and the string length is still dependent on the format with which I convert my array to a string).
    So once again asked: If I take from my original file lines 3 to 12, copy them in a new file and save this file, then I can read out the size of the file (191 bytes). How can I get the same number in LabVIEW after reading in the original file and taking the same subarray? I hope my question is clearer now (it is surely suffering a bit from my bad English. I am sorry!).
    I hope to hear from you again!
    Attachments:
    ByteSizeOfArraySubsetLV2011_2.vi ‏14 KB
    ByteSizeOfArraySubsetLV8_6_2.vi ‏11 KB

  • Resizing Flash Movie to Size of Site

    I am developing a html Web site with a flash intro
    and need help because I am learning all over again, not having done
    it in 3 years.
    The screen is to start out white and fade to silver, which I
    did quite nicely after many frustrating moments of relearning and
    conditioning and realized it was quite simple. The movie is 600x400
    and I developed the site at 1028x768 with my html layer for the
    site at: <div id="Layer1" style="position:absolute; left:125px;
    top:7px; width:686px; height:623px; z-index:1">. The flash movie
    layer is: <div id="Layer1" style="position:absolute; left:128px;
    top:-68px; width:602px; height:424px; z-index:1"> which I
    changed to the html one and it did not work.
    Then I went back to Flash and tried to change the movie size.
    Well that was a trip. The stage is somehow off center to the right
    and when I used the hand to move it, it did not work
    Anyway, what I am trying to do is start the page off with a
    white background full screen and have the flash movie start out as
    white with a black dot and then fade to silver until the dot turns
    into the logo. The flash movie does this, but I can't figure out
    how to put it on the first page so when viewed the user will only
    see the movie and not the movie with a white background. Also can't
    figure what glitched when I was playing with it to get the stage
    off centered.
    If you want to see the movie, I can show you and please no
    jokes because the item my friend is selling is a bit different but
    highly used
    Thank you in advance...StarShine

    Am I missing something or your long story has nothing to do
    with "Resizing Flash Movie to Size of Site"?
    If you want your flash file to be displayed full
    size in browser window try setting the "width" and "height"
    parameters in "object" and "embed" tag to "100%".

Maybe you are looking for