YouTubePlayer
Mobile – YouTubePlayer | CodeCanyon
YouTubePlayer his title this type of Mobile/iOS/Audio/Video This time I will review,made by ser-html, Mobile/iOS/Audio/Video is sold at a price of $10 in themeforest.
Xcode // iOS 7 // ios // native // player // search // xcode 5 // youtube //
Created | 14 October 13 |
Last Update | 14 October 13 |
Files Included | .h, .m, .pch |
Mobile OS | IOS 7.0.x |
OVERVIEW
YouTubePlayer is a full native iPhone app to search, list and play YouTube videos.
The video player is using MPMoviePlayerController (not WebView) so it’s fast and the video quality is better.
The video list is using native UITableView with automatic loading at the bottom. You can sort the search list by Relevance, Upload Date, View Count and Rating.
You can share the videos with iOS built in options (Facebook, Twitter, Flickr, Mail, SMS).
Really easy to setup, just copy and paste the code and use your custom search terms.
FEATURES
- Search, list and play YouTube videos
– Full screen and embedded video playback
– Infinite video listing
– Sort videos by Relevance, Upload Date, View Count and Rating
– Share videos (Facebook, Twitter, Flickr, Mail, SMS)
– Using MPMoviePlayerController
– Native user interface
REQUIREMENTS
- Xcode 5
– iOS 7
– ARC
INSTALLATION
1., You need the following (built in) libraries: AVFoundation, MobileCoreServices, SystemConfiguration, Foundation, CoreGraphics, UIKit.
To add libraries follow these steps: Click on the Targets -> Your app name -> and then the ‘Build Phases’ tab and then expand ‘Link Binary With Libraries’. Click the plus button in the bottom left of the ‘Link Binary With Libraries’ section and choose library items from the list.
2., The Prefix.pch should contain:
#import <SystemConfiguration/SystemConfiguration.h> #import <MobileCoreServices/MobileCoreServices.h>
3., You also need two external libraries: AFNetworking, ProgressHUD. Both of them are included the source code. But if you need, you can download from here:
https://github.com/AFNetworking/AFNetworking
https://github.com/relatedcode/ProgressHUD
To use this two libraries, just add AFNetworking and ProgressHUD directories to your project.
4., You should use your own YouTube API key. You can get your YouTube API key here:
https://developers.google.com/youtube/registering_an_application
https://code.google.com/apis/console
5., Replace existing API key in common.h:
#define YOUTUBE_KEY @"AIzaSyAY5wyhp7vnjxHnmMG7iYFvytVfsf6M3Dc"
6., All YouTubePlayer files located in player directory. Simply add player directory to your project.
USAGE
1., Open up your View Controller file where you want to use YouTubePlayer and add the following import to the top of the file:
#import "SelectVideo1.h"
2., Then paste the following inside your code:
SelectVideo1 *selectVideo1 = [[SelectVideo1 alloc] initWith:@"Movie Trailers"]; [self.navigationController pushViewController:selectVideo1 animated:YES];
3., Compile and run.
SAMPLE CODE
You can find sample usage code in ViewController.m.
SCREENSHOTS
Check screenshots for visual details.
0 comments:
Post a Comment