{"id":13743560,"url":"https://github.com/s9tpepper/OSMFSparkComponents","last_synced_at":"2025-05-09T01:31:05.393Z","repository":{"id":1290518,"uuid":"1231184","full_name":"s9tpepper/OSMFSparkComponents","owner":"s9tpepper","description":"A collection of classes that provide an OSMF media player skinnable using Spark skinning practices.  Also included is a powerful playlist component used to create playlists for your OSMF media players.","archived":false,"fork":false,"pushed_at":"2011-02-07T19:44:27.000Z","size":928,"stargazers_count":16,"open_issues_count":1,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-15T14:35:38.775Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/s9tpepper.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-01-07T20:42:27.000Z","updated_at":"2016-06-23T10:43:33.000Z","dependencies_parsed_at":"2022-07-06T17:32:00.031Z","dependency_job_id":null,"html_url":"https://github.com/s9tpepper/OSMFSparkComponents","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/s9tpepper%2FOSMFSparkComponents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s9tpepper%2FOSMFSparkComponents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s9tpepper%2FOSMFSparkComponents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s9tpepper%2FOSMFSparkComponents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s9tpepper","download_url":"https://codeload.github.com/s9tpepper/OSMFSparkComponents/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253174253,"owners_count":21865841,"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:51.197Z","updated_at":"2025-05-09T01:31:04.553Z","avatar_url":"https://github.com/s9tpepper.png","language":"ActionScript","readme":"The MIT License\n\nCopyright (c) 2010 Omar Gonzalez\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\nOSMFSparkComponents\n================================================================================\nThe OSMFSparkComponents library is a Spark (Flex 4) based code library that\nencapsulates the basic OSMF media player initialization while at the same time\nproviding a Spark wrapper (OSMFSparkPlayer) that includes Spark based UI controls\nthat can be easily skinned.\n\nThe library also includes a playlist component that works with the OSMFSparkPlayer\nto easily create playlist functionality for OSMF supported media and a custom\nOSMF MediaElement called YouTubeElement that can be used to view YouTube urls\nalong with the rest of your OSMF supported media in the same playlist.\n\n\n\n\nUSAGE EXAMPLE:\n\n\u003cs:Application xmlns:fx='http://ns.adobe.com/mxml/2009' \n\t\t\t   xmlns:s='library://ns.adobe.com/flex/spark'\n\t\t\t   xmlns:mx='library://ns.adobe.com/flex/mx' minWidth='955' minHeight='600' \n\t\t\t   creationComplete='osmfsparkplayer1_creationCompleteHandler(event)'\n\t\t\t   xmlns:player='ab.osmf.spark.player.*' xmlns:playlist='ab.osmf.spark.player.playlist.*'\u003e\n\t\u003cfx:Script\u003e\n\t\t\u003c![CDATA[\n\t\t\timport ab.osmf.youtube.YouTubeMediaFactoryItem;\n\t\t\timport ab.osmf.youtube.YouTubeUrlType;\n\t\t\t\n\t\t\timport mx.events.FlexEvent;\n\t\t\t\n\t\t\tprotected function osmfsparkplayer1_creationCompleteHandler(event:FlexEvent):void\n\t\t\t{\n\t\t\t\t// Add YouTubeElement to the MediaFactory so YouTube is supported.\n\t\t\t\t\tOSMFPlaylist.addUrlType('youtube', new YouTubeUrlType());\n\t\t\t\t\tOSMFPlaylist.mediaFactory.addItem(new YouTubeMediaFactoryItem());\n\t\t\t\t\n\t\t\t\t// Make some data objects for the playlist\n\t\t\t\t\tconst seether:Object = new Object();\n\t\t\t\t\tseether.myUrl = 'http://www.youtube.com/watch?v=hPsQcB52V18';\n\t\t\t\t\tseether.title = 'Veruca Salt - Seether (Live in Glastonbury)';\n\t\t\t\t\tseether.desc = 'Veruca Salt perform Seether live in Glastonbury in 1995';\n\t\t\t\t\tseether.thumb = 'http://flavorwire.com/wp-content/uploads/2010/02/veruca-salt.jpg';\n\t\t\t\t\t\n\t\t\t\t\tconst tron:Object = new Object();\n\t\t\t\t\ttron.myUrl = 'http://omar.likesflex.com/dev/tron.mp4';\n\t\t\t\t\ttron.title = 'Tron';\n\t\t\t\t\ttron.desc = 'A 5 second clip of Tron.';\n\t\t\t\t\ttron.thumb = 'http://www.shadowandact.com/wp-content/uploads/2010/11/tron_legacy.jpg';\n\t\t\t\t\n\t\t\t\t// Set up the data provider array\n\t\t\t\t\tconst dataProvider:Array = new Array(tron, seether, tron, seether, tron, seether, tron, seether, tron, seether);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Configure the playlist so it knows what fields on your object to get data from.\n\t\t\t\t\tmyPlaylist.titleField\t\t\t= 'title';\n\t\t\t\t\tmyPlaylist.descriptionField\t\t= 'desc';\n\t\t\t\t\tmyPlaylist.thumbnailField\t\t= 'thumb';\n\t\t\t\t\tmyPlaylist.urlField\t\t\t\t= 'myUrl';\n\t\t\t\t\n\t\t\t\t// Add data to your playlist\n\t\t\t\tmyPlaylist.data = dataProvider;\n\t\t\t}\n\t\t\t\n\t\t]]\u003e\n\t\u003c/fx:Script\u003e\n\t\u003cfx:Declarations\u003e\n\t\u003c/fx:Declarations\u003e\n\t\n\t\u003cs:layout\u003e\n\t\t\u003cs:HorizontalLayout gap='0' /\u003e\n\t\u003c/s:layout\u003e\n\t\n\t\u003cplayer:OSMFSparkPlayer id='osmfPlayer' screenWidth='640' screenHeight='480' /\u003e\n\t\u003cplaylist:OSMFPlaylist id='myPlaylist' player='{osmfPlayer}' height='{osmfPlayer.height}' width='400' /\u003e\n\t\n\u003c/s:Application\u003e","funding_links":[],"categories":["Multimedia"],"sub_categories":["Media Player"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs9tpepper%2FOSMFSparkComponents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs9tpepper%2FOSMFSparkComponents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs9tpepper%2FOSMFSparkComponents/lists"}