How to use JMF to play the video data in a array(not in a local file)?

dear all:
I am a newer to JMF.
Now My program has a thread which is always inputing mpg video data into a static array, so I want to wrap this array as a DataSource, then let the player play the video.
But I don't know how to wrap that as a DataSource, What I know is just play a media file.
So could any guy give me some advice??
Really appreciate your help!
Thanks
Sam
MSN: [email protected]
Email: [email protected]

I have never tried doing what you are soing so I am just thinking aloud. I think that using datamerge for this is going to assign the same ID to the fields, which is why the checkboxes are filling when selecting one of them. Open the PDF in Acrobat to check it though.
Another thought. Are you merging to a new document or direct to PDF? If going direct to PDF, try creating the merge document first. If that doesn't work, I think it will be the field IDs being also replicated. If so, then the only course of action would be either manually changing them in Acrobat, or an ID script and or an Acrobat script. Neither of which I have heard of. But if they do have the same IDs, then I would inquire in both the ID scripting forum and the Acrobat forum.
Good luck. Interesting use of datamerge. I hope you find a suitable answer.
Mike

Similar Messages

  • How to use XmlModify to sort the XML Data?

    Hello,
    I saw some examples explain how to use XmlModify in BDB XML package. I want to sort the XML data by several elements but my Java program could not work correctly.
    <CustomerData>
    <Transaction>
    <DLSFIELDS>
    <ADR_PST_CD>12345</ADR_PST_CD>
    <CLT_IRD_NBR>002</CLT_IRD_NBR>
    </DLSFIELDS>
    </Transaction>
    <Transaction>
    <DLSFIELDS>
    <ADR_PST_CD>12345</ADR_PST_CD>
    <CLT_IRD_NBR>102</CLT_IRD_NBR>
    </DLSFIELDS>
    </Transaction>
    // many nodes like transaction ...
    </CustomerData>
    My XQuery script was executed successfully in the shell. The script looks as follows:
    "for $i in collection('sample.dbxml')/CustomerData/Transaction order by xs:decimal($i//ADR_PST_CD), xs:decimal($i//CLT_IRD_NBR) return $i".
    The Java code :
    // create XmlManager
    XmlManager manager = // ...;
    // open XmlContainer
    XmlContainer container = // ...;
    XmlQueryContext context = manager.createQueryContext(XmlQueryContext.LiveValues, XmlQueryContext.Eager);
    XmlQueryExpression expression = manager.prepare("for $i in collection('sample.dbxml')/CustomerData/Transaction order by xs:decimal($i//ADR_PST_CD),xs:decimal($i//CLT_IRD_NBR) return $i", context);
    XmlModify modify = manager.createModify();
    XmlUpdateContext uc = manager.createUpdateContext();
    XmlDocument xmldoc = container.getDocument("sample.xml");
    XmlValue value = new XmlValue(xmldoc);
    long numMod = modify.execute(value, context, uc);
    System.out.println("Peformed " + numMod     + " modification operations");
    Could you point out the errors above or offer some suggestion?
    Thanks.

    I have other question of the sorting issue. Here are a large XML need to sort so I have to split it to multiple small XML files. After importing these files, I will use the XmlModify and XQuery to sort them. I'm not clear on the multiple XML files processing.
    1. Can the BDB XML ensure that all these XML files were sorted or how to update all documents with same logic.
    2. If I want export all these sorted documents, how can I ensure these files processed in sequence? Which document needs process first?
    The export method:
    public void export(String outputfile)throws Exception{
    final int BLOCK_SIZE = 5 * 1024 * 1024; // 5Mb
    try{
    File theFile = new File(outputfile);
    FileOutputStream fos = new FileOutputStream(theFile);
    byte[] buff= new byte[BLOCK_SIZE];                         
    XmlResults rs = container.getAllDocuments(new XmlDocumentConfig());               
    while(rs.hasNext()){
         XmlDocument xmlDoc = rs.next().asDocument();
         XmlInputStream inputStream = xmlDoc.getContentAsXmlInputStream();                    
         long read=0;
         while(true){
         read = inputStream.readBytes(buff, BLOCK_SIZE);
    fos.write(buff,0,(int)read);                    
         if(read < BLOCK_SIZE) break;
    inputStream.delete();
    xmlDoc.delete();
    rs.delete();
    //MUST CLOSE!
    fos.close();               
    catch(Exception e){
    System.err.println("Error exporting file from container " + container);
    System.err.println(" Message: " + e.getMessage());
    Thanks.

  • How to use SQL functions in the queries

    hey guys i wanna know how to use SQL functions in the queries is it possible or not .

    Hi,
    Wat exactly that set values are?
    those from sql query?
    How to use count():
    The COUNT() function returns the number of rows that matches a specified criteria.
    SQL COUNT(column_name) Syntax
    The COUNT(column_name) function returns the number of values (NULL values will not be counted) of the specified column:
    SELECT COUNT(column_name) FROM table_name
    SQL COUNT(*) Syntax
    The COUNT(*) function returns the number of records in a table:
    SELECT COUNT(*) FROM table_name
    SQL COUNT(DISTINCT column_name) Syntax
    The COUNT(DISTINCT column_name) function returns the number of distinct values of the specified column:
    SELECT COUNT(DISTINCT column_name) FROM table_name
    The IN function helps reduce the need to use multiple OR conditions.
    The syntax for the IN function is:
    SELECT columns
    FROM tables
    WHERE column1 in (value1, value2, .... value_n);

  • I just restored my iPhone so i could get rid of my other data but all it did was increase my other data by .5 gbs. How do i get rid of the "other data"?

    I just restored my iPhone so i could get rid of my other data but all it did was increase my other data by .5 gbs. How do i get rid of the "other data"?

    kmsammon wrote:
    ... How do i get rid of the "other data"?
    You will Not be able to get rid of it entirely...
    Other is usually around 1 GB...
    A  ' Large Other ' usually indicates Corrupt Data...
    First Try a Restore from Backup...
    But... if the Large Other Persists, that is an Indicator of Corrupt Data in the Backup...
    Then a Restore as New is the way to go...
    Details Here  >  http://support.apple.com/kb/HT1414
    More Info Here...
    maclife.com/how_remove_other_data_your_iphone

  • What do I do?I can open youtube but could not play the video's? I can play the video in youtube when I use Explorer.

    I have updated to Firefox 14.01 and Java.
    I could open youtube but could not play the video's.
    But when I use Internet Explorer the video in youtube is fine.
    What should I do?

    There are some compatibility issues between the latest Flash player and some Firefox add-ons or settings.
    * Support article with workarounds: [[Flash 11.3 doesn't load video in Firefox]].
    * If you want to keep using your Real downloader, consider disabling the new protected mode in Flash 11.3. See this support article from Adobe under the heading "Last Resort": [http://forums.adobe.com/message/4468493 Adobe Forums: How do I troubleshoot Flash Player's protected mode for Firefox?]

  • I want to create a "Play All" chapter marker that will play the video from start to finish in addition to the standard chapters I have-I guess I can auto start the DVD but would prefer a button-how and where would I put this "play all" marker??

    I want to create a "Play All" chapter marker that will play the video from start to finish in addition to the standard chapters I have…I guess I can auto start the DVD but would prefer a button…how and where would I put this "play all" marker?? Thanks..

    The start chapter button is a play the whole movie button regardless of how many other markers you have.
    Once a DVD starts playing it continues to the end.
    Chapters marker simply gives the viewer a place to start playback whether it be the start, middle or near the end.
    Al

  • Im having problem with the dvd quality, I'm using compressor to convert the video fils from apple prores to mpeg2 .It doesn't matter how long my video is even if its just 5 minutes  I'm getting cut edges in the video , does anyone have any idea ?

    Im having a problem with the dvd quality, I'm using compressor to convert the video fils from apple prores to mpeg2 .It doesn't matter how long my video is even if its just 5 minutes  I'm getting cut edges/lines  in the video specialy if i have titles it comes up really bad , I took the same video to a friend of mine who have PC and he uses Encore , did the encoding there and it was just fine no problems! BTW I tried using doferent setings in compressor from CBR and VBR I even pushed up the setings to 8 or 9 BR and still no luck !
    does anyone have any idea ?
    Thanks in advence ...

    Let's focus attention on just the Sony. (What model and what resolution are you shooting?)
    For now, I'll assume you're shooting 1080i.
    Take a representaive clip  into a new sequence. Add a title.
    In your sequence, make sure field dominance is set to Upper.
    Set render settings to Pro Res 422.
    After rendering, export QT self contained.
    Import into Compressor (I'm now referring to v3.5).
    Select the 90 minute Best quality DVD preset.
    Open frame controls and turn on (click the gear icon). Set Resize filter to Best.
    Submit burn and check quality on TV.
    Good luck.

  • TA25335 How do I get my QuickTime download to enable my videos online. It was required to play the video, but the videos still aren't able to play.

    How do I get my QuickTime download to enable my videos online. It was required to play the video, but the videos still aren't able to play.

    It is also saying when I try to play videos from my computer that there is a  I/O error. When I try to play movies from the hard drive it is saying 'This file is not a movie file."

  • How do I un-embed a video? I deleted the youtube video from ibooks author on my iMac, but it won't delete from the ipad ibook view. It shows up in my book as a blank bar until I tap it, then it plays the video.

    How do I un-embed a youtube video? I deleted the youtube video from ibooks author on my iMac, but it won't delete from the ipad ibook view. It shows up in my book as a blank bar until I tap it, then it plays the video. I made a new page after deleting the original page in which I inserted the video; it still shows up. Only the advertisement from the video plays.

    delete the media widget in Author
    re-preview to your iPad
    hope this helps...

  • I took some videos using my iPhone 5c and uploaded them to my computer.  I can play the videos in iPhoto, but when I open them in QuickTime, they are dark and silent.  Why can't I see them in QuickTime?

    I took some videos using my iPhone 5c and uploaded them to my computer.  I can play the videos in iPhoto, but when I open them in QuickTime, they are dark and silent.  Why can't I see them in QuickTime?

    Make a temporary, backup copy (if you don't already have a backup copy) of the library and apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot. 
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • How do I correct blurry pictures in iMovie? They are clear when I pause the video but blurry when playing the video.

    How do I correct blurry pictures in iMovie? They are clear when I pause the video but blurry when playing the video.

    Try sharing and see if the effect is still present when you play the shared movie.  It can happen when playing within iMovie if there are insufficient resources to play a full resolution.
    Geoff.

  • I DONT KNOW HOW TO PLAY THE VIDEO ON MY IPOD

    i dont know how to play the video on my ipod when i select it from the menu the song starts playing but there is no video all there is is a little picture in the top right hand corner can someone help please?

    the videos of course have to be in the correct format that's why an app like ipod itunes will be helpful in making your videos viewable you can even do the encoding yourself i might suggest checking out this helpful guide http://www.macworld.com/article/48480/2005/12/convertvideo.html once your videos have been converted the videos may appear in the Movies part of your itunes desktop hopefull this helps

  • I own an iPod Classic.  In iTunes, some podcast videos cant be played on teh iPod, so I set it to convert the video to the right format for the iPod.  It used to work perfectly, but now for some reason, it doesnt convert properly!  When I play the video,

    I own an iPod Classic.  In iTunes, some podcast videos cant be played on teh iPod, so I set it to convert the video to the right format for the iPod.  It used to work perfectly, but now for some reason, it doesnt convert properly!  When I play the video, it is just a white screen, but the sound can be heard.  Can anyone help??????

    Your source video file is probably muxed.
    Neither QT Pro or iTunes has the ability to successfully encode a muxed video file with audio. You'll end up with video and no audio.
    See: iPod plays video but not audio of some exported files.
    You'll need to use some other third-party software to do the conversion. There's a handful of software available. Just search the forums and you'll find many titles mentioned.
    Try MPEG Streamclip.

  • HOW TO KEEP SCREEN ON WHEN USING GPS OR SHOOTING THE VIDEO

    I was wondering if there any setting I could leave the screen on when using GPS or shooting the video, I'm currently set backlight timeout is 2 mins. After 2 mins device will automatically out and I have to reenter the password for continue my video, This is very inconvenience when using GPS or shooting the video.  
    Is there any one out there can assist? thanks in advance. 

    Did you get an answer?

  • Question - applet using JMF for playing .mov

    I develop an applet using JMF for playing .mov. It works fine, and the applet starts normally. Even my applet works fine from other computers in our LAN (The applet runs ok without JMF). But only on one PC it doesn't work and I get the following message
    Failed to configure: com.sun.media.PlaybackEngine@a7c45e
    Bad header in the media: moov atom not present
    Error: Unable to realize com.sun.media.PlaybackEngine@a7c45e
    FATAL ERROR: Failed to realize: failed to parse the input media.
    Exception in thread "JMF thread: SendEventQueue: com.sun.media.content.unknown.Handler" java.lang.Error: Failed to realize: failed to parse the input media.
    at PlayerApplet.Fatal(PlayerApplet.java:201)
    at PlayerApplet.controllerUpdate(PlayerApplet.java:191)
    at com.sun.media.BasicController.dispatchEvent(BasicController.java:1254)
    at com.sun.media.SendEventQueue.processEvent(BasicController.java:1286)
    at com.sun.media.util.ThreadedEventQueue.dispatchEvents(ThreadedEventQueue.java:65)
    at com.sun.media.util.ThreadedEventQueue.run(ThreadedEventQueue.java:92)
    My html:
    <html>
    <head><title>PlayerApplet</title></head>
    <body>
    <applet code="PlayerApplet.class" archive="fobs4jmf.jar, customizer.jar, jmf.jar, mp3plugin.jar, sound.jar, multiplayer.jar, mediaplayer.jar" width=640 height=510>
    <param name=file value="safexmas.mov">
    </applet>
    </body>
    </html>
    Anyone can help me?
    Thanks for your time

    It started to work but I had to install fobs4jmf on the client computer.
    And put .dll to windows/system33 directory. But how can I play video using applet in browser without installing any software on the client machine?

Maybe you are looking for