Class

MediaPipeVideoSentimentAnalyzer

MediaPipeSentimentAnalyser.MediaPipeVideoSentimentAnalyzer()

MediaPipe-based Video Sentiment Analyzer Drop-in replacement for VideoSentimentAnalyzer with 3-5x better performance

Constructor

# new MediaPipeVideoSentimentAnalyzer()

Methods

# async analyzeVideo(videoElement, videoId) → {Promise.<void>}

Analyze video for emotions and engagement

Parameters:
Name Type Description
videoElement HTMLVideoElement

Video element to analyze

videoId string

Unique identifier for this video

Promise.<void>

# destroy()

Clean up resources

# async initialize() → {Promise.<void>}

Initialize MediaPipe and emotion models

Promise.<void>

# setDebugMode(enabled)

Enable/disable debug mode

Parameters:
Name Type Description
enabled boolean

# stopAnalysis()

Stop analysis