Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

create and disply movie from incoming buffers



Hello,

 

I’d like to display a movie using QuickTime, but my data are coming from another app as a series of buffers. The problem is I can’t find any way to create a Movie without using a file or an URL. I haven’t found any tutorial presenting this process.

I’ve tried the way presented below but there isn’t any data printed on the screen.

 

Any idea would be appreciated.

 

Thanks

 

Aymeric

 

 

Public class MyMovieControl {

 

Movie m;

Track track;

MovieController mc;

QTComponent qtc;

           

public MyMovieControl(int width, int height) {

QTSession.open();

            m = new Movie();

            track = m.addTrack(width, height);

            mc = new MovieController(m);

            qtc = QTFactory.makeQTComponent(mc);

}

 

public Component getComponent() {

            return (Component)qtc;

}

 

public void sendBuffer(byte[] data) {

            QTHandleRef data = "" QTHandle(data);

            DataRef dataRef = new DataRef(data);

            VideoMedia media = new VideoMedia(track, timescale, dataRef);

            Track.insertMedia(position, …duration…);

}

 

}

 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.