question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Playback Controller [Feature Request]

See original GitHub issue

Is your feature request related to a problem? Please describe. An build in playback queue. It would be handy if there was a build-in way to setup an autoplay queue.

Describe the solution you’d like I imagine a controller type that can be set directly from razor code to queue multiple video sources to play after each other. The usage would look like this:

<BlazoredVideo Play="OnPlay"
        class="w-100"
        style="max-width:800px;"
        controls="controls">
    <VideoQueue Delay="0" Repeat="No/Once/Loop">
        <VideoItem Source="videos/elephants.mp4" type="video/mp4" />
        <VideoItem>
             <VideoSource Source="videos/lions.mp4" type="video/mp4" />
             <VideoSource Source="videos/lions.avi" type="video/avi" />
        </VideoItem>
    </VideoQueue>
</BlazoredVideo>

When using the VideoQueue element instead of an <video /> element the VideoQueue queues the containing elements for playback. When using the Delay property it delays the playback of the next element by howmany millisecounds. The Repeat property is an Enum that will ether repeat one element when set to Once, does not repeat on No and begins from the start when it got to the last element on Loop.

In this proposal we need the VideoItem because we would need to be able to supply multiple versions of a source to provide best coverage of browser capabilities.

When allowing to define this in razor code, the user is also able to provide own dynamic lists with for example a @foreach loop like this:

<BlazoredVideo Play="OnPlay"
        class="w-100"
        style="max-width:800px;"
        controls="controls">
    <VideoQueue>
        @foreach(var source in MYSOURCES)
{
        <VideoItem Source="@source.Source" type="@source.MediaType" />
}
    </VideoQueue>
</BlazoredVideo>

Describe alternatives you’ve considered Implementing on its own is possible however i believe this would be a great addition to the code base as a feature.

Additional context Add any other context or screenshots about the feature request here.

Issue Analytics

  • State:open
  • Created 9 months ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
JPVensoncommented, Jan 3, 2023

Just to clarify Backwards compatibility is still granted in my proposal.

<BlazoredVideo Play="OnPlay"
        class="w-100"
        style="max-width:800px;"
        controls="controls">
     <VideoQueue Delay="0" Repeat="No">
        <VideoItem Source="videos/elephants.mp4" type="video/mp4" />     
     </VideoQueue>
</BlazoredVideo>

and

<BlazoredVideo Play="OnPlay"
        class="w-100"
        style="max-width:800px;"
        controls="controls">
    <source src="videos/elephants.mp4" type="video/mp4" />
</BlazoredVideo>

are functionally the same and are both supported.

One more thought - an option to stop auto-playing after a certain TimeSpan - in case someone falls asleep.

Interesting idea indeed, I will keep that in mind and see if I come up with an intuitive way.

1reaction
SQL-MisterMagoocommented, Jan 3, 2023

That’s cool - as long as we have a “simple” option where we can say “Video player - play these” and it just does it 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

PlaybackController Interface Reference | Alexa Skills Kit
The PlaybackController interface provides requests to notify your skill when the user interacts with player controls, such as the buttons on ...
Read more >
Per-Site "Remember Playback Speed"/"Forced Last ...
Feature Request : Per-Site "Remember Playback Speed"/"Forced Last ... with the controller hiding most/all of the audio streams controls as ...
Read more >
[Feature Request] Add guide button to playback controls ...
[Feature Request] Add guide button to playback controls interface. First off, thank you for releasing this! It is infinitely better than the ...
Read more >
Feature Suggestion: Playback Control
My suggestion is the following: giver user control as to the amount that should be scrubbed when hitting playback control keys. Options could...
Read more >
Start to get playback controller events - Forums
My skill uses audio player capabilities and it seems that I get playback controller events when I request Echo to volume up or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found