Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

secure urls #28

Closed
ankurss opened this issue Jul 23, 2014 · 6 comments
Closed

secure urls #28

ankurss opened this issue Jul 23, 2014 · 6 comments

Comments

@ankurss
Copy link

ankurss commented Jul 23, 2014

does your current implementation support secure urls ? or can you add this feature ?

example, currently we have different url for each user; this helps us track/restrict users

user 1: http://domain.com/hls/some-secure-code-12345-/chunk1.ts
user 2: http://domain.com/hls/some-secure-code-67890-/chunk1.ts
and so on..

@flavioribeiro
Copy link
Contributor

For now, bemtv associates full URL's with their contents. It doesn't have support for swarm isolation based on the transmission. I'll think about it and get back to you

@flavioribeiro
Copy link
Contributor

hi @ankurss, I don't think this security method is described on the specs. Why are you doing this? It is your segmenter that generates url's like this?

@ankurss
Copy link
Author

ankurss commented Jul 29, 2014

We need secure url which work only for specific ip range & also needs to expire after few hours.

Segmenter doesn't generate such urls, we are doing internal nginx redirects to achieve such urls.

@flavioribeiro
Copy link
Contributor

I see. You change the master playlist URL also? The swarms are created based on this as you can see in streamroot/clappr-p2phls-plugin#8.

One thing I can do is match segments with their names only instead of full URI. I'm afraid of a adaptive streaming scenario were I can't guarantee that chunks from different levels have different names.

@ankurss
Copy link
Author

ankurss commented Aug 4, 2014

different levels is indeed a issue, maybe if we added filename+level in url ? and the swarm can use filename-level to find correct chunks

level1: http://domain.com/hls/some-secure-code-12345-/filename-240p/chunk1.ts
level2: http://domain.com/hls/some-secure-code-67890-/filename-360p/chunk1.ts

@flavioribeiro
Copy link
Contributor

Yes, this definitely solves the issue. Can you open a feature request on https://github.com/bemtv/clappr-p2phls-plugin? I'll use this plugin as the base for others.

@ankurss ankurss closed this as completed Aug 4, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants