Archive of https://github.com/drakmor/hlsplayer — HLS player for OSMF flash framework https://github.com/drakmor/hlsplayer
  • ActionScript 99.2%
  • HTML 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Max Lapshin d5b060883c formatting
2013-03-04 22:37:07 +04:00
assets osmf hls plugin 2013-03-04 22:18:01 +04:00
libs osmf hls plugin 2013-03-04 22:18:01 +04:00
src osmf hls plugin 2013-03-04 22:18:01 +04:00
.gitignore readme 2013-03-04 22:32:35 +04:00
index.html osmf hls plugin 2013-03-04 22:18:01 +04:00
Makefile osmf hls plugin 2013-03-04 22:18:01 +04:00
README.md formatting 2013-03-04 22:37:07 +04:00

HLS Flash player

This is a complete HLS flash player.

It contains two important folders: src and libs/at.

src contains StrobeMediaPlayback flash player by Adobe in sources. These sources are modified a bit to be able to load m3u8 manifests

libs/at contains code origined from https://code.google.com/p/apple-http-osmf/ by Matthew Kaufman and it was modified by Mihail Latyshov https://github.com/kutu

Mihail has developed a superior version of HLS plugin from scratch: http://osmfhls.kutu.ru/

Source code is distributed under Mozilla Public License 1.1 as original code.

How to build

export PATH=$PATH:/usr/local/flex_sdk_4/bin
make

You will see:

hlsplayer max$ export PATH=$PATH:/usr/local/flex_sdk_4/bin
hlsplayer max$ make
mxmlc -output SMPHLS.swf \
	-source-path libs \
	-library-path assets \
	-library-path libs \
	-static-rsls \
	-define CONFIG::LOGGING false \
	-define CONFIG::FLASH_10_1 true \
	src/StrobeMediaPlayback.as
Loading configuration file /usr/local/flex_sdk_4/frameworks/flex-config.xml
/Users/max/Sites/hlsplayer/SMPHLS.swf (282726 bytes)

How to use

Take commercial version of http://erlyvideo.org/ (or any other HLS video server), launch it and add following code to your webpage:

<div id="player">Video should be here</div>
<script type="text/javascript">
$(function() {
  var flashvars = {
    src : "http://streamer/stream/index.m3u8",
    autoPlay: true
  };
  var paramObj = {allowScriptAccess : "always", allowFullScreen : "true", allowNetworking : "all"};
  swfobject.embedSWF("http://streamer/flu/StrobeMediaPlayback.swf", "player", 640, 480, "10.3", "/flu/expressInstall.swf",
    flashvars, paramObj, {name: "StrobeMediaPlayback"});
});
</script>