{"id":13743542,"url":"https://github.com/thatguystone/flowplayer-ima","last_synced_at":"2025-05-09T01:31:03.314Z","repository":{"id":2649383,"uuid":"3639585","full_name":"thatguystone/flowplayer-ima","owner":"thatguystone","description":"A simple Interactive Media Ads plugin for FP","archived":true,"fork":false,"pushed_at":"2014-02-16T15:42:46.000Z","size":445,"stargazers_count":24,"open_issues_count":0,"forks_count":8,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-15T14:35:36.731Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"ActionScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thatguystone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-03-06T15:58:49.000Z","updated_at":"2023-01-28T20:39:17.000Z","dependencies_parsed_at":"2022-08-28T12:22:16.804Z","dependency_job_id":null,"html_url":"https://github.com/thatguystone/flowplayer-ima","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatguystone%2Fflowplayer-ima","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatguystone%2Fflowplayer-ima/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatguystone%2Fflowplayer-ima/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatguystone%2Fflowplayer-ima/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thatguystone","download_url":"https://codeload.github.com/thatguystone/flowplayer-ima/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253174248,"owners_count":21865839,"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:50.424Z","updated_at":"2025-05-09T01:31:02.905Z","avatar_url":"https://github.com/thatguystone.png","language":"ActionScript","readme":"# Flowplayer plugin for basic Google Interactive Media Ads (IMA/VAST) support\n\nProvides basic support for VAST ads.  You can only give it a URL to some VAST xml, and it will play whatever it finds in there.\n\nIf you need to schedule ads in your clips, or schedule prerolls, or anything like that, feel free to write it and open a pull request, or if enough people want it, I'll look into it.\n\n# Usage\n\n## In a Playlist\n\nYou can use the plugin just like any other streaming plugin:\n\n```javascript\nflowplayer(\"fp\", \"http://releases.flowplayer.org/swf/flowplayer-3.2.16.swf\", {\n\tplugins: {\n\t\tima: {\n\t\t\turl: \"flowplayer.ima-3.2.7.swf\"\n\t\t}\n\t},\n\n\tplaylist: [\n\t\t{\n\t\t\tprovider: 'ima',\n\t\t\turl: 'http://ad.doubleclick.net/pfadx/N270.132652.1516607168321/B3442378.3;dcadv=1379578;sz=0x0;ord=79879;dcmt=text/xml'\n\t\t},\n\t\t{\n\t\t\turl: 'http://pseudo01.hddn.com/vod/demo.flowplayervod/Extremists.flv'\n\t\t}\n\t]\n});\n```\n\n## Force Playing\n\nIf you're feeling daring, you can FORCE flowplayer to play your clip; be careful as this overrides everything and just plays the clip, no matter what.\n\n```javascript\n\tf = flowplayer('player'...)\n\tf.getPlugin('ima').playAd('http://some/path/to/vast.xml');\n```\n\n# Compile\n\nAdd this as a plugin to your flowplayer compilation (how to compile flowplayer is outside this scope), and update your\nBuiltInConfig.as with the following:\n\n```actionscript\n\tpackage  {\n\t\timport com.iheart.ima.InteractiveMediaAdsProvider;\n\n\t\tpublic class BuiltInConfig {\n\t\t\tprivate var ima:InteractiveMediaAdsProvider;\n\n\t\t\tpublic static const config:Object = {\n\t\t\t\t\tima: {\n\t\t\t\t\t\t\"url\": \"com.iheart.ima.InteractiveMediaAdsProvider\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t}\n```\n\nAnd in your build.properties file for flowplayer (NOT the plugin) add:\n\n```\n\tplugin-swc=/path/to/ima/lib/\n```\n\n## Fun Bugs\n\nThere's currently a bug in FP's JS api, however, that causes the plugin not to have any external methods applied to it.  To fix this, you have to do:\n\n```javascript\n\tf.getPlugin('ima')._fireEvent('onUpdate');\n```\n\nThen you can continue use as normal.\n\n# Downloadable Plugin\n\nYou can find it [here](dist/flowplayer.ima-3.2.7.swf?raw=true). You can use it just like any other plugin in flowplayer.\n\n```javascript\n\tplugins: {\n\t\tima: {\n\t\t\turl: 'flowplayer.ima-3.2.7.swf'\n\t\t}\n\t}\n```\n\n# From Google\n\nThis plugin uses Google's IMA SDK, as such, you are bound to their terms of service: https://developers.google.com/interactive-media-ads/terms\n","funding_links":[],"categories":["Multimedia"],"sub_categories":["Media Player"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatguystone%2Fflowplayer-ima","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthatguystone%2Fflowplayer-ima","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatguystone%2Fflowplayer-ima/lists"}