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

Laravel issue video player root path #1

Merged
merged 1 commit into from
Oct 10, 2023
Merged

Laravel issue video player root path #1

merged 1 commit into from
Oct 10, 2023

Conversation

demjhonsilver
Copy link
Owner

Since Laravel and React use different ports, you can use Laravel to accept the exact root path where the video file was stored in 'public/clip.mp4:
const loadClip = window.location.origin +'/clip.mp4';
then: src={loadClip}

@demjhonsilver demjhonsilver merged commit 2334760 into main Oct 10, 2023
@demjhonsilver
Copy link
Owner Author

It should load the video source into the video player regardless of the directory structure you've set up for your components.

@demjhonsilver demjhonsilver deleted the playerissue branch October 10, 2023 08:57
Repository owner locked as resolved and limited conversation to collaborators Oct 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant