uri = @"https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.ogv";
gst_backend = [[GStreamerBackend alloc] init:self videoView:video_view];
+
+ time_slider.value = 0;
+ time_slider.minimumValue = 0;
+ time_slider.maximumValue = 0;
}
- (void)viewDidDisappear:(BOOL)animated
video_width_constraint.constant = correct_width;
video_height_constraint.constant = view_height;
}
-
- time_slider.frame = CGRectMake(time_slider.frame.origin.x, time_slider.frame.origin.y, toolbar.frame.size.width - time_slider.frame.origin.x - 8, time_slider.frame.size.height);
}
/*
#import "VideoViewController.h"
#import <AssetsLibrary/AssetsLibrary.h>
+#define ENABLE_IOS_LIBRARY false
+
@interface LibraryViewController ()
@end
- (void)refreshMediaItems {
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSAllDomainsMask, YES);
+
NSString *docsPath = [paths objectAtIndex:0];
+ NSMutableArray *entries;
+
+#if ENABLE_IOS_LIBRARY
/* Entries from the Photo Library */
- NSMutableArray *entries = [[NSMutableArray alloc] init];
+ entries = [[NSMutableArray alloc] init];
ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init];
[library enumerateGroupsWithTypes:ALAssetsGroupAll
usingBlock:^(ALAssetsGroup *group, BOOL *stop)
}
];
self->libraryEntries = entries;
-
+#endif
/* Retrieve entries from iTunes file sharing */
entries = [[NSMutableArray alloc] init];
for (NSString *e in [[NSFileManager defaultManager] contentsOfDirectoryAtPath:docsPath error:nil])
media_height = 240;
gst_backend = [[GStreamerBackend alloc] init:self videoView:video_view];
+
+ time_slider.value = 0;
+ time_slider.minimumValue = 0;
+ time_slider.maximumValue = 0;
}
- (void)viewDidDisappear:(BOOL)animated
video_width_constraint.constant = correct_width;
video_height_constraint.constant = view_height;
}
-
- time_slider.frame = CGRectMake(time_slider.frame.origin.x, time_slider.frame.origin.y, toolbar.frame.size.width - time_slider.frame.origin.x - 8, time_slider.frame.size.height);
}
/*