{"id":13640992,"url":"https://github.com/XuDeveloper/VideoLoadingView","last_synced_at":"2025-04-20T07:31:32.284Z","repository":{"id":105589939,"uuid":"69571301","full_name":"XuDeveloper/VideoLoadingView","owner":"XuDeveloper","description":":movie_camera:It's a view which can be used in the video loading layout.","archived":false,"fork":false,"pushed_at":"2016-10-01T13:22:11.000Z","size":2198,"stargazers_count":45,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-03T01:18:43.390Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/XuDeveloper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-09-29T13:42:03.000Z","updated_at":"2022-11-13T13:48:14.000Z","dependencies_parsed_at":"2024-01-14T11:06:30.661Z","dependency_job_id":"29b03ed8-ef18-45a0-9139-fcffe8cbd9e9","html_url":"https://github.com/XuDeveloper/VideoLoadingView","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XuDeveloper%2FVideoLoadingView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XuDeveloper%2FVideoLoadingView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XuDeveloper%2FVideoLoadingView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XuDeveloper%2FVideoLoadingView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XuDeveloper","download_url":"https://codeload.github.com/XuDeveloper/VideoLoadingView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223821984,"owners_count":17208777,"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-02T01:01:16.639Z","updated_at":"2024-11-09T11:30:35.256Z","avatar_url":"https://github.com/XuDeveloper.png","language":"Java","readme":"# VideoLoadingView\n\n[中文版](https://github.com/XuDeveloper/VideoLoadingView/blob/master/docs/README-ZH.md)\n\nIt's a loading view which can customize its color, change its speed or control it by yourselves(register a listener).\n\nMaybe it's suitable for those video playing layouts.\n\n### Preview\n\n![VideoLoadingView-screenshot](https://raw.githubusercontent.com/xudeveloper/VideoLoadingView/master/docs/screen.gif)\n\n### Integration\n\n#### Android Studio\n\n``` xml\n  allprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url \"https://jitpack.io\" }\n\t\t}\n  }\n\n  dependencies {\n\t    compile 'com.github.XuDeveloper:VideoLoadingView:v1.0'\n  }\n\n```\n#### Eclipse\n\n\u003e Maybe you can copy my code to your project!\n\n### Usage\n\n\nDeclare a VideoLoadingView inside your XML layout file:\n\n``` xml\n\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cRelativeLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\u003e\n\n    \u003ccom.xu.library.VideoLoadingView\n        android:id=\"@+id/videoloadingview\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        app:ArcColor=\"@color/green\"\n        app:TriangleColor=\"@color/green\"\n        /\u003e\n\n\u003c/RelativeLayout\u003e\n\n```\n\nOr use Java code dynamically.\n\n``` java\n\n    view = (VideoLoadingView) findViewById(R.id.videoLoadingView);\n    view.setArcColor(Color.GREEN);\n    view.setTriangleColor(Color.GREEN);\n    view.setSpeed(VideoLoadingViewSpeed.SPEED_FAST);  //Default: VideoLoadingViewSpeed.SPEED_MEDIUM\n    // view.setSpeed(VideoLoadingViewSpeed.SPEED_SLOW); \n    view.start();  //Default: stop()\n    // view.pause();\n    // view.stop();\n\n```\n\nYou can register a listener:\n\n```\n    view.registerVideoViewListener(new VideoLoadingView.VideoViewListener() {\n         @Override\n         public void onStart() {\n             Log.i(TAG, \"video_loading_view onStart\");\n         }\n\n         @Override\n         public void onPause(double progress) {\n             Log.i(TAG, \"video_loading_view onPause, progress:\" + progress);\n         }\n\n         @Override\n         public void onStop() {\n             Log.i(TAG, \"video_loading_view onStop\");\n         }\n     });\n\n```\n\n##**License**\n\n```license\nCopyright [2016] XuDeveloper\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n\n","funding_links":[],"categories":["进度条"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FXuDeveloper%2FVideoLoadingView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FXuDeveloper%2FVideoLoadingView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FXuDeveloper%2FVideoLoadingView/lists"}