Skip to content

hibridmedia/hiplayer-ios

Repository files navigation

HibridPlayerIOS

Documentation



Сreate your own project and add SDK

  • Create Your own Xcode project.**
  • In the project directory, create a file: module.modulemap with a .dist extension.**
  • To do this, you can create an empty file using Xcode.**

alt text


Module.modulemap.dist to copy

{

    module GoogleAnalytics 
    header "GAI.h"
    header "GAIDictionaryBuilder.h"
    header "GAIEcommerceFields.h"
    header "GAIEcommerceProduct.h"
    header "GAIEcommerceProductAction.h"
    header "GAIEcommercePromotion.h"
    header "GAIFields.h"
    header "GAILogger.h"
    header "GAITrackedViewController.h"
    header "GAITracker.h"
    export \*
    
  }

CocoaPods

  • The HibridPlayerIOS SDK is available through CocoaPods. Initialize the podfile and add the code to your Podfile from the example below. After adding, run pod install.

alt text


Podfile to copy

platform :ios, '13.0'

target 'YourTargetName' do

pod 'HibridPlayerIOS'

end

post\_install do |installer|

system("echo '/\* START post install scripts \*/'")

system("cp module.modulemap.dist

Pods/Headers/Public/GoogleAnalytics/module.modulemap && echo '- Fixed import of

GoogleAnalytics module'")

system("echo '/\* END post install scripts \*/'")

Set up your SDK

  • Create your UIView.
  • Add for view our class “HibridPlayerView” and add our module “HibridStreamPlayer”.

alt text

Set up your SDK

  • Import SDK "Import HibridStreamPlayer”
  • Drag outlet to ViewController.
  • Add functions: playHibridPlayer() and invalidateHibridPlayer().

alt text

Set up your SDK

  • Add incoming access keys to AppDelegate and you're done. Launch the project on a mobile device.

alt text

Hibrid Player iOS

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published