DEVHIDE
  • Home (current)
  • About
  • Contact
  • Cookie
  • Home (current)
  • About
  • Contact
  • Cookie
  • Disclaimer
  • Privacy
  • TOS
Login Or Sign up

Video JS shows net::ERR_FILE_NOT_FOUND when I change the source but when I played the same video on the home page, it plays

46 Views Asked by realibgun At 08 December 2023 at 03:15 2025-12-24T16:01:08.869000

So, I have this video player

    `<div id="video-player">
                <video
                    id="my-video"
                    class="video-js vjs-big-play-centered vjs-16-9 vjs-controls-enabled vjs-workinghover vjs-v8 vjs-theme-city vjs_video_3-dimensions"
                    controls
                    preload="auto"
                    data-setup="{}"
                >
                    <source src="http://ip_address.index.m3u" type="application/x-mpegURL" />  
                    <p class="vjs-no-js">
                        To view this video please enable JavaScript, and consider upgrading to a
                        web browser thats
                        <a href="https://videojs.com/html5-video-support/" target="_blank"
                        >supports HTML5 video</a
                        >
                    </p>
                </video>
    </div>`

and it plays the video on the source no problem when it loads the page. Also, I have this button

    `<button onclick='videoChange(new_ipAddress.index.m3u)'>My Button</button>` which changes the video source. `
    const videoTag = document.getElementsByTagName('video')[0];
    function videoChange(address) {
    videoTag.src = address;
    videoTag.load();
}`

However, when I click the button, it shows this net::ERR_FILE_NOT_FOUND error on the console and does not change the video. Even if I put the same ip address on the button, it does not play the video. I am using VJS for the video player. I tried using setTimeOut too but did not work. How do I change the video source?

javascript html5-video video.js
Original Q&A
0

There are 0 best solutions below

Related Questions in JAVASCRIPT

  • Using Puppeteer to scrape a public API only when the data changes
  • inline SVG text (js)
  • An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
  • Storing the preferred font-size in localStorage
  • Simple movie API request not showing up in the console log
  • Authenticate Flask rest API
  • Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
  • How to request administrator rights?
  • mp4 embedded videos within github pages website not loading
  • Scrimba tutorial was working, suddenly stopped even trying the default
  • In Datatables, start value resets to 0, when column sorting
  • How do I link two models in mongoose?
  • parameter values only being sent to certain columns in google sheet?
  • Run main several times of wasm in browser
  • Variable inside a Variable, not updating

Related Questions in HTML5-VIDEO

  • <video> tag with downloaded path in ionic ios not loads the video
  • Google Ads does not show on website when video is full screen
  • sourceBuffer.appendBuffer successfully but the h5 video player stuck
  • video.audioTracks is not working as expected for large video
  • HTML5 and CSS - Responsive Video Pop Up Not working according to design
  • Video lazy load - background
  • Reimplement HTML Media Tag Fetching without a tag using Media Source API
  • Flask Streaming mp4 video works perfectly on windows but not mobile phone
  • Pause the animation of all html cards when the video popup is opened or when the play button on the video is clicked
  • HTML5 sourcebuffer stalls in firefox
  • Full screen in Electron js adds a blank space at the bottom
  • What is the largest size limit (in Mb) for html video tag on iOS mobile devices
  • Client side H.264 (MP4) video compression/encoding
  • video Enters Fullscreen "Live Broadcast" Mode on iOS Despite playsinline Attribute in Standalone PWA
  • How to process each frames exactly only once using MediaStreamTrackProcessor

Related Questions in VIDEO.JS

  • How can I make a video playing with video.js keep playing in the background on iOS?
  • Video.js keeps playing after pausing it (while playing ads via IMA)
  • Audio playback issue with video.js on some browsers - Only one channel playing for multi-channel audio
  • addEventListener with encrypted video-js is not working
  • Challenges with Screen Orientation Changes in Ionic/Capacitor/Angular App Using Video.js
  • How to play different video streams using videoJS in Vuejs
  • How to stop showing two controls in video player
  • How can I replace embedded styles being applied by VideoJS?
  • Implementing HLS Streaming with ClearKey DRM in VideoJS
  • VideoJS Custom DRM
  • How to clear video state when reusing the same video element with videojs-contrib-eme?
  • video.js multiple sources for fairplay widevine playready livestream DRM
  • VideoJS: fetches old segments during a live stream
  • Video JS shows net::ERR_FILE_NOT_FOUND when I change the source but when I played the same video on the home page, it plays
  • How to enable closed captions by default with OpenPlayerJS / video.js?

Trending Questions

  • UIImageView Frame Doesn't Reflect Constraints
  • Is it possible to use adb commands to click on a view by finding its ID?
  • How to create a new web character symbol recognizable by html/javascript?
  • Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
  • Heap Gives Page Fault
  • Connect ffmpeg to Visual Studio 2008
  • Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
  • How to avoid default initialization of objects in std::vector?
  • second argument of the command line arguments in a format other than char** argv or char* argv[]
  • How to improve efficiency of algorithm which generates next lexicographic permutation?
  • Navigating to the another actvity app getting crash in android
  • How to read the particular message format in android and store in sqlite database?
  • Resetting inventory status after order is cancelled
  • Efficiently compute powers of X in SSE/AVX
  • Insert into an external database using ajax and php : POST 500 (Internal Server Error)

Popular # Hahtags

javascript python java c# php android html jquery c++ css ios sql mysql r reactjs

Popular Questions

  • How do I undo the most recent local commits in Git?
  • How can I remove a specific item from an array in JavaScript?
  • How do I delete a Git branch locally and remotely?
  • Find all files containing a specific text (string) on Linux?
  • How do I revert a Git repository to a previous commit?
  • How do I create an HTML button that acts like a link?
  • How do I check out a remote Git branch?
  • How do I force "git pull" to overwrite local files?
  • How do I list all files of a directory?
  • How to check whether a string contains a substring in JavaScript?
  • How do I redirect to another webpage?
  • How can I iterate over rows in a Pandas DataFrame?
  • How do I convert a String to an int in Java?
  • Does Python have a string 'contains' substring method?
  • How do I check if a string contains a specific word?
.

Copyright © 2021 Jogjafile Inc.

  • Disclaimer
  • Privacy
  • TOS
  • Homegardensmart
  • Math
  • Aftereffectstemplates