{"id":20900882,"url":"https://github.com/vhyza/jw_player_helper","last_synced_at":"2025-05-13T02:30:31.298Z","repository":{"id":1337690,"uuid":"1283594","full_name":"vhyza/jw_player_helper","owner":"vhyza","description":"Simple Rails JWPlayer helper","archived":false,"fork":false,"pushed_at":"2013-05-25T16:56:32.000Z","size":2021,"stargazers_count":7,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T06:18:14.660Z","etag":null,"topics":["deprecated","rails","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/vhyza.png","metadata":{"files":{"readme":"README.markdown","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-23T02:18:34.000Z","updated_at":"2018-11-23T16:08:16.000Z","dependencies_parsed_at":"2022-08-16T13:10:28.811Z","dependency_job_id":null,"html_url":"https://github.com/vhyza/jw_player_helper","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/vhyza%2Fjw_player_helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vhyza%2Fjw_player_helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vhyza%2Fjw_player_helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vhyza%2Fjw_player_helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vhyza","download_url":"https://codeload.github.com/vhyza/jw_player_helper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253859340,"owners_count":21975082,"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":["deprecated","rails","ruby"],"created_at":"2024-11-18T11:23:41.337Z","updated_at":"2025-05-13T02:30:30.935Z","avatar_url":"https://github.com/vhyza.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JW Player Helper #\n\nSimple Rails helper for rendering [JWPlayer 5.4](http://www.longtailvideo.com/players/) using [SWFObject v2.2](http://code.google.com/p/swfobject/)\n\n## JW Player ##\n\nIs opensource player supporting video (for example .mp4, .mov, .f4v, .flv), audio (.mp3) and image (.jpg, .png, .gif) files ([full list](http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12539/supported-video-and-audio-formats)).\n\n\n## Usage ##\n\n### Installation ###\n\n#### Rails 3 ####\n\n* add `gem 'jw_player_helper'` into your `Gemfile`\n* add `\u003c%= javascript_include_tag 'swfobject' %\u003e` in your layout\n* now you can use `\u003c%= video_player(flashvars={}, attributes={}, params={}) %\u003e` to render JW Player\n\n#### Rails 2 ####\n\n* add `config.gem \"jw_player_helper\"` into your `config/environment.rb`\n* add `\u003c%= javascript_include_tag 'swfobject' %\u003e` in your layout\n* now you can use `\u003c%= video_player(flashvars={}, attributes={}, params={}) %\u003e` to render JW Player\n\n### Configuration ###\n\n#### flashvars ####\n\n    :file =\u003e \"relative path to file (for example: /video/pf2011.flv)\",\n    :image =\u003e \"relative path to splash image (for example: /video/pf2011.jpg)\",\n    :bufferlength =\u003e 1,\n    :autostart =\u003e false\n\n\n[Full list of JW Player flashvars](http://developer.longtailvideo.com/trac/wiki/Player5FlashVars)\n\n#### attributes ####\n\n    :id =\u003e 'jw_player',\n    :name =\u003e 'jw_player',\n    :width =\u003e 300,\n    :height =\u003e 300,\n    :message =\u003e \"Get the Adobe Flash Player to see this video.\",\n    :element =\u003e \"div\",\n    :onmouseover =\u003e nil, # you can define javascript callbacks for element\n    :onmouseout =\u003e nil,\n    :onclick =\u003e nil\n\n#### params ####\n\n    :allowfullscreen =\u003e true,\n    :allowscriptaccess =\u003e 'always'\n\n### examples ###\n\n    \u003c%= video_player({:file =\u003e \"/video/pf2011.flv\", :image =\u003e \"/video/pf2011.jpg\"}) %\u003e\nrenders JW Player with splash screen pf2011.jpg\n\n    \u003c%= video_player({:file =\u003e \"/video/pf2011.flv\", :image =\u003e \"/video/pf2011.jpg\"}, {:width =\u003e 640, :height =\u003e 480, :id =\u003e \"pf2011_video\"}) %\u003e\nrenders JW Player with resolution `640x480px` and id `pf2011_video`\n\n    \u003c%= video_player({:file =\u003e \"/video/pf2011.flv\", :image =\u003e \"/video/pf2011.jpg\", :mute =\u003e true}, {:width =\u003e 640, :height =\u003e 480, :id =\u003e \"pf2011_video\", :onclick =\u003e \"alert('clicked!');\"}) %\u003e\nrenders muted JW player with javascript alert when user click on video\n\n\n### skins ###\n\nGem is packed with few skins\n\n* [glow](http://www.longtailvideo.com/addons/skins/196/Glow?q=)\n* [beelden](http://www.longtailvideo.com/addons/skins/155/Beelden?q=)\n* [stormtrooper](http://www.longtailvideo.com/addons/skins/156/Stormtrooper?q=)\n* [simple](http://www.longtailvideo.com/addons/skins/51/Simple?q=)\n\n        Usage: add :skin =\u003e 'name' to your flashvars. For example: \u003c%= video_player({:file =\u003e \"/video/pf2011.flv\", :image =\u003e \"/video/pf2011.jpg\", :skin =\u003e \"glow\"}) %\u003e\n\nYou can find more skins [here](http://www.longtailvideo.com/addons/skins).\n\nUsage: Copy downloaded zip into `RAILS_ROOT/public/swf/skins` and set `:skin =\u003e 'name without .zip extension'` flashvar\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvhyza%2Fjw_player_helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvhyza%2Fjw_player_helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvhyza%2Fjw_player_helper/lists"}