
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
com.adrenak.mediaplayer
Advanced tools
A Media Player abstraction that standardises video players. Includes UnityMediaPlayer based on Unity's VideoPlayer.
A standardised media player interface for Unity. Aimed largely towards being able to make video player UI without worrying about the underlying video player.
IVideoPlayer
interfaceTexture
The Texture
object that represents the texture on which the video playsIsReady
If the video player has loaded the video and the video can be played or notIsPlaying
If the video is presently playing. False when the video is not loaded or paused.Duration
The duration of the video in a TimeSpan
objectTotalFrames
Total number of frames in the video that has been loadedFrameRate
Rate of frame playback in frames per second of the loaded videoCurrentFrame
The currently showing frame in the video playerCurrentPosition
The normalized position of the current frame in the [0,1] ranngeCurrentTimeSpan
The time gap between the video start and the current frame showingOpen(string path, bool autoPlay)
Opens a video for loading via the path. autoPlay
flag decides if the video playback should start immediately after successful loading.
Play
Starts playing/resumes the video
Pause
Pauses the video playback
Stop
Stop the video playback
SeekFrame(long frame)
Seeks the playback to the given frame from the start of the video
SeekTimeSpan(TimeSpan timeSpan)
Seeks the playback to a frame timeSpan
duration from the start of the video
SeekPosition(float position)
Seeks the playabck to a frame position
percentage from the start of the video. Eg. .5f seeks it to the middle of the video
JumpFrames(long frameDelta)
Seeks to a frame frameDelta
frames away from the current frame
JumpTimeSpan(TimeSpan timeSpanDelta)
Seeks to a frame timeSpanDelta
duration away from the current frame
JumpPosition(float positionDelta)
Seeks to a frame positionDelta
percentage from the current frame. Eg. -25f when CurrentPosition
is .75f will take it to the middle of the video
OnReady
Fired when a video is loaded and it capable of being playerOnError
Fired when there is an error in loading the videoOnPlay
Fired when the video starts playing for the first time or is resumed in the middle of the playbackOnPause
Fired when the video is pausedOnStop
Fired when the playback is stoppedOnSeek
Fired when the media player seeks to another frameOnJump
Fired when the media played jumps forward or backward by any number of framesSubtitle related code is a modified version of @roguecode's Unity-Simple-SRT on GitHub.
SubtitleBlock
classIndex
The Index of the block in the subtitle file.Length
The duration of the subtitle block in secondsFrom
The moment the subtitles should start displayingTo
The moment the subtitles should stop displayingText
The text to be displayedISubtitlesParser
interfaceGetByTime(double time)
Returns the subtitle block from the subtitle file at the specified timeThe project contains the following:
IVideoPlayer
: An implementation for Unity's VideoPlayer component. Please see SampleMediaPlayer
under Samples/
SRTParser
: An implementation of ISubtitlesParser
for working with SRT
subtitle format.SubtitleDisplayer
: A simple UI for showing the subtitles that requires an instance of ISubstitlesParser
FAQs
A Media Player abstraction that standardises video players. Includes UnityMediaPlayer based on Unity's VideoPlayer.
We found that com.adrenak.mediaplayer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.