denivip/osmf-hls-plugin — pull request #64 by Alekscs (2013-11-27 21:51:38+00:00)
Title: Relative to absolute path and slash issue - updated and moved to new class

There was issue when relative path to segment was started with slash "/".

Example:
absolute path to m3u8: http://www.example.com/playlist/first/video.m3u8
relative path to segment in m3u8: /part-1.ts
absolute result: http://www.example.com/playlist/first/part-1.ts

But it should be (iOS examples works like that):
http://www.example.com/part-1.ts

Summary we've two possible relative paths to segment:
1. Starting with slash "/":
/part-1.ts
then absolute path should be:
http://www.example.com/part-1.ts

2. Starting without slash:
part-1.ts
then absolute path should be:
http://www.example.com/playlist/first/part-1.ts

After some tests I saw iOS is using relative to absolute transitions as described in these two points.

I added new class:
org.denivip.osmf.utility.Url
so now class:
org.denivip.osmf.utils.Utils.as
is no longer needed.