Comments (4)
l have fixed the issue by adding the language of the subtitle. Ex, my subtitle is Arabic language so l have added language:"0x0001",
As mentioned in doc
from capacitor-video-player.
@bravao911 can you give the video url and vidéo subtitle url. Is it from internal urls?. Capacitor.convertFileSrc will not work
from capacitor-video-player.
@bravao911 can you give the video url and vidéo subtitle url. Is it from internal urls?. Capacitor.convertFileSrc will not work
subtitle url : https://shamia.net/upload/sub/[SubtitleTools.com]%20The.Deep.House.2021.720p1080p.WEBRip.x264.AAC-[YTS.MX]-Arabic.vtt
video url : https://690b1613de1830d27ee50d6b199335dd.silentsong.xyz/Movies/TheDeepHouse.mp4
l have tried
vidoPlay(url,sub,title){
let urls = url
let subtitleUrl = sub
console.log(subtitleUrl)
if (urls&&subtitleUrl) {
CapacitorVideoPlayer.initPlayer({
url:urls,
playerId:"vpPlayer",
mode:"fullscreen",
title:title,
subtitle:subtitleUrl,
subtitleOptions:{
fontSize:16
},
pipEnabled:true,
showControls:true,
displayMode:"landscape"
}).then((a)=>{
console.log(a)
CapacitorVideoPlayer.play({
playerId:'vpPlayer',
}).then((a=>{
}))
}).catch(e=>{
alert(e)
})
}
}
But l have same issue .
If l put subtitle url directly . :
vidoPlay(url,sub,title){
let urls = url
let subtitleUrl = sub
console.log(subtitleUrl)
if (urls&&subtitleUrl) {
CapacitorVideoPlayer.initPlayer({
url:urls,
playerId:"vpPlayer",
mode:"fullscreen",
title:title,
subtitle:"https://shamia.net/upload/sub/[SubtitleTools.com]%20The.Deep.House.2021.720p1080p.WEBRip.x264.AAC-[YTS.MX]-Arabic.vtt",
subtitleOptions:{
fontSize:16
},
pipEnabled:true,
showControls:true,
displayMode:"landscape"
}).then((a)=>{
console.log(a)
CapacitorVideoPlayer.play({
playerId:'vpPlayer',
}).then((a=>{
}))
}).catch(e=>{
alert(e)
})
}
}
he works fine .
from capacitor-video-player.
@bravao911 so i close the issue
from capacitor-video-player.
Related Issues (20)
- Back button is locking to portrait orientation HOT 12
- Android Custom Controls HOT 1
- Back button on media player when clicked will close an app, if opened Android TV
- URL format required for internal files reading (App crash or file not found) HOT 1
- Crash on auto fullscreen android HOT 10
- Automatic rotation on Android HOT 8
- Video Url not found error when i try to play local file HOT 14
- CapacitorVideoPlayer.getCurrentTime always returns 0
- Player not working on web platform (embedded and fullscreen) HOT 3
- Attempt to invoke interface method 'long com.google.android.exoplayer2.ExoPlayer.getCurrentPosition()' on a null object reference HOT 3
- java.lang.IllegalArgumentException: playPosition can not be negative when playing a live stream HOT 2
- Feature Request: Allow setting the Video Type in Player Options HOT 2
- Feature Request: Add Option to Finalize / Destroy / Terminate initialized Player
- Player not working with specific streaming-response
- default playerId `fullscreen` work but another one doesn't HOT 2
- Add Button in the player HOT 1
- Is it possible to play video in embedded mode like playsinline
- Add Capacitor 6 support HOT 10
- useless exitPlayer() on web ?
- Local blob URL don't work on android HOT 1
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 capacitor-video-player.