Objective C Tutorial

Objective-C is a general-purpose, object-oriented programming language that adds Smalltalk-style messaging to the C programming language. This is the main programming language used by Apple for the OS X and iOS operating systems and their respective APIs, Cocoa and Cocoa Touch.

Play Video

Media Player Framework

The Media Player framework (MediaPlayer.framework) provides high-level support for playing audio and video content from your app. You can use this framework to do the following:

  • Play video to a user’s screen or to another device over AirPlay. You can play this video full screen or in a resizable view.
  • Access the user’s iTunes music library. You can play music tracks and playlists, search for songs, and present a media picker interface to the user.
  • Configure and manage movie playback.
  • Display Now Playing information in the lock screen and App Switcher. You can also display this information on an Apple TV when content is delivered via AirPlay.
  • Detect when video is being streamed over AirPlay

Create project with singleViewApplication.

 

1)First Add the mediaPlayerFramework. >> Build Phases >> Link Binary with lib.. and search there MediaPlayer.framework

mediaPlayerFramework

2)select storyboard and in viewController add a button with the name of TapMe.

iOS Tap me button

3)select viewController.h and drag the TapMe button with the Action and touchUpInside event.

4)open the viewContoller.m and in TapMe method try following code

-(IBAction)TapMe {

media framework in ios}

Finally build and run

 


swamios.com ® swamios media ♫
Home-icon Home

iphone-black-ios-icon iOS Interview Question

letter-c-black-icon.png Objective-C

Icon_apple_16x16 Swift Programming

16x16-black-white-metro-download-icon Download

contact-new About-Us

swamios-media-png

 

One thought on “Objective C Tutorial

Kalavati Technologies Pvt Ltd