-
Notifications
You must be signed in to change notification settings - Fork 36
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
Load video source asynchronously #97
Comments
I was able to get it to work with a <div *ngIf="panelOverviewVideo.length">
<vg-player>
<vg-overlay-play></vg-overlay-play>
<vg-buffering></vg-buffering>
<vg-scrub-bar>
<vg-scrub-bar-current-time></vg-scrub-bar-current-time>
<vg-scrub-bar-buffering-time></vg-scrub-bar-buffering-time>
</vg-scrub-bar>
<vg-controls>
<vg-play-pause></vg-play-pause>
<vg-playback-button></vg-playback-button>
<vg-time-display vgProperty="current" vgFormat="mm:ss"></vg-time-display>
<vg-scrub-bar style="pointer-events: none;"></vg-scrub-bar>
<vg-time-display vgProperty="left" vgFormat="mm:ss"></vg-time-display>
<vg-time-display vgProperty="total" vgFormat="mm:ss"></vg-time-display>
<vg-track-selector></vg-track-selector>
<vg-mute></vg-mute>
<vg-volume></vg-volume>
<vg-fullscreen></vg-fullscreen>
</vg-controls>
<video [vgMedia]="media" #media id="singleVideo" preload="auto" crossorigin>
<source src="{{panelOverviewVideo}}" type="video/mp4">
</video>
</vg-player>
</div>
<div *ngIf="!panelOverviewVideo.length">
<p>Not available</p>
</div> |
Facing the same issue on using videogular. Setting the src dynamically using property of an object. When the object is reassigned, and property of that object has also been changed, it still doesn't change / reflect in the video. Hence even though the user has selected a new title, the previous video continues playing.
|
I have the same issue where i am using vghls and when i change sources i get a file not found. The file is found if it is the first one selected but any source on the second selection is always not found? <video #media #vgHls="vgHls" [vgMedia]="$any(media)" [vgHls]="currentSource" |
Description
I load
src
asynchronously from a function in my component. When I setpanelOverviewVideoURL
to the correct URL, my video does not get the update, it just stays on a black screen and will never play. It does work if I hard code thesrc
URL. Do I need to call a method fromVgApiService
to get the player to reload once it has thesrc
?Expected Behavior
src
is set after component loads and it correctly loads the videoThe text was updated successfully, but these errors were encountered: