@castlabs/react-native-prestoplay-ios-avplayerviewcontroller 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ios/AVPlayerViewControllerExtension.swift +72 -0
- package/ios/ApplePlayerControlsPlugin.swift +23 -0
- package/ios/RNPrestoplayApplePlayerControlsModule.swift +192 -0
- package/ios/RNPrestoplayApplePlayerControlsPluginFactory.swift +19 -0
- package/ios/RNPrestroplay-Bridging-Header.h +9 -0
- package/ios/RNPrestroplayBridge.m +26 -0
- package/lib/AVPlayerViewControllerExtension.d.ts +28 -0
- package/lib/AVPlayerViewControllerExtension.js +148 -0
- package/lib/AVPlayerViewControllerPlugin.d.ts +15 -0
- package/lib/AVPlayerViewControllerPlugin.js +20 -0
- package/lib/components/AVPlayerViewControllerProvider.ios.d.ts +38 -0
- package/lib/components/AVPlayerViewControllerProvider.ios.js +41 -0
- package/lib/components/AppleTvContextualAction.ios.d.ts +32 -0
- package/lib/components/AppleTvContextualAction.ios.js +43 -0
- package/lib/components/AppleTvInfoBarAction.ios.d.ts +34 -0
- package/lib/components/AppleTvInfoBarAction.ios.js +46 -0
- package/lib/components/AppleTvPlayerControls.ios.d.ts +52 -0
- package/lib/components/AppleTvPlayerControls.ios.js +60 -0
- package/lib/components/AppleTvTransportBarAction.ios.d.ts +34 -0
- package/lib/components/AppleTvTransportBarAction.ios.js +47 -0
- package/lib/components/AppleTvTransportBarPopupMenu.ios.d.ts +41 -0
- package/lib/components/AppleTvTransportBarPopupMenu.ios.js +81 -0
- package/lib/components/AppleTvTransportBarSubMenu.ios.d.ts +41 -0
- package/lib/components/AppleTvTransportBarSubMenu.ios.js +70 -0
- package/lib/components/AppleTvTransportBarSubMenuItem.ios.d.ts +24 -0
- package/lib/components/AppleTvTransportBarSubMenuItem.ios.js +23 -0
- package/lib/events/AppleTvActionDetails.d.ts +7 -0
- package/lib/events/AppleTvActionDetails.js +1 -0
- package/lib/events/EventType.d.ts +7 -0
- package/lib/events/EventType.js +8 -0
- package/lib/index.d.ts +17 -0
- package/lib/index.js +11 -0
- package/lib/types/Action.d.ts +13 -0
- package/lib/types/Action.js +1 -0
- package/lib/types/ActionType.d.ts +6 -0
- package/lib/types/ActionType.js +7 -0
- package/lib/types/ActionUiProperty.d.ts +5 -0
- package/lib/types/ActionUiProperty.js +1 -0
- package/lib/types/PopupMenu.d.ts +8 -0
- package/lib/types/PopupMenu.js +1 -0
- package/lib/types/PopupMenuInternal.d.ts +8 -0
- package/lib/types/PopupMenuInternal.js +1 -0
- package/lib/types/SubMenu.d.ts +7 -0
- package/lib/types/SubMenu.js +1 -0
- package/lib/types/SubMenuItem.d.ts +4 -0
- package/lib/types/SubMenuItem.js +1 -0
- package/package.json +89 -0
- package/react-native-prestoplay-ios-avplayerviewcontroller.podspec +21 -0
package/lib/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// classes
|
|
2
|
+
export { default as AVPlayerViewControllerPlugin } from './AVPlayerViewControllerPlugin';
|
|
3
|
+
// components
|
|
4
|
+
export { AVPlayerViewControllerProvider } from './components/AVPlayerViewControllerProvider.ios';
|
|
5
|
+
export { default as AppleTvPlayerControls } from './components/AppleTvPlayerControls.ios';
|
|
6
|
+
export { AppleTvTransportBarAction } from './components/AppleTvTransportBarAction.ios';
|
|
7
|
+
export { AppleTvTransportBarPopupMenu } from './components/AppleTvTransportBarPopupMenu.ios';
|
|
8
|
+
export { AppleTvTransportBarSubMenu } from './components/AppleTvTransportBarSubMenu.ios';
|
|
9
|
+
export { AppleTvTransportBarSubMenuItem } from './components/AppleTvTransportBarSubMenuItem.ios';
|
|
10
|
+
export { AppleTvInfoBarAction } from './components/AppleTvInfoBarAction.ios';
|
|
11
|
+
export { AppleTvContextualAction } from './components/AppleTvContextualAction.ios';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import SubMenu from './SubMenu';
|
|
2
|
+
export default interface Action {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
/** The name of the image resource in the Xcode app project or the URL of a local or remote image file. */
|
|
6
|
+
imageName?: string;
|
|
7
|
+
state?: boolean;
|
|
8
|
+
subMenu?: SubMenu;
|
|
9
|
+
/** Contextual action is displayed at this time. */
|
|
10
|
+
startSecond?: number;
|
|
11
|
+
/** Contextual action is removed at this time. */
|
|
12
|
+
endSecond?: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@castlabs/react-native-prestoplay-ios-avplayerviewcontroller",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"prestoplayAppleSdkVersion": "4.0.22",
|
|
5
|
+
"prestoplayAndroidSdkVersion": "4.4.3",
|
|
6
|
+
"prestoplayWebSdkVersion": "6.26.0",
|
|
7
|
+
"description": "PRESTOplay for React Native",
|
|
8
|
+
"homepage": "https://castlabs.com/playback/prestoplay/react-native/",
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://support.castlabs.com/"
|
|
11
|
+
},
|
|
12
|
+
"license": "SEE LICENSE IN https://castlabs.com/legal/",
|
|
13
|
+
"author": "castLabs",
|
|
14
|
+
"main": "lib/index.js",
|
|
15
|
+
"react-native": "lib/index",
|
|
16
|
+
"types": "lib/index.d.ts",
|
|
17
|
+
"files": [
|
|
18
|
+
"lib/**/*",
|
|
19
|
+
"ios/**/*",
|
|
20
|
+
"android/src/**/*",
|
|
21
|
+
"android/build.gradle",
|
|
22
|
+
"android/consumer-rules.pro",
|
|
23
|
+
"android/proguard-rules.pro",
|
|
24
|
+
"*.podspec",
|
|
25
|
+
"!.DS_Store"
|
|
26
|
+
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "rm -Rf lib && tsc",
|
|
29
|
+
"lint": "eslint src",
|
|
30
|
+
"lint:dts": "api-extractor run",
|
|
31
|
+
"package": "yarn pack -o castlabs-react-native-prestoplay-ios-avplayerviewcontroller.tgz"
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"react": ">=18.3",
|
|
35
|
+
"react-native": ">=0.76.9"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@microsoft/api-extractor": "7.47.3",
|
|
39
|
+
"@react-native-community/eslint-config": "3.2.0",
|
|
40
|
+
"@types/react": "19.1.2",
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "5.62.0",
|
|
42
|
+
"@typescript-eslint/parser": "5.62.0",
|
|
43
|
+
"eslint": "8.57.1",
|
|
44
|
+
"prettier": "2.8.8",
|
|
45
|
+
"react-native": "0.79.5",
|
|
46
|
+
"typescript": "5.0.4"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@castlabs/react-native-prestoplay": "1.0.0"
|
|
50
|
+
},
|
|
51
|
+
"keywords": [
|
|
52
|
+
"react native player",
|
|
53
|
+
"video player",
|
|
54
|
+
"ios video",
|
|
55
|
+
"android video",
|
|
56
|
+
"video player with thumbnails",
|
|
57
|
+
"castlabs player",
|
|
58
|
+
"prestoplay player",
|
|
59
|
+
"prestoplay",
|
|
60
|
+
"dash player",
|
|
61
|
+
"hls player",
|
|
62
|
+
"mpeg dash player"
|
|
63
|
+
],
|
|
64
|
+
"eslintConfig": {
|
|
65
|
+
"root": true,
|
|
66
|
+
"parser": "@typescript-eslint/parser",
|
|
67
|
+
"extends": [
|
|
68
|
+
"@react-native-community"
|
|
69
|
+
],
|
|
70
|
+
"parserOptions": {
|
|
71
|
+
"ecmaVersion": 2017,
|
|
72
|
+
"sourceType": "module"
|
|
73
|
+
},
|
|
74
|
+
"rules": {
|
|
75
|
+
"react-native/no-inline-styles": 0,
|
|
76
|
+
"@typescript-eslint/semi": [
|
|
77
|
+
"error"
|
|
78
|
+
],
|
|
79
|
+
"semi": 0
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"prettier": {
|
|
83
|
+
"arrowParens": "avoid",
|
|
84
|
+
"bracketSameLine": true,
|
|
85
|
+
"bracketSpacing": false,
|
|
86
|
+
"singleQuote": true,
|
|
87
|
+
"trailingComma": "all"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
require "json"
|
|
2
|
+
|
|
3
|
+
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
+
|
|
5
|
+
Pod::Spec.new do |s|
|
|
6
|
+
s.name = "react-native-prestoplay-ios-avplayerviewcontroller"
|
|
7
|
+
s.version = package["version"]
|
|
8
|
+
s.summary = package["description"]
|
|
9
|
+
s.homepage = package["homepage"]
|
|
10
|
+
s.license = package["license"]
|
|
11
|
+
s.authors = package["author"]
|
|
12
|
+
|
|
13
|
+
s.platforms = { :ios => "15.1", :tvos => "15.1" }
|
|
14
|
+
s.source = { :git => "https://github.com/castlabs/prestoplay-react.git", :tag => "#{s.version}" }
|
|
15
|
+
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
16
|
+
s.exclude_files = "ios/**/*.xcframework/**/*.h"
|
|
17
|
+
|
|
18
|
+
s.dependency "react-native-prestoplay", package["version"]
|
|
19
|
+
|
|
20
|
+
install_modules_dependencies(s)
|
|
21
|
+
end
|