mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-10-30 20:22:00 +00:00 
			
		
		
		
	Add 'autoplay', 'controls', 'loop' to embedded player options
This commit is contained in:
		| @@ -400,6 +400,15 @@ get "/embed/:id" do |env| | ||||
|   end | ||||
|   listen ||= false | ||||
|  | ||||
|   autoplay = env.params.query["autoplay"]?.try &.to_i | ||||
|   autoplay ||= 0 | ||||
|  | ||||
|   controls = env.params.query["controls"]?.try &.to_i | ||||
|   controls ||= 1 | ||||
|  | ||||
|   video_loop = env.params.query["loop"]?.try &.to_i | ||||
|   video_loop ||= 0 | ||||
|  | ||||
|   client = make_client(YT_URL) | ||||
|   begin | ||||
|     video = get_video(id, client, PG_DB) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Omar Roth
					Omar Roth