Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Allow access to the native html5 <video/> tag #1022

Open
1 task done
harshmandan opened this issue Nov 27, 2024 · 0 comments
Open
1 task done

Feature Request: Allow access to the native html5 <video/> tag #1022

harshmandan opened this issue Nov 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@harshmandan
Copy link

harshmandan commented Nov 27, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Which Mux Elements/Packages does this apply to? Select all that apply

mux-player

Description

I'm using the mux-player for drm playback. The app is written in svelte and svelte has very nice inbuilt two way bindings for video/audio elements. Since, mux-player also creates a video element inside the mux-player tag:

Is there any way to create the video element and manually pass it to the "media" slot? Maybe, something like this:

<script lang="ts">
let $muted = writable(false);
let currentTime: number

function muteUnmute() {
  $muted = !$muted;
}
</script>

<mux-player playback-id={playbackId}>
  <video on:click={muteUnmute} bind:this={myVideoEl} bind:currentTime bind:muted={$muted}>
</mux-player>

Expected Behavior

I'd love for this to be an option!

@harshmandan harshmandan added the enhancement New feature or request label Nov 27, 2024
@harshmandan harshmandan changed the title Feature Request: Allow access to the html5 video player Feature Request: Allow access to the native html5 <video/> tag Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant