Comments (7)
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.
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.
Though I discovered some strange bug doing this which causes tooltips to position incorrectly after changing the source.
from vime.
@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.
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.
@mihar-22 This is not working in v5
. I had to do hls.loadSource(newSrc)
to get update.
from vime.
@mihar-22 This is not working in
v5
. I had to dohls.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)
- webvtt subtitle html tags not rendering HOT 1
- hls player didn't work with preload options
- How can i put my webvtt subtitles HOT 1
- vm-scrim only covers half of the video HOT 1
- HLS live stream playback configuration
- Many bugs here - I think you should read this Before trying the package HOT 2
- Player keeps loading after setting different aspect ratio HOT 1
- HTML custom control onclick HOT 1
- vm-embed is cropped when inside vm-player
- installation problem on react18 HOT 3
- Import issue on angular 16 HOT 1
- Player goes over 100% of page
- Destroy Player HOT 2
- Not compatible with Svelte 4... HOT 3
- Add playsinline attribute
- How to import vime locally without using type="module"
- Vime to Vidstack Update HOT 6
- Warning when building an app using Vite 5
- Peer dependency error with @vime/[email protected] and angular 14
- TypeError: Cannot read properties of undefined (reading 'trim') HOT 6
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 vime.