-
Notifications
You must be signed in to change notification settings - Fork 20
Add video layer #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add video layer #48
Conversation
# Conflicts: # example/package-lock.json # example/yarn.lock # package-lock.json
- Resolved merge conflicts between master (Expo 53 upgrade) and video layer feature - Updated dependencies to support Expo 53 while preserving video layer functionality - Combined README documentation for video layer with expo-av deprecation notes - Preserved adapter pattern from master in AdvancedVideo.tsx - Kept demo app structure from feature branch with updated dependencies - Added support for @expo/vector-icons and expo-font as optional dependencies for video layer
- Remove resizeMode and onPlaybackStatusUpdate props from CLDVideoLayer - Update RefObject types to allow null values - Replace AVPlaybackStatusSuccess with generic any type for compatibility - Fixed all TypeScript compilation errors
# Conflicts: # example/package-lock.json # package-lock.json # package.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great job in general 💪
| // Create analytics object with feature 'G' for CLDVideoLayer | ||
| const videoLayerAnalytics = { | ||
| ...SDKAnalyticsConstants, | ||
| feature: 'G', | ||
| }; | ||
|
|
||
| let videoUrl: string; | ||
| try { | ||
| videoUrl = cldVideo.toURL({ trackedAnalytics: videoLayerAnalytics }); | ||
| } catch (analyticsError) { | ||
| console.warn('CLDVideoLayer: Failed to generate URL with analytics, falling back:', analyticsError); | ||
| videoUrl = cldVideo.toURL(); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we create a player for share? im confused
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I understand the question
This part of the code is responsible for the analytics part, where we attach the analytics token
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adimiz1
forget this.
It seems that i misunderstood the code. I thought we create a new CloudinaryVideo for share. I see now that its just a parameter to the util.
all good!
Co-authored-by: kalifyaniv-cloudinary <91880870+kalifyaniv-cloudinary@users.noreply.github.com>
Co-authored-by: kalifyaniv-cloudinary <91880870+kalifyaniv-cloudinary@users.noreply.github.com>
Co-authored-by: kalifyaniv-cloudinary <91880870+kalifyaniv-cloudinary@users.noreply.github.com>
Co-authored-by: kalifyaniv-cloudinary <91880870+kalifyaniv-cloudinary@users.noreply.github.com>
Co-authored-by: kalifyaniv-cloudinary <91880870+kalifyaniv-cloudinary@users.noreply.github.com>
Brief Summary of Changes
Add video layer
What does this PR address?
Are tests included?
Reviewer, please note:
Checklist: