Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
pip install whishow
demo 1: Simple play
cmd:
python -m whishow <video_path_or_url>
e.g.
python -m whishow rtmp://mobliestream.c3tv.com:554/live/goodtv.sdp
demo 2: Multithreading based stream processing and frame playback in Python
from whishow import STREAM,PLAY
import keyboard
import threading
# init the stream reader, named stm.
stm = STREAM()
stm.init_state(url=url,
cache_size=10*60,
video_frame_quality=50)
# init the whishow player, and connect the audio/video stream of stm.
ply = PLAY()
ply.init_state(chunk_size=1,
video_frame_shift=20,
audio_fps=stm.AUDIO_FPS,
video_fps=stm.VIDEO_FPS,
Q_audio_play=stm.Q_audio_play,
Q_video_play=stm.Q_video_play,
asr_results=[])
# esc for exit
def engine():
while 1:
if keyboard.is_pressed('esc'):
print("exit ..")
break
time.sleep(0.1)
stm.running = False
ply.running = False
# stream reader
def stream():
stm.read(video_dst_frame_size=video_dst_frame_size,
is_play=True,
is_asr=False)
# stream palyer
def play():
ply.run()
p0 = threading.Thread(target=engine,args=())
p1 = threading.Thread(target=stream,args=())
p2 = threading.Thread(target=play,args=())
p0.start()
p1.start()
p2.start()
p0.join()
p1.join()
p2.join()
FAQs
an online player for video stream
We found that whishow demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.