<commit_before># ZFRewardVideoManager
ZFRewardVideoManager is an integration of all mainstream reward video platforms. You can monetize your app by reward video with simple API and dispatch reward videos by priority. And you can also integrate/delete certain RV platform just by adding/deleting one line code in ```Podfile``` without changing any code in your project.

## Supported RV Platforms

- Vungle
- Appnext
- Adcolony

## Features

- Integrate multiple RV platforms.
- Customize platform priority in order to adjust video play order.
- You can set cap for each platform during one app life cycle to limit play counts for single user.
- Integrate/Delete certain RV platform by just one line code without any code modification in your project. 

## Installation

```
pod 'ZFRewardVideoManager/Vungle', :git => '<EMAIL>:ruozi/ZFRewardVideoManager.git'
pod 'ZFRewardVideoManager/Appnext', :git => '<EMAIL>:ruozi/ZFRewardVideoManager.git'
pod 'ZFRewardVideoManager/Adcolony', :git => '<EMAIL>:ruozi/ZFRewardVideoManager.git'
```
You can delete certain line if you don't need to play the videos from that platform.

## Usage

### Initialize

Initialize and start to load videos. Usually use when user enters the homepage of your app.

```objc
[ZFRewardVideoManager sharedInstance].delegate = self;
[[ZFRewardVideoManager sharedInstance] configVungleAppId:{vungle_appId}];
[[ZFRewardVideoManager sharedInstance] configAppnextPlacementId:{appnext_placementId}];
[[ZFRewardVideoManager sharedInstance] configAdcolonyAppId:{adcolony_appId} zoneId:{adcolony_zoneId}];
[[ZFRewardVideoManager sharedInstance] setPriority:@[@(ZFRewardVideoTypeAdcolony),
                                                     @(ZFRewardVideoTypeAppNext),
                                                     @(ZFRewardVideoTypeVungle)]];
[[ZFRewardVideoManager sharedInstance] setCap:2 platform:ZFRewardVideoTypeAppNext];
[[ZFRewardVideoManager sharedInstance] setCap:1 platform:ZFRewardVideoTypeAdcolony];
[[ZFRewardVideoManager sharedInstance] start];
```
**Notice** : You must set priority for a platform if you want to play videos from it.

### Play Video

Call this function to start playing video(If any video has been loaded).
```objc
[[ZFRewardVideoManager sharedInstance] play];
```
### Status Change

```ZFRewardVideoManagerDelegate``` indicates the status for the reward videos.
Usually implemented for UI changes.

## Reference

To avoid namespace duplication. This project changes ```CTMediator``` file name.

**CTMediator** by casa : [https://github.com/casatwy/CTMediator](https://github.com/casatwy/CTMediator)
<commit_msg>add Read me message for Unity<commit_after># ZFRewardVideoManager
ZFRewardVideoManager is an integration of all mainstream reward video platforms. You can monetize your app by reward video with simple API and dispatch reward videos by priority. And you can also integrate/delete certain RV platform just by adding/deleting one line code in ```Podfile``` without changing any code in your project.

## Supported RV Platforms

- Vungle
- Appnext
- Adcolony
- Unity

## Features

- Integrate multiple RV platforms.
- Customize platform priority in order to adjust video play order.
- You can set cap for each platform during one app life cycle to limit play counts for single user.
- Integrate/Delete certain RV platform by just one line code without any code modification in your project. 

## Installation

```
pod 'ZFRewardVideoManager/Vungle', :git => '<EMAIL>:ruozi/ZFRewardVideoManager.git'
pod 'ZFRewardVideoManager/Appnext', :git => '<EMAIL>:ruozi/ZFRewardVideoManager.git'
pod 'ZFRewardVideoManager/Adcolony', :git => '<EMAIL>:ruozi/ZFRewardVideoManager.git'
pod 'ZFRewardVideoManager/Unity', :git => '<EMAIL>:ruozi/ZFRewardVideoManager.git'
```
You can delete certain line if you don't need to play the videos from that platform.

## Usage

### Initialize

Initialize and start to load videos. Usually use when user enters the homepage of your app.

```objc
[ZFRewardVideoManager sharedInstance].delegate = self;
[[ZFRewardVideoManager sharedInstance] configVungleAppId:{vungle_appId}];
[[ZFRewardVideoManager sharedInstance] configAppnextPlacementId:{appnext_placementId}];
[[ZFRewardVideoManager sharedInstance] configAdcolonyAppId:{adcolony_appId} zoneId:{adcolony_zoneId}];
[[ZFRewardVideoManager sharedInstance] configUnityGameId:{unity_gameId} placementId:{unity_placementId}];
[[ZFRewardVideoManager sharedInstance] setPriority:@[@(ZFRewardVideoTypeAdcolony),
                                                     @(ZFRewardVideoTypeAppNext),
                                                     @(ZFRewardVideoTypeVungle),
                                                     @(ZFRewardVideoTypeUnity)]];
[[ZFRewardVideoManager sharedInstance] setCap:2 platform:ZFRewardVideoTypeAppNext];
[[ZFRewardVideoManager sharedInstance] setCap:1 platform:ZFRewardVideoTypeAdcolony];
[[ZFRewardVideoManager sharedInstance] start];
```
**Notice** : You must set priority for a platform if you want to play videos from it.

### Play Video

Call this function to start playing video(If any video has been loaded).
```objc
[[ZFRewardVideoManager sharedInstance] play];
```
### Status Change

```ZFRewardVideoManagerDelegate``` indicates the status for the reward videos.
Usually implemented for UI changes.

## Reference

To avoid namespace duplication. This project changes ```CTMediator``` file name.

**CTMediator** by casa : [https://github.com/casatwy/CTMediator](https://github.com/casatwy/CTMediator)

{'fraction_non_alphanumeric': 0.08944414267608183, 'fraction_numerical': 0.0007242440702516748, 'mean_word_length': 4.7481789802289285, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 17, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1388957', 'n_tokens_mistral': 1515, 'n_tokens_neox': 1513, 'n_words': 513}