Comments (3)
Hi @ybbond
We are using local css files in many projects and it is working fine, are you sure you have followed the instructions correctly as follows:
- Drag css file in to app/src/main/assets folder.
- The theme name should match the file name e.g for a file named video.css your css class definition should be as so
/* Use this class to set a global background color for all elemnts. */
.jwplayer.jw-skin-video .jw-background-color {
background: #000;
}
/* Control bar */
.jwplayer.jw-skin-video .jw-controls .jw-controlbar {
background: transparent;
}
/* Duration text */
.jwplayer.jw-skin-video .jw-controls .jw-controlbar .jw-button-container .jw-text {
color: #E1E2E1;
}
/* Slider time container */
.jwplayer.jw-skin-video .jw-controls .jw-controlbar .jw-slider-time {
/*position: absolute;*/
/*bottom: 15px;*/
background: transparent;
box-shadow: none;
}
Basically follow the following structure .jwplayer.jw-skin-{filename}
- Finally pass the file name e.g. "video" into jw params playerStyle={name}
Also try to put the param on the player itself and into the playListItem object as so:
playerStyle={"video"}
playlistItem={{
playerStyle: "video",
title,
file,
mediaId,
image,
desc,
autostart,
controls,
repeat,
displayDescription,
displayTitle
}}
Can you confirm this is working for you?
Thanks
from react-native-jw-media-player.
I'm closing due to inactivity.
from react-native-jw-media-player.
Hi @chaimPaneth, I think it could be usefull to create an example where you use a simple playerStyle modifying the player.
Also about your upcoming solution, you can't pass :
playListItem={{ playerStyle: "video" }}
Since playerStyle is not a prop that can be passed in playListItem (at least at that time) from your type :
interface PlaylistItem { mediaId?: number; startTime?: number; adVmap?: string; adClient?: string; adSchedule?: { tag: string; offset: string }; desc?: string; file?: string; image?: string; title?: string; autostart?: boolean; controls?: boolean; displayDescription?: boolean; displayTitle?: boolean; repeat?: boolean; backgroundAudioEnabled: boolean; }
from react-native-jw-media-player.
Related Issues (20)
- adVmap URL format not working in Android and iOS, and ads not showing in Android with any vast URL HOT 1
- ios app is crashing when jwplayer is unmounted HOT 2
- Fullscreen orientation problem with physical IOS devices HOT 2
- Support for Android 13? HOT 1
- AirPlaying to a Non Apple device, crashes the app.
- How to play only a single video at a time in flatlist HOT 3
- iOS pipEnabled false not working
- Upgrading to 0.2.40 doesn't work on iOS HOT 3
- Question about modifying RNJWPlayerView on node_modules to try something out HOT 1
- How to access adTitle and others ad fields HOT 1
- Add onAdImpression HOT 3
- react-native 0.73.1 is throwing compileDebugJavaWithJavac FAILED HOT 8
- HLS does not have sound or video
- jw player playlist props image item not working (thumbnail) HOT 1
- Endless Loading Issue with VAST Live Ads on Android
- Fastlane error on >= 0.2.42 HOT 2
- Change only player's volume HOT 1
- Google IMA Ad not working HOT 1
- react-native-jw-media-player:compileDebugJavaWithJavac HOT 1
- Are you looking for maintainers?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-jw-media-player.