Code Monkey home page Code Monkey logo

Comments (7)

mihar-22 avatar mihar-22 commented on May 18, 2024 1

Ah ye it's when switching between HLS (.m3u8) files. At the moment when changing the src the provider is calling hls.loadSource(newSrc); which is correct. I think some updates is causing a state change to mess with player. This usually happens when calling media.load() on the underlying HTML5 video player instance. If I have some time tonight I'll look into it.

from vime.

mihar-22 avatar mihar-22 commented on May 18, 2024

The src prop should just work. I quickly tested switching mp4 videos and it was working. It might have something to do with updating Svelte to the latest version.

If you can just tell me what version of Svelte you're using, and what type of source you are switching, whether it's a YouTube video to a YouTube video, or a file to something else, then I can dig a little deeper in the issue.

from vime.

mihar-22 avatar mihar-22 commented on May 18, 2024

Though I discovered some strange bug doing this which causes tooltips to position incorrectly after changing the source.

from vime.

mightymercado avatar mightymercado commented on May 18, 2024

@mihar-22 Then I believe it could be a provider-specific issue. I'm using HLS / m3u8 file. Can you test on your end? I think it's less likely a Svelte issue because I tried doing it with only hls.js and it worked.

from vime.

mihar-22 avatar mihar-22 commented on May 18, 2024

Closing this in favor of v2, feel free to provide any feedback. I'm also going to keep a reference to address the issue in the next release.

from vime.

Enigma10 avatar Enigma10 commented on May 18, 2024

@mihar-22 This is not working in v5. I had to do hls.loadSource(newSrc) to get update.

from vime.

marty0678 avatar marty0678 commented on May 18, 2024

@mihar-22 This is not working in v5. I had to do hls.loadSource(newSrc) to get update.

Thank you for this. I was struggling with this today and confused why the src wasn't updating. For others that encounter this issue, I pulled the HLS object from the HLS's element for reference.

// Vue example
const vimeHls = this.$refs.vimeHls
vimeHls.$el.hls.loadSource(this.src)

from vime.

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.