Package entagged.audioformats.mp4.util

Examples of entagged.audioformats.mp4.util.Mp4TagCoverField


     *      xxxx <-  id de l'info
     *       data
     *      ]
     */
    public Mp4Tag read( RandomAccessFile raf ) throws CannotReadException, IOException {
        Mp4Tag tag = new Mp4Tag();
       
        Mp4Box box = new Mp4Box();
        byte[] b = new byte[4];
       
        //Get to the facts
        //1-Searching for "moov"
        seek(raf, box, "moov");
       
        //2-Searching for "udta"
        seek(raf, box, "udta");
       
        //3-Searching for "meta"
        seek(raf, box, "meta");
       
        //4-skip the meta flags
        raf.read(b);
        if(b[0] != 0)
            throw new CannotReadException();
       
        //5-Seek the "ilst"
        seek(raf, box, "ilst");
        int length = box.getOffset() - 8;
       
        int read = 0;
        while(read < length) {
            b = new byte[8];
            raf.read(b);
            box.update(b);
                          
            int fieldLength = box.getOffset() - 8;
            b = new byte[fieldLength];
            raf.read(b);
           
            tag.add(createMp4Field(box.getId(), b));
            read += 8+fieldLength;
        }
       
        System.out.println(tag);
        return tag;
View Full Code Here


    protected String getGenreId() {
        return "gen";
    }
   
    protected TagField createArtistField(String content) {
        return new Mp4TagTextField("ART", content);
    }
View Full Code Here

   
    protected TagField createArtistField(String content) {
        return new Mp4TagTextField("ART", content);
    }
    protected TagField createAlbumField(String content) {
        return new Mp4TagTextField("alb", content);
    }
View Full Code Here

    }
    protected TagField createAlbumField(String content) {
        return new Mp4TagTextField("alb", content);
    }
    protected TagField createTitleField(String content) {
        return new Mp4TagTextField("nam", content);
    }
View Full Code Here

    }
    protected TagField createTrackField(String content) {
        return new Mp4TagTextNumberField("trkn", content);
    }
    protected TagField createYearField(String content) {
        return new Mp4TagTextField("day", content);
    }
View Full Code Here

    }
    protected TagField createYearField(String content) {
        return new Mp4TagTextField("day", content);
    }
    protected TagField createCommentField(String content) {
        return new Mp4TagTextField("cmt", content);
    }
View Full Code Here

    }
    protected TagField createCommentField(String content) {
        return new Mp4TagTextField("cmt", content);
    }
    protected TagField createGenreField(String content) {
        return new Mp4TagTextField("gen", content);
    }
View Full Code Here

    }
    protected TagField createTitleField(String content) {
        return new Mp4TagTextField("nam", content);
    }
    protected TagField createTrackField(String content) {
        return new Mp4TagTextNumberField("trkn", content);
    }
View Full Code Here

TOP

Related Classes of entagged.audioformats.mp4.util.Mp4TagCoverField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.