How to hide m3u8 url - javascript

I am broadcasting live tv with m3u8 on my site. But when I monitor the network traffic of my site, I cannot hide the m3u8 link and the .ts links in it are visible. How can I hide these .ts links on nodejs?
Example m3u8 file: https://sosyoapp-live.cdnnew.com/sosyo/buraya-bir-isim-verin.m3u8
I converted ts links to mp4 and ran them on my server, but I could not get full efficiency.

Related

Force asset download instead of playing in browser

I'm currently using Azure Media Services and I'm unable to force a video download instead of in-browser player when clicking the "download" link generated after creating a download locator.
I've got the video.js player working fine with a streaming locator but whatever I do, it seems that I can't force a browser to download the video (well, right click and save work fine but the end user probably won't expect this to download the video directly).
Is there a working example somewhere that shows how to force a client browser download ?
I tried adding download tag to the html element but that did not help.
</i>
FYI the content-type header of the response is
video/mp4
When you click on the element it sends the request to the backend service which generates a SAS and redirects the request for blob download.
Thank you

How to connect CSS and JS to Chromium Delphi locally?

there is a website on wordpress, i load it through TChromium in project Delphi.how to make loading files: css, js, images locally? if the files lie near to exe.
and another question is why TChromium not playing video?
on youtube works, the with video direct link not load(
You can load local files by loading a FILE URL. In case of DCEF3 you would call TChromium.Load and in case of CEF4Delphi or OldCEF4Delphi you would call TChromium.LoadURL.
The FILE URL would look like this :
file:///c:/path/file.html
Read these pages to know more about FILE URLs :
https://www.rfc-editor.org/rfc/rfc8089
https://en.wikipedia.org/wiki/File_URI_scheme
The HTML and CSS files would have to use relative paths to the other resources or the browser will not find them.
Chromium has some security limitations for local files. If you find any issue loading your files with a FILE URL then you could try to load them with a custom URL scheme. CEF4Delphi has a demo called SchemeRegistrationBrowser that shows you how to register a custom scheme.
About the issue with the videos, it's a codec problem. The CEF3 binaries available at Spotify only have the open source codecs enabled due to patent restrictions.
If you need to watch H264 videos then you need to build the CEF3 binaries following these instructions :
http://magpcss.org/ceforum/viewtopic.php?f=6&t=13515
Edit : I forgot that some video players require Flash. Install the PPAPI Adobe Flash Player from here : https://get.adobe.com/flashplayer/otherversions/
CEF4Delphi enables the flash player by default but you might need to use the --enable-system-flash command switch with DCEF3.

How does Spotify mask the audio URL and also prevent download of song mp3

I'm looking to mask the audio playing on my site so people can't download the audio files and also don't know what the url for the actual file (mp3) is
Simple answer,
YOU CAN'T
If they are listening to your audio, they have it already
You can slow them down but can't stop them.
The only thing you can do is obfuscate the process. But why bother at all?
The browsers were designed to: Serve content - which means give the content to the user. To show you how easy it is, here's how I usually grab video/audios on virtually any streaming site:
Prepare the network tab of your preferred browser debugger and let the video/audio load. Then look for it in the loaded resources. Videos are usually streamed in .flv or .mp4, and audio in .mp3. When you spot the url, open a new tab/window and open the link there. The browser will then download the file.

HTML5 - play a video from web url but for security reason do not allow to download or copy the url

I have a BANK video file, and the file is confidential so they only give the link to a customer who can open it in Google chrome browser just to watch the video.
But that customer can only view it
(cant easily download it, or copy the main video link)
How to do that?
i tried but its very easy for anyone to copy the video URL how do you hide those and lock those?
You cannot. There are currently no DRM features for HTML 5 video (not that DRM features are all that effective anywhere that has implemented them).

How to get the yahoo's mediaplayer javascript to ignore certain file types?

Is there any way to restrict what types of files the yahoo mediaplayer plays? We don't want it to play flv files but we do want it to play MP3s.
Background
Yahoo provides a really nice browser based mp3 player in the form of a simple javascript include. It will find any link to media file on your web page and adds a nice little player for each file. http://mediaplayer.yahoo.com/
We're using this for MP3 files on our site and it's working great but we also have a flv video file on there that we don't want it to handle as we're using the shadowbox.js to play it. But, the yahoo mediaplayer is also playing the audio from the flv so we're getting the audio doubled. So, we want to somehow set the player to ignore FLVs or only find MP3s.
From the FAQ in the wiki:
"How do I link to some of the audio files in a page but not all?"
Put class="htrack" into the audio files that you want.
Once any audio link has this, any audio link that doesn't have it will be skipped."

Categories

Resources