com.googlecode.mp4parser.authoring.builder.smoothstreaming
Class FlatManifestWriterImpl

java.lang.Object
  extended by com.googlecode.mp4parser.authoring.builder.smoothstreaming.FlatManifestWriterImpl
All Implemented Interfaces:
ManifestWriter

public class FlatManifestWriterImpl
extends Object
implements ManifestWriter


Constructor Summary
FlatManifestWriterImpl()
           
 
Method Summary
 long[] calculateFragmentDurations(Track track, Movie movie)
          Calculates the length of each fragment in the given track (as part of movie).
 long getBitrate(Track track)
           
protected static long getDuration(Track track)
           
 String getManifest(Movie movie)
           
 void setIntersectionFinder(FragmentIntersectionFinder intersectionFinder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatManifestWriterImpl

public FlatManifestWriterImpl()
Method Detail

setIntersectionFinder

public void setIntersectionFinder(FragmentIntersectionFinder intersectionFinder)

getManifest

public String getManifest(Movie movie)
                   throws IOException
Specified by:
getManifest in interface ManifestWriter
Throws:
IOException

getBitrate

public long getBitrate(Track track)
Specified by:
getBitrate in interface ManifestWriter

calculateFragmentDurations

public long[] calculateFragmentDurations(Track track,
                                         Movie movie)
Calculates the length of each fragment in the given track (as part of movie).

Specified by:
calculateFragmentDurations in interface ManifestWriter
Parameters:
track - target of calculation
movie - the track must be part of this movie
Returns:
the duration of each fragment in track timescale

getDuration

protected static long getDuration(Track track)


Copyright © 2012. All Rights Reserved.