Click here to Skip to main content
15,905,325 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a streaming link which I want to publish it on a web page, but my goal is that no one else can take that link and publish on other sites.
What I'm trying to do is to make a java script function or to split streaming link in many parts in one file and call it on a webpage so that other people can't see the link, they can see only a function or domain link (different from streaming link) when they check the source code.

In short, the streaming link should be like this:
http://streaming.video.com/user/password/video.ts

I want the link to be shown as:
http://www.domain.com/video/player.ts

Cheers.

What I have tried:

C#
What I've tried is as following:
I have a file named straming.html and here is the code for the player:
<pre lang="HTML"> &lt;embed type="application/x-vlc-plugin" name="VLC" autoplay="yes" loop="yes" volume="100" width="640px" height="320px" target="http://DomaiNanme.com:8000/live/username/password/file.ts">
</pre>

All I want is to hide the streaming link using a function in JavaScript for example:
<pre lang="Javascript">function streamingLink()
{
	window.location.href="http://DomainName:8000/live/username/password/file.ts";
}</pre>

How to call this function streamingLink() on the page streaming.html so that other users can't se the link where the streaming is hosted.
Cheers.
Posted
Updated 13-Oct-16 14:52pm
v2
Comments
Suvendu Shekhar Giri 12-Oct-16 10:08am    
What needed is clear.
What you have tried is yet to be known.
What have you tried so far?

1 solution

Quote:
how to hide a streaming link!
Short answer: you don't.
No matter what you do, there is a point where the browser will know the link address, simply because it can't download the file without the link.

Using "username/password" in the link is a bad idea.

A solution is to create a temporary link on server side and make the server answer to that link only for a limited period. After the period, the server don't answer anymore.

Quote:
According to your solution, correct me if I'm wrong, you are saying that I need to manipulate the .htaccess file or something similar.
Not exactly.
I have never used it, but I know there is a technic with a process on server side, the process handle any page request and see if the page is real or not.
If the page do not exist, the process use the address to know what it must do.
Dynamic web page - Wikipedia[^] with server side scripting.
Server-side scripting - Wikipedia[^]
 
Share this answer
 
v2
Comments
dr_iton 14-Oct-16 2:48am    
"username/password" I will use only in one site (which is my site). When other people want to use that streaming they need another username and password.
According to your solution, correct me if I'm wrong, you are saying that I need to manipulate the .htaccess file or something similar.
Cheers.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900