Code Monkey home page Code Monkey logo

Comments (4)

bravao911 avatar bravao911 commented on August 26, 2024 2

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.

jepiqueau avatar jepiqueau commented on August 26, 2024

@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 avatar bravao911 commented on August 26, 2024

@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.

jepiqueau avatar jepiqueau commented on August 26, 2024

@bravao911 so i close the issue

from capacitor-video-player.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.