Search in sources :

Example 1 with VideoModel

use of com.android.mms.model.VideoModel in project android-aosp-mms by slvn.

the class SlideshowEditor method changeVideo.

public void changeVideo(int position, Uri newVideo) throws MmsException {
    VideoModel video = new VideoModel(mContext, newVideo, mModel.getLayout().getImageRegion());
    SlideModel slide = mModel.get(position);
    slide.add(video);
    slide.updateDuration(video.getDuration());
}
Also used : SlideModel(com.android.mms.model.SlideModel) VideoModel(com.android.mms.model.VideoModel)

Aggregations

SlideModel (com.android.mms.model.SlideModel)1 VideoModel (com.android.mms.model.VideoModel)1