Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-native-video-bilibili
Advanced tools
📺react-native-video二次开发视频播放器,交互设计参考bilibili
No link, no dependencies, only javascript
npm install react-native-video-bilibili
import Video from 'react-native-video-bilibili';
<Video
ref={'player'}
style={{width:"100%",height:300}}
source={{uri: "https://media.w3.org/2010/05/sintel/trailer.mp4"}}
/>
containerStyle
container style
style
react-native-video style
styles
deep merge styles with VideoPlayerStyles
lock🔒
🌟Lock all operations🌟
Property | Type | Arguments | Description |
---|---|---|---|
renderCenterMenus | node | state,props | Components displayed in the middle of the player, like volume or light control |
renderTopMenus | node | state,props | Components displayed in the top of the player, like title or navigation control |
renderBottomMenus | node | state,props | Components displayed in the bottom of the player, like seek bar or seek time control |
renderSeekTime | node | state,props | Components displayed when you slide left and right, like show each frame of picture |
renderLoading | node | state,props | Components displayed when video is buffering, like show buffering loading |
children | function | state,props | ({state,props})=>(<View></View>) |
Pass all state
and external props
of the parent component<Provider>
to the child component<Consumer>
based on context API
Provider
<Provider value={{
state:this.state,
props:{
...this.props,
onCurrentTimeProgress:this.onCurrentTimeProgress,
onSlidingComplete:this.onSlidingComplete,
setPaused:this.setPaused
},
}}>
</Provider>
Consumer
<Consumer>
{({state, props}) =>
<Animated.View>
{props.renderCenterMenus(state, props)}
</Animated.View>
}
</Consumer>
this.player._root.doSth()
setPaused()
showMenusComponent()
showSeekTimerComponent()
onOrientationChange({width,height})
if you accept
Link
the other library,please refer to https://github.com/abbasfreestyle/react-native-af-video-player
lock
propschildren
propsFAQs
react-native-video二次开发视频播放器,交互设计参考bilibili
The npm package react-native-video-bilibili receives a total of 4 weekly downloads. As such, react-native-video-bilibili popularity was classified as not popular.
We found that react-native-video-bilibili 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.