How to View Album as Only THumbnails and Enlarged Image

I hope I can explain this right...
When I click an album on my page, it takes me to a page of smaller thumbnails of all of the images in that album and the thumbnails are scattered around the page. When I click on any of the images, it takes me to a page that shows a strip of square thumbs across the top of the page with one enlarged image beneath, with the option of clicking on any of the thumbs or starting a slideshow, etc. Is there a way you can be brought directly to this page from the main albums page and bypass the middle page of medium sized thumbs? That middle page seems unnecessary and I'd be psyched to learn how to skip it. Thanks!!

jimrc wrote:
Thanks Cyclosaurus. That works great and does just what I wanted. There are a few small glitches though that you may be able to help with.
http://web.me.com/jrcphoto/jrcphoto/GALLERY/GALLERY.html
When clicking on the People gallery, the page we're bypassing blinks briefly before going to the thumbnail page. This doesn't happen on the other pages. Any thoughts?
It's servers latency or you browser caching, it's part of async processing (AJAX).
Also, there is a Back to Album link in the upper left which takes you to a blank page and then you have to click the Back to Index link to get to the main Gallery page. Can I get the Back to Index link on the other page instead?
Give this a try:
<script type='text/javascript'>
_base=parent.window.location.href;
if(_base.indexOf('#')==-1){parent.window.location=_base.split('#')[0]+'#0';}
var albumsIndexURL = 'http://web.me.com/jrcphoto/jrcphoto/GALLERY/GALLERY.html'; // this is you album URL, change this if needed
function newBtI() {
if (parent.widgets) {
headerControls = parent.document.getElementsByClassName('com-apple-iweb-widget-detailview')[0];
backToAlbumDiv = headerControls.getElementsByClassName('left')[0];
backToAlbumAnchors = backToAlbumDiv.getElementsByTagName('a');
for (btaai=0;btaai<backToAlbumAnchors.length;btaai++) {
backToAlbumAnchors[btaai].removeAttribute('onclick');
backToAlbumAnchors[btaai].setAttribute('href', ('' + albumsIndexURL));
chknewBtI = setInterval('newBtI()', 500);
</script>

Similar Messages

  • How can I back up only iTunes and iPhoto to an external HDD

    How can I back up only iTunes and iPhoto, so I can reformat my computer and restore the files in these two programs?  I have an external, but its not big enough to create a time machine copy of my HDD.  I have an iMac running OS X Yosemite 10.10.1.  I am also running Windows 8 via Parallels and I would prefer to keep this partition in tact, but if thats not possible I'll re instal that program.  
    Some how Mackeeper and a couple other shady programs have been installed on my computer and what I want to do is reformat my computer. 

    You could drag the iPhoto and iTunes folders to the external drive and move them back later.
    However, it might be easier to just remove MacKeeper and other adware.
    See the post by John Galt in this thread about removing MacKeeper.
    Apple Support help for removing adware can be found here: Remove unwanted adware that displays pop-up ads and graphics on your Mac - Apple Support

  • PLEASE HELP ME.  Some important emails have gone to an archive mail box and i really need them.  Can someone please help me with how to view the archive email box and the emails that are in there?

    PLEASE HELP ME.  Some important emails have gone to an archive mail box and i really need them.  Can someone please help me with how to view the archive email box and the emails that are in there?

    http://kb.mozillazine.org/Recovering_deleted_mail_accounts

  • Aperture constantly rebuilds same thumbnails and preview images.

    What is behind Aperture 2's pathological obsession with constantly rebuilding the same thumbnails and preview images, and is there any way to stop it? I can't link this performance killing problem to any specific action on my part; I see it in many different circumstances. For example:
    (1) Putting the system to sleep while Aperture is open then resuming later
    (2) Hiding the Aperture app, working on other memory consuming apps for a while (e.g. Photoshop), then returning to Aperture
    (3) Switching from one project to another via the "Projects" tab.
    (4) Quitting Aperture then restarting it.
    I can say with 100% certainty that this is not the result of some previous thumbnailing/preview generation operation that was interrupted. The # of images in the project doesn't seem to have a bearing. Nor does the type of camera or image type I've imported from the camera.
    I can be happily working in Aperture, working with a project created months ago, when all of a sudden the "generating thumbnails" message and the dreaded Wait Cursor appear and my speedy, well-apportioned iMac grinds to a total halt while Aperture does the same ** thing it's already completed before.
    The only hit I get when searching Apple's support site mentions a known bug for those who upgraded from Aperture 1 to version 2 but definitely does not apply to me here.

    Thank you for the reply Tony. I've followed your suggestion but Aperture continues to (apparently) randomly decide to regenerate thumbnails and previews.
    The problem has become bad enough that I've had to stop using Aperture completely.
    Doesn't anybody from Apple read these forums? I can't possibly be the only Aperture user in the world to experience this problem...

  • Web Gallery - need file name on thumbnail and large image

    I think I have tried all the CS3 templates, but haven't found what our client is requesting. Is there a template that shows the file name on both the thumbnail and large image, and will make large images of 600-800 pixels (long dimension)?
    Thanks in advance,
    Dan Clark

    Thanks for your reply Nini. Yes, I had gone through all the presets and options. Was hoping I might have missed something, or that someone knew a trick/workaround. We've been using Table-Minimal for years, which is my overall favorite. I like to ability to make a large image, but it can't do what the client is requesting. They've made a list of selects from some very large galleries (200-300 shots each), and now want to jump directly to the shots they've previously chosen, in order to show their coworkers. I've also considered "Add Numeric Links", but I find that either confuses people, or they give me that number, instead of the file name/number, which makes a lot of extra work for us.

  • How come in Pages, i cannot drag and drop images?

    how come in Pages, i cannot drag and drop images?

    Yes you can in all versions.
    It helps if you actually describe what you are doing.
    Where are you dragging it from and where are you dragging it to?
    In what version of Pages?
    I suspect you are trying to drag an image into a Table, Header or Footer in Pages 5, which is no longer possible. Feature removed by Apple.
    Peter

  • How to view Albums in Genres within iPod on ipad?

    When within genres, i can only seem to view a list of all tracks. How do i view albums within genres?
    Thanks.

    AFAIK and from the limited research that I have done, you can't do that on the iPad. Apparently the feature is available on the iPhone (?) but not on the iPad.

  • HOW TO VIEW PAGE OF ONLIE BOOK IN PDF FILE

    i HAVE A PDF FILE THAT i AM TRYING TO OPEN AND READ IT IS A ONLINE MANUAL THAT ONLY SHOWS 8 PAGES OF A BOOK THAT IS ABOUT 400 PAGES CAN i VIEW THE RESET OF THESE PAGE BY CONVERTING THE FILE OR NOT?

    I just figured out how to view the body of the SOAP error. (I just needed to cast the Exception as a SOAPFaultException to view the details).
    This is the error I consistently get: Internal Error: Session is not available. Aborting. (SBL-ODU-01006)
    So now my question - has anybody else run into this?
    I log in - get my session id. Try to call a method and get (2 or 3 times in a row) this 'Session not available' error and then it works. I try and make another method call and get 2 or 3 more 'Session not available' errors.
    I thought it might be a timing issue (where I am making too many requests/second) so I added a little 'sleep' time between method calls with no difference in response.
    Ideas?

  • How to create a value only  article and process it

    pls tell me how to create a value only article,  group article and
    hierarchy article and process the same in Is-retail

    Hi,
    Pl use the following link:
    http://help.sap.com/saphelp_ides/helpdata/en/fa/6a376542ef11d2a64b00104b57eaa3/frameset.htm
    Regards,
    S.V.ManiKumaar

  • How to view customer report in fi and activated new gl

    Hi Friends,
    can u please explain the how to view customer report normal we can see fbl5n
    but here activated NEW GL please tell the tcode and path and how see.
    Thanks,

    After New GL implementation also we are using the Customer Line item report as FBL5N
    Balances - FD10N
    The below are few reports
    S_ALR_87012167 - Accounts Receivable Information System
    S_ALR_87012172 - Customer Balances in Local Currency
    S_ALR_87012186 - Customer Sales
    S_ALR_87012169 - Transaction Figures: Account Balance
    S_ALR_87012197 - List of Customer Line Items
    S_ALR_87012174 - List of Customer Open Items
    Tables: BSID, BSAD,
    Thanks

  • How to view folders with folders first and then files?

    I come from a Windows world but am loving the Mac world! But one thing I haven't been able to figure out is how to view folders with all the folders first and then the files? Right now, it sorts everything in alphabetical order, intermixing the folders and files. I like being able to see the folders sorted at the top and then the files. Is there a way to do this?

    If you want a more advanced browser, Pathfinder generally comes highly recommended.
    I'm not aware of a way to make folders sort on top. I generally detest that feature in Windows, because it messes up keyboard navigation. Both operating systems support jumping to a file by starting to type a name, but on Windows you don't know where you end up. If I have a file called "notes", I know that typing "N" will send me somewhere very close to the file, and a few arrow presses brings me to it - if I do it on a Mac. If I do it on Windows, it depends on what is selected - if it's a folder or nothing, I jump to the first folder beginning with N, but if it's a file, I jump to the first file beginning with N - in a completely different part of the list. I do use folder grouping in some windows on the Mac, though, by adding a space to the name. Ideally, it should be a per-window setting.

  • Black thumbnails and negative images after import

    I'm experiencing a problem with iPhoto 6 and some images importing with black thumbnails and negative main images.
    I've tried replacing the sRGB Profile.icc (it wasn't missing for me), but that didn't work.
    Any suggestions?
    1.83 GHz Intel Core Duo   Mac OS X (10.4.5)  

    Are those negative images B/W photos? If so they may be Grayscale mode. Download the "Embed sRGB Profile" Automator application form Toad's Cellar and drop the original files for those photos onto it. If it's a grayscale mode file it will correct the situation. iPhoto 6 does not play well with Grayscale images.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Thumbnails and expanded images

    Am building a website in JSC for a realtor who wants to sell properties through it. I'd like to be able to have property thumbnail images, which on selection by a user, are expanded to true size and appear in a separate web page.
    Any pointers?
    Regards, Paul.

    Hello.
    You can use Image Hyperlink component. This component can display both text and an image.
    Create on main page some Image Hyperlink components and set them url property to pages with big images.
    Hope this helps.
    Maks.

  • PS CS6 Win7 taskbar thumbnails and peek images blank

    Most the the Creative Suite misbehaves with respect to the Windows 7 taskbar. One behavior that's particularly unproductive is seeing a bunch of gray icons for open application windows, and having the associated full size peek image grayed out too. I frequently work with many open image windows that I prefer to keep undocked. If they're minimized, more often than not there's a gray taskbar preview.
    Screen capture example attached.
    Once I click on the thumbnail and activate a window, the thumbnail taskbar image updates. But when I switch between applications, the updated thumbnails will usually go blank next time I peek at the PS6 taskbar.

    I'm not seeing misbehavior, in that I appear to be getting all the thumbnails, but interestingly I'm not seeing the titles in the Taskbar Live Previews like you are.  Maybe it's because I have the Taskbar set to show buttons with the names in them...  I can also see the document title if I hover over the icon.
    Regarding why you would be failing to see the document images...  Seems quite likely that would be a display driver issue.  What video card and driver version do you have? 
    Sorry if we discussed these details before; I recognize your username though I don't recall what we discussed in other threads.
    -Noel

  • How to play/record at same time and save image from video

    i started working on a project and that made my life hell although it was so simple. reason was that i couldnt find small/simple code to understand problems and no proper documents. . finally i have done that. and here is the code (without much complex code of interface). it shows vidoe, records a small part of it at start and takes a snapshot (no buttons or events involved). hope it might help someone starting to learn JMF.
    import java.io.*;
    import java.awt.*;
    import java.net.*;
    import java.awt.event.*;
    import java.util.Vector;
    import javax.media.*;
    import javax.media.rtp.*;
    import javax.media.rtp.event.*;
    import javax.media.rtp.rtcp.*;
    import javax.media.protocol.*;
    import javax.media.protocol.DataSource;
    import javax.media.format.AudioFormat;
    import javax.media.format.VideoFormat;
    import javax.media.Format;
    import javax.media.format.FormatChangeEvent;
    import javax.media.control.BufferControl;
    import javax.media.control.FrameGrabbingControl;
    import javax.imageio.ImageIO;
    import java.util.Date;
    import javax.media.util.BufferToImage;
    import java.awt.image.BufferedImage;
    * AVReceive2 to receive RTP transmission using the new RTP API.
    public class AVReceive2 implements ReceiveStreamListener, SessionListener,
    ControllerListener
    public static DataSource ds2, ds, ds3;
    String sessions[] = null;
    RTPManager mgrs[] = null;
    Vector playerWindows = null;
    boolean dataReceived = false;
    Object dataSync = new Object();
    public AVReceive2(String sessions[]) {
    this.sessions = sessions;
    public static DataSource getData() {
    return ds;
    protected boolean initialize() {
    try {
    InetAddress ipAddr;
    SessionAddress localAddr = new SessionAddress();
    SessionAddress destAddr;
    mgrs = new RTPManager[sessions.length];
    playerWindows = new Vector();
    SessionLabel session;
    // Open the RTP sessions.
    for (int i = 0; i < sessions.length; i++) {
    // Parse the session addresses.
    try {
    session = new SessionLabel(sessions);
    } catch (IllegalArgumentException e) {
    System.err.println("Failed to parse the session address given: " + sessions[i]);
    return false;
    System.err.println(" - Open RTP session for: addr: " + session.addr + " port: " + session.port + " ttl: " + session.ttl);
    mgrs[i] = (RTPManager) RTPManager.newInstance();
    mgrs[i].addSessionListener(this);
    mgrs[i].addReceiveStreamListener(this);
    ipAddr = InetAddress.getByName(session.addr);
    if( ipAddr.isMulticastAddress()) {
    // local and remote address pairs are identical:
    localAddr= new SessionAddress( ipAddr,
    session.port,
    session.ttl);
    destAddr = new SessionAddress( ipAddr,
    session.port,
    session.ttl);
    } else {
    localAddr= new SessionAddress( InetAddress.getLocalHost(),
    session.port);
    destAddr = new SessionAddress( ipAddr, session.port);
    mgrs[i].initialize( localAddr);
    // You can try out some other buffer size to see
    // if you can get better smoothness.
    BufferControl bc = (BufferControl)mgrs[i].getControl("javax.media.control.BufferControl");
    if (bc != null)
    bc.setBufferLength(350);
    mgrs[i].addTarget(destAddr);
    } catch (Exception e){
    System.err.println("Cannot create the RTP Session: " + e.getMessage());
    return false;
    // Wait for data to arrive before moving on.
    long then = System.currentTimeMillis();
    long waitingPeriod = 30000; // wait for a maximum of 30 secs.
    try{
    synchronized (dataSync) {
    while (!dataReceived &&
    System.currentTimeMillis() - then < waitingPeriod) {
    if (!dataReceived)
    System.err.println(" - Waiting for RTP data to arrive...");
    dataSync.wait(1000);
    } catch (Exception e) {}
    if (!dataReceived) {
    System.err.println("No RTP data was received.");
    close();
    return false;
    return true;
    public boolean isDone() {
    //return playerWindows.size() == 0;
    return false;
    * Close the players and the session managers.
    protected void close() {
    for (int i = 0; i < playerWindows.size(); i++) {
    try {
    ((PlayerWindow)playerWindows.elementAt(i)).close();
    } catch (Exception e) {}
    playerWindows.removeAllElements();
    // close the RTP session.
    for (int i = 0; i < mgrs.length; i++) {
    if (mgrs[i] != null) {
    mgrs[i].removeTargets( "Closing session from AVReceive2");
    mgrs[i].dispose();
    mgrs[i] = null;
    PlayerWindow find(Player p) {
    for (int i = 0; i < playerWindows.size(); i++) {
    PlayerWindow pw = (PlayerWindow)playerWindows.elementAt(i);
    if (pw.player == p)
    return pw;
    return null;
    PlayerWindow find(ReceiveStream strm) {
    for (int i = 0; i < playerWindows.size(); i++) {
    PlayerWindow pw = (PlayerWindow)playerWindows.elementAt(i);
    if (pw.stream == strm)
    return pw;
    return null;
    * SessionListener.
    public synchronized void update(SessionEvent evt) {
    if (evt instanceof NewParticipantEvent) {
    Participant p = ((NewParticipantEvent)evt).getParticipant();
    System.err.println(" - A new participant had just joined: " + p.getCNAME());
    * ReceiveStreamListener
    public synchronized void update( ReceiveStreamEvent evt) {
    RTPManager mgr = (RTPManager)evt.getSource();
    Participant participant = evt.getParticipant();     // could be null.
    ReceiveStream stream = evt.getReceiveStream(); // could be null.
    if (evt instanceof RemotePayloadChangeEvent) {
    System.err.println(" - Received an RTP PayloadChangeEvent.");
    System.err.println("Sorry, cannot handle payload change.");
    System.exit(0);
    else if (evt instanceof NewReceiveStreamEvent) {
    try {
    stream = ((NewReceiveStreamEvent)evt).getReceiveStream();
    //DataSource
    ds2 = stream.getDataSource(); // this original cant be used now
    // ds is used to play video
    ds = Manager.createCloneableDataSource(ds2);
    // ds3 is used to record video
    ds3 = ((SourceCloneable)ds).createClone();
    // Find out the formats.
    RTPControl ctl = (RTPControl)ds.getControl("javax.media.rtp.RTPControl");
    if (ctl != null){
    System.err.println(" - Recevied new RTP stream: " + ctl.getFormat());
    } else
    System.err.println(" - Recevied new RTP stream");
    if (participant == null)
    System.err.println(" The sender of this stream had yet to be identified.");
    else {
    System.err.println(" The stream comes from: " + participant.getCNAME());
    // create a player by passing datasource to the Media Manager
    Player p = javax.media.Manager.createPlayer(ds);
    if (p == null)
    return;
    p.addControllerListener(this);
    p.realize();
    PlayerWindow pw = new PlayerWindow(p, stream);
    playerWindows.addElement(pw);
    // Notify intialize() that a new stream had arrived.
    synchronized (dataSync) {
    dataReceived = true;
    dataSync.notifyAll();
    } catch (Exception e) {
    e.printStackTrace();
    return;
    else if (evt instanceof StreamMappedEvent) {
    if (stream != null && stream.getDataSource() != null) {
    DataSource ds = stream.getDataSource();
    // Find out the formats.
    RTPControl ctl = (RTPControl)ds.getControl("javax.media.rtp.RTPControl");
    System.err.println(" - The previously unidentified stream ");
    if (ctl != null)
    System.err.println(" " + ctl.getFormat());
    System.err.println(" had now been identified as sent by: " + participant.getCNAME());
    else if (evt instanceof ByeEvent) {
    System.err.println(" - Got \"bye\" from: " + participant.getCNAME());
    PlayerWindow pw = find(stream);
    if (pw != null) {
    pw.close();
    playerWindows.removeElement(pw);
    * ControllerListener for the Players.
    public synchronized void controllerUpdate(ControllerEvent ce) {
    Player p = (Player)ce.getSourceController();
    if (p == null)
    return;
    // Get this when the internal players are realized.
    if (ce instanceof RealizeCompleteEvent) {
    PlayerWindow pw = find(p);
    if (pw == null) {
    // Some strange happened.
    System.err.println("Internal error!");
    System.exit(-1);
    pw.initialize();
    pw.setVisible(true);
    p.start();
    try {
    // make it wait so that video can start otherwise image will be null. u must call this method with a button
    Thread.sleep(2500);
    catch (Exception e) {
    e.printStackTrace();
    // Grab a frame from the capture device
    FrameGrabbingControl frameGrabber = (FrameGrabbingControl) p.getControl(
    "javax.media.control.FrameGrabbingControl");
    Buffer buf = frameGrabber.grabFrame();
    // Convert frame to an buffered image so it can be processed and saved
    Image img = (new BufferToImage( (VideoFormat) buf.getFormat()).
    createImage(buf));
    BufferedImage buffImg = new BufferedImage(img.getWidth(null),
    img.getHeight(null),
    BufferedImage.TYPE_INT_RGB);
    Graphics2D g = buffImg.createGraphics();
    g.drawImage(img, null, null);
    // Overlay curent time on image
    g.setColor(Color.RED);
    g.setFont(new Font("Verdana", Font.BOLD, 12));
    g.drawString( (new Date()).toString(), 10, 25);
    try { // Save image to disk as PNG
    ImageIO.write(buffImg, "jpeg", new File("c:\\webcam.jpg"));
    catch (Exception e) {
    e.printStackTrace();
    // this will record the video for a few seconds. this should also be called properly by menu or buttons
    record(ds3);
    if (ce instanceof ControllerErrorEvent) {
    p.removeControllerListener(this);
    PlayerWindow pw = find(p);
    if (pw != null) {
    pw.close();
    playerWindows.removeElement(pw);
    System.err.println("AVReceive2 internal error: " + ce);
    * A utility class to parse the session addresses.
    class SessionLabel {
    public String addr = null;
    public int port;
    public int ttl = 1;
    SessionLabel(String session) throws IllegalArgumentException {
    int off;
    String portStr = null, ttlStr = null;
    if (session != null && session.length() > 0) {
    while (session.length() > 1 && session.charAt(0) == '/')
    session = session.substring(1);
    // Now see if there's a addr specified.
    off = session.indexOf('/');
    if (off == -1) {
    if (!session.equals(""))
    addr = session;
    } else {
    addr = session.substring(0, off);
    session = session.substring(off + 1);
    // Now see if there's a port specified
    off = session.indexOf('/');
    if (off == -1) {
    if (!session.equals(""))
    portStr = session;
    } else {
    portStr = session.substring(0, off);
    session = session.substring(off + 1);
    // Now see if there's a ttl specified
    off = session.indexOf('/');
    if (off == -1) {
    if (!session.equals(""))
    ttlStr = session;
    } else {
    ttlStr = session.substring(0, off);
    if (addr == null)
    throw new IllegalArgumentException();
    if (portStr != null) {
    try {
    Integer integer = Integer.valueOf(portStr);
    if (integer != null)
    port = integer.intValue();
    } catch (Throwable t) {
    throw new IllegalArgumentException();
    } else
    throw new IllegalArgumentException();
    if (ttlStr != null) {
    try {
    Integer integer = Integer.valueOf(ttlStr);
    if (integer != null)
    ttl = integer.intValue();
    } catch (Throwable t) {
    throw new IllegalArgumentException();
    * GUI classes for the Player.
    class PlayerWindow extends Frame {
    Player player;
    ReceiveStream stream;
    PlayerWindow(Player p, ReceiveStream strm) {
    player = p;
    stream = strm;
    public void initialize() {
    add(new PlayerPanel(player));
    public void close() {
    player.close();
    setVisible(false);
    dispose();
    public void addNotify() {
    super.addNotify();
    pack();
    * GUI classes for the Player.
    class PlayerPanel extends Panel {
    Component vc, cc;
    PlayerPanel(Player p) {
    setLayout(new BorderLayout());
    if ((vc = p.getVisualComponent()) != null)
    add("Center", vc);
    if ((cc = p.getControlPanelComponent()) != null)
    add("South", cc);
    public Dimension getPreferredSize() {
    int w = 0, h = 0;
    if (vc != null) {
    Dimension size = vc.getPreferredSize();
    w = size.width;
    h = size.height;
    if (cc != null) {
    Dimension size = cc.getPreferredSize();
    if (w == 0)
    w = size.width;
    h += size.height;
    if (w < 160)
    w = 160;
    return new Dimension(w, h);
    public void record(DataSource ds) {
    Format formats[] = new Format[1];
    formats[0] = new VideoFormat(VideoFormat.CINEPAK);
    FileTypeDescriptor outputType =
    new FileTypeDescriptor("video.x_msvideo");
    Processor p = null;
    try {
    p = Manager.createRealizedProcessor(new ProcessorModel(ds,formats,
    outputType));
    } catch (IOException e) {
    e.printStackTrace();
    } catch (NoProcessorException e) {
    e.printStackTrace();
    } catch (CannotRealizeException e) {
    e.printStackTrace();
    // get the output of the processor
    DataSource source = p.getDataOutput();
    // create a File protocol MediaLocator with the location
    // of the file to
    // which bits are to be written
    MediaLocator dest = new MediaLocator("file://vvv.mpeg");
    // create a datasink to do the file writing & open the
    // sink to make sure
    // we can write to it.
    DataSink filewriter = null;
    try {
    filewriter = Manager.createDataSink(source, dest);
    filewriter.open();
    } catch (NoDataSinkException e) {
    e.printStackTrace();
    } catch (IOException e) {
    e.printStackTrace();
    } catch (SecurityException e) {
    e.printStackTrace();
    // now start the filewriter and processor
    try {
    filewriter.start();
    } catch (IOException e) {
    e.printStackTrace();
    p.start();
    try {
    Thread.sleep(10000);
    }catch(Exception e) { }
    p.close();
    filewriter.close();
    // stop and close the processor when done capturing...
    // close the datasink when EndOfStream event is received...
    public static void main(String argv[]) {
    //     if (argv.length == 0)
    //     prUsage();
    String[] a = new String[1];
    a[0] = ("192.168.0.45/4002");
    AVReceive2 avReceive = new AVReceive2(a);
    if (!avReceive.initialize()) {
    System.err.println("Failed to initialize the sessions.");
    System.exit(-1);
    // Check to see if AVReceive2 is done.
    try {
    while (!avReceive.isDone())
    Thread.sleep(1000);
    } catch (Exception e) {}
    System.err.println("Exiting AVReceive2");
    static void prUsage() {
    System.err.println("Usage: AVReceive2 <session> <session> ...");
    System.err.println(" <session>: <address>/<port>/<ttl>");
    //System.exit(0);
    }// end of AVReceive2
    so here the code. all messed up. coz i have just completed it and havent worked on interface or formatting this code properly (didnt have much time). but hope it will help. ask me if u have any questions. dont want others to have those basic problems that i had to face.

    u did a good effort for the JMF beginners i appreciate that....thanks i lot....i need you help in a project in
    which i have to connect to a d-link 950G IP camera and process that
    mpeg-4 stream (i know there are some problems in JMF and mpeg4) and show it over applet of JFrame.
    IP is 172.25.35.22
    Edited by: alchemist on Jul 16, 2008 6:09 AM

Maybe you are looking for