I need to publish an HTML page in an intranet containing the index of some video files, also located on the network. From the main page I thought of pointing, for each video, to a separate html page in which to incorporate it.
I would like to know if it is possible to prevent users from accessing video files directly by browsing the network resources. In practice, the videos should be visible only through the html pages but the relative .mp4 files should not be accessible in any other way (for example by making copy and paste via file explorer). Is it technically possible?
Finally, to prevent download from html pages I thought deactivating the right button on the embedded videos also if it's not the solution for all browsers.
Related
I want to use a audio in background of a web page but after a web page changes the audio is restarted. I want it to play continuously whether web page changes or not without any interrupt.
I don't think you can actually do that as I think you want to do it. I assume you load and reproduce the audio in some .js file, which is run on page load by the browser; as you navigate i.e. in your website, the browser re-load all the source files (and also your audio).
I think the best thing you can do is to re-project your page/website as a web-app. Doing that, when you navigate from a page to another you're not actually "leaving" the main page, but you're hiding/showing some html content: in this case, load the audio when the main page is loaded and it will continue to reproduce.
Another, worse, thing you can do is to save the timestamp of the audio track in the current session when you leave the first page, and re-load the audio track from the saved timestamp in the next page. I think this is a worse option as your audio track will be paused till the next page content is loaded (and that could take time in case of connection issues and/or big media files)
I just wondering how youtube displays the Video on their web app without the tag?
I also want to implement that kind of technique from my other future web apps.
TL;DR
It's because the video is streamed asynchronously, and not loaded at once. In HTML you will only find a player-container, which is a placeholder for the frames to be fed into it.
A bit more
When you click on a video, the metadata of the video loads first (title, description, etc.), then the stream flows through a socket, depending on the settings you have.
If there were a a fixed source in the HTML for which the video is loaded, changing the settings (playback speed, resolution, etc.) would have resulted in a page refresh!
In addition, YouTube prevents un-permissioned video downloads for a while now, another reason why not to provide a direct source to the video blob.
On a project, i have an iframe and a link targeting it. The link leads to an mp3 file. However on google chrome, and maybe other browsers, the iframe appears with a horrible black background.
Is there any way to fix this?
All solutions i have found so far talk about changing the background in the source file, but this is not possible for me as it is an mp3 file not an html file.
You have zero control over the default presentation of an audio player when you link to it in this way. In fact, it's very common that the file will just be downloaded instead of played in a browser.
If you want to control it, you need to build an HTML page that loads the audio file.
I'm not sure why I thought the file should be handled by the browser (chrome in my case) and then do something (for chrome I think its use QuickTime to play) but instead I just get an untitled browser title, and the page doesn't actually load, as if its loading an empty html page
anyway the address is:
www.motionvideos.tv/video/1022_market_review_february_2012_taylors.mp4
Other details which may effect it:
The site uses WordPress, which is currently not functioning, due to someone's fiddling, and will be down for a day or so (stupid zeus server redirects)
The video is just under 9MB.
Possible causes?
This link is for video download.
Do you want it to show on page?
If so you need to open a HTML page to embed this in.
This is how you embed it via code:
http://www.mediacollege.com/video/format/mpeg4/streaming/example.html
For WP you`ll need to open up a post and use a dedicated plugin for embedding.
Also, you should know that :
MP4 is not a universally common codec - some users (many?) will not be able to view it
The file itself will load directly from the server, thus noticeably effecting total bandwidth usage (can reflect on site speed, hosting costs and etc)
Also not all hosters support (by default) media hosting. This got a lot to do with above mentioned bandwidth issue.
I would suggest re-coding to more common codec + using 3-rd party provider
(I.E. Flash + Youtube for one is a popular choice but you can also go with AVI + Media Hosting Provider X)
Hope this helps.
How can I only load the HTML of a page into an <iframe>, without automatically triggering the download of all the CSS, scripts, images and videos on the page?
In short: you cannot. Much like you cannot "load an HTML page in a browser" without making the browser load all the linked resources (images, stylesheets). It's up to the browser how it implements its iframes, but most browsers treat them like embedded separate websites that are treated just like ordinary websites in terms of loading linked resources.
What is it you are actually trying to do?