{"id":13743458,"url":"https://github.com/castlabs/dashas","last_synced_at":"2025-05-09T01:30:56.029Z","repository":{"id":14271278,"uuid":"16979173","full_name":"castlabs/dashas","owner":"castlabs","description":"MPEG-DASH player written in ActionScript ","archived":false,"fork":false,"pushed_at":"2016-06-21T11:13:49.000Z","size":21239,"stargazers_count":102,"open_issues_count":14,"forks_count":30,"subscribers_count":58,"default_branch":"master","last_synced_at":"2024-11-15T14:35:30.505Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://castlabs.github.io/dashas","language":"ActionScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/castlabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-19T09:22:40.000Z","updated_at":"2023-11-10T15:46:38.000Z","dependencies_parsed_at":"2022-09-06T04:50:16.148Z","dependency_job_id":null,"html_url":"https://github.com/castlabs/dashas","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/castlabs%2Fdashas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/castlabs%2Fdashas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/castlabs%2Fdashas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/castlabs%2Fdashas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/castlabs","download_url":"https://codeload.github.com/castlabs/dashas/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253174236,"owners_count":21865836,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T05:00:47.472Z","updated_at":"2025-05-09T01:30:55.027Z","avatar_url":"https://github.com/castlabs.png","language":"ActionScript","readme":"\u003c!--[![Build Status](https://travis-ci.org/castlabs/dashas.png?branch=master)](https://travis-ci.org/castlabs/dashas)--\u003e\n\ndash.as\n=======\n\nDash.as plays [MPEG-DASH](http://dashif.org/) video on any device supporting Adobe Flash. It is written in Adobe ActionScript and was designed from the ground-up to be lightweight with performance in mind. \n\nMPEG-DASH (Dynamic Adaptive Streaming over HTTP) became an [International Standard](http://standards.iso.org/ittf/PubliclyAvailableStandards/c057623_ISO_IEC_23009-1_2012.zip) in 2011 and is a technique designed specifically for streaming high-quality multimedia over an HTTP server. It works by fragmenting content into a series of small HTTP-based file segments where each contains block of playback time. Content is made available at a variety of different bitrates to account for variations in a connection's bandwidth quality. Upon each download of a segment, the highest bitrate the connection can handle in time for seamless playback is selected. This allows MPEG-DASH to seamlessly adapt to changing network conditions at the highest quality possible for a seamless user experience.\n\nThis project is an extension for [Open Source Media Framework](http://osmf.org/) and released under the [Mozilla Public License 2.0](http://www.mozilla.org/MPL/2.0/).\n\nAt the same time there is profersional edition of dash.as which integrates nicely with the [Adobe Access DRM](http://www.adobe.com/products/adobe-access.html). For more information please contact with sales department: \"sales (at) castlabs (dot) com\".\n\nPlease visit [CHANGELOG](https://github.com/castlabs/dashas/blob/master/CHANGELOG.md) for changes history.\n\nFor information on a digital rights management (DRM) enabled version, please visit the  [castLabs](http://castlabs.com/products/dashas/) website.\n\n## Demo\n\nFor more information visit [examples page](http://dashas.castlabs.com/demo/try.html).\n\n## Features\n\n* An OSMF extension;\n* Basic support for manifests with a list [1];\n* Basic support for manifests with a template [1];\n* Basic support for manifests with a base URL [1][2];\n* Basic support for manifests with a time line;\n* Audio-video playback [3];\n* Adaptive bitrate streaming;\n* Live streaming;\n* User interface:\n\t* Play/Pause;\n\t* Seeking;\n\t* Fullscreen mode;\n\t* Duration;\n\t* Loaded bytes indicator;\n\t* Buffering indicator;\n\n[1] A server has to have [crossdomain.xml](https://github.com/castlabs/dashas/blob/master/utils/crossdomain.xml) file in the root context.  \n[2] A server has to have custom [.htaccess](https://github.com/castlabs/dashas/blob/master/utils/.htaccess) file in the root context.  \n[3] Adobe Flash Player supports only [H.264 (MPEG-4 Part 10)  and HE-AAC (MPEG-4 Part 3) codecs](http://helpx.adobe.com/flash/kb/supported-codecs-flash-player.html).\n\nFor more information about which attributes and tags are required in a manifest please visit [unit tests](https://github.com/castlabs/dashas/blob/master/src/test/actionscript/com/castlabs/dash/ManifestHandlerTest.as).\n\n## Quick start\n\n### Input files\n\nCreate media input files in different bitrates.\n\n#### Prerequisites\n\n* ffmpeg is installed with libfdk_aac and libx264 library (tested with version 2.1.3);\n\n\n#### Instructions\n\n1. Download source file:\n\n\t\t$ wget http://mirrorblender.top-ix.org/movies/sintel-1024-surround.mp4\n\n1. Create video file encoded at 250k 436p, H.264 codec:\n\n\t\t$ ffmpeg -i sintel-1024-surround.mp4 -an -b:v 250k -s 1024x436 -vcodec libx264 avc1-sintel-436p-250k.mp4\n\n1. Create video file encoded at 500k 436p, H.264 codec:\n\n\t\t$ ffmpeg -i sintel-1024-surround.mp4 -an -b:v 500k -s 1024x436 -vcodec libx264 avc1-sintel-436p-500k.mp4\n\t\t\n1. Create video file encoded at 1000k 436p, H.264 codec:\n\n\t\t$ ffmpeg -i sintel-1024-surround.mp4 -an -b:v 1000k -s 1024x436 -vcodec libx264 avc1-sintel-436p-1000k.mp4\n\t\t\n1. Create audio file encoded at 69k stereo, HE-AAC codec:\n\n\t\t$ ffmpeg -i sintel-1024-surround.mp4 -vn -ac 2 -acodec libfdk_aac -profile:a aac_he -f mp4 mp4a-sintel-69k.mp4\n\t\t\n\t\t\n### Stream\n\t\t\nConvert media input files into DASH stream files.\n\t\t\n#### Prerequisites\n\n* MP4Box is installed (tested with version 0.5.1r5152);\n\n#### Instructions\n\n* Use following command to generate DASH stream:\n\t\t\n\t\t$ MP4Box -dash 3000 -bs-switching no -segment-name \"%s_\" -url-template -out sintel.mpd avc1-sintel-436p-250k.mp4 avc1-sintel-436p-500k.mp4 avc1-sintel-436p-1000k.mp4 mp4a-sintel-69k.mp4\n\t\t\n### Page\n\nFinally try dash.as locally.\n\n#### Prerequisites\n\n* apache2 is installed;\n\n#### Instructions\n\n1. Create a virtual host for localhost;\n\n1. Copy DASH stream files into a document root;\n\n1. Copy [crossdomain.xml](https://github.com/castlabs/dashas/blob/master/utils/crossdomain.xml) file into a document root (for more information visit [crossdomain page](https://github.com/castlabs/dashas/wiki/crossdomain));\n\n1. Copy [.htaccess](https://github.com/castlabs/dashas/blob/master/utils/.htaccess) file into a document root (for more information visit [htaccess page](https://github.com/castlabs/dashas/wiki/htaccess));\n\n1. Copy contents of the [demo](https://github.com/castlabs/dashas/tree/master/site/demo/) directory into a document root;\n\n1. Create `index.html` file in a document root (type absolute URL to a `sintel.mpd` file):\n\n\t\t\u003chtml\u003e\n\t\t\u003chead\u003e\n\t\t\u003cscript type=\"text/javascript\" src=\"/swfobject/swfobject.js\"\u003e\u003c/script\u003e\n\t\t\u003cscript type=\"text/javascript\"\u003e\n\t\t    var flashvars = {};\n\t\t\n\t\t    // absolut URL to sintel.mpd file\n\t\t    flashvars.src = encodeURIComponent(\"\u003cabsolute URL to sintel.mpd file\u003e\");\n\t\t\n\t\t    // absolut URL to dashas.swf file\n\t\t    flashvars.plugin_DashPlugin = encodeURIComponent(location.href + \"/production/dashas.swf\");\n\t\t\n\t\t    var params = {};\n\t\t    params.allowfullscreen = \"true\";\n\t\t    params.allownetworking = \"true\";\n\t\t    params.wmode = \"direct\";\n\t\t\n\t\t    swfobject.embedSWF(\"/StrobeMediaPlayback.swf\", \"placeholder\", \"640\", \"360\", \"10.1\", \"/swfobject/expressInstall.swf\", flashvars, params, {});\n\t\t\u003c/script\u003e\n\t\t\u003c/head\u003e\n\t\t\n\t\t\u003cbody\u003e\n\t\t\u003cdiv id=\"placeholder\"\u003e\n\t\t    \u003cp\u003e\u003cspan\u003ePlease install \u003ca href=\"http://get.adobe.com/flashplayer/\"\u003eAdobe Flash Player\u003c/a\u003e\u003c/span\u003e\u003c/p\u003e\n\t\t\u003c/div\u003e\n\t\t\u003c/body\u003e\n\t\t\u003c/html\u003e\n\t\n1. Go to `http://localhost/index.html`;\n\n---\n\n**TIP:** The flash is very aggressive in caching. If you notice that player doesn't respond to your server side changes, please clean browser's cache (i.e. cached images and files). \n\t\n## Development\n\nAt the moment project supports only Gradle 1.11. Please read [how to install Gradle 1.11 on Linux](https://github.com/castlabs/dashas/wiki/linux).\n\n### Build\n\n#### Prerequisites\n\n* gradle is installed (tested with version 1.11);\n\n#### Instructions\n\n* Build debug SWF package:\n\n\t\t$ cd \u003cproject_workspace\u003e\n\t\t$ gradle clean compile\n\n* Build production SWF package:\n\n\t\t$ cd \u003cproject_workspace\u003e\n\t\t$ gradle -Pprofile=production clean compile\n\n... do you prefer developing in an IDE? Read how to [import project into the IntelliJ IDEA](https://github.com/castlabs/dashas/wiki/IntelliJ-IDEA).\n\n### Test\n\n#### Prerequisites\n\n* gradle is installed (tested with version 1.11);\n\n#### Instructions\n\n1. Download and extract Flash Player:\n    * [Windows](http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_sa_debug.exe)\n    * [Linux](http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_sa_debug.tar.gz)\n    * [OS X](http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_sa_debug.app.zip)\n\n1. Define global variable:\n    \n        $ export FLASH_PLAYER_EXE=Flash\\ Player\\ Debugger.app/Contents/MacOS/Flash\\ Player\\ Debugger\n        \n1. Run test suites:\n\n        $ cd \u003cproject_workspace\u003e\n        $ gradle test\n","funding_links":[],"categories":["Multimedia"],"sub_categories":["Media Player"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcastlabs%2Fdashas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcastlabs%2Fdashas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcastlabs%2Fdashas/lists"}