Skip to content

Commit

Permalink
feat(ios): add support for private live stream
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Mar 1, 2024
1 parent c68d602 commit 331c4ab
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Once instantiated, you need to initialize the controller by calling its `initial

```dart
final ApiVideoPlayerController controller = ApiVideoPlayerController(
videoOptions: VideoOptions(videoId: 'VIDEO_ID'),
videoOptions: VideoOptions(videoId: 'VIDEO_ID'), // `VIDEO_ID` is the video id or the live stream id
// For private video: VideoOptions(videoId: "YOUR_VIDEO_ID", token: "YOUR_PRIVATE_TOKEN")
);
Expand Down
8 changes: 4 additions & 4 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PODS:
- apivideo_player (0.0.1):
- ApiVideoPlayer (= 1.1.4)
- ApiVideoPlayer (= 1.2.0)
- Flutter
- ApiVideoPlayer (1.1.4):
- ApiVideoPlayer (1.2.0):
- ApiVideoPlayerAnalytics (= 1.1.1)
- ApiVideoPlayerAnalytics (1.1.1)
- Flutter (1.0.0)
Expand All @@ -28,8 +28,8 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/pointer_interceptor_ios/ios"

SPEC CHECKSUMS:
apivideo_player: 2c473c47bbce886785fee06428dd83a1bf9989b2
ApiVideoPlayer: 6dbb236f0368acd5b51438e8379fb74ccf48182c
apivideo_player: 1bc03dc30c624f1c49e54dd1112494a5a68476e3
ApiVideoPlayer: b481969aaea0be3c7edf9e0191a6587db449295a
ApiVideoPlayerAnalytics: f8f5e7e0207aefdb99fb97cee081b1693dacae8a
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
pointer_interceptor_ios: 9280618c0b2eeb80081a343924aa8ad756c21375
Expand Down
2 changes: 1 addition & 1 deletion ios/apivideo_player.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ A new Flutter plugin project.
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
s.dependency 'ApiVideoPlayer', "1.1.4"
s.dependency 'ApiVideoPlayer', "1.2.0"
s.platform = :ios, '11.0'

# Flutter.framework does not contain a i386 slice.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/apivideo_types.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ enum VideoType {
/// The video options that defines a video on api.video platform.
@JsonSerializable()
class VideoOptions {
/// The video id from api.video platform.
/// The video id or live stream id from api.video platform.
String videoId;

/// The video type. Either [VideoType.vod] or [VideoType.live].
Expand Down

0 comments on commit 331c4ab

Please sign in to comment.