{"id":21904019,"url":"https://github.com/m1ga/ti.exoplayer","last_synced_at":"2025-04-15T20:51:06.581Z","repository":{"id":80614893,"uuid":"452716116","full_name":"m1ga/ti.exoplayer","owner":"m1ga","description":"Ti.Exoplayer - Audio/Video player for Android","archived":false,"fork":false,"pushed_at":"2024-01-27T10:45:37.000Z","size":2162,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T01:13:02.392Z","etag":null,"topics":["android","exoplayer","titanium-mobile","titanium-module"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m1ga.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"m1ga"}},"created_at":"2022-01-27T14:32:01.000Z","updated_at":"2025-03-21T09:44:25.000Z","dependencies_parsed_at":"2023-11-25T12:24:10.040Z","dependency_job_id":"8d23e59b-917a-4671-a999-fef8f2aa01b7","html_url":"https://github.com/m1ga/ti.exoplayer","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1ga%2Fti.exoplayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1ga%2Fti.exoplayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1ga%2Fti.exoplayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1ga%2Fti.exoplayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m1ga","download_url":"https://codeload.github.com/m1ga/ti.exoplayer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249153908,"owners_count":21221330,"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":["android","exoplayer","titanium-mobile","titanium-module"],"created_at":"2024-11-28T15:30:56.188Z","updated_at":"2025-04-15T20:51:06.571Z","avatar_url":"https://github.com/m1ga.png","language":"Java","funding_links":["https://github.com/sponsors/m1ga","https://www.buymeacoffee.com/miga"],"categories":[],"sub_categories":[],"readme":"# ExoPlayer module for Titanium SDK\n\nUsing Androids Media3 [ExoPlayer](https://developer.android.com/guide/topics/media/exoplayer) to play audio and video streams.\n\u003e ExoPlayer supports features not currently supported by Android’s MediaPlayer API, including DASH and SmoothStreaming adaptive playbacks\n\nBased on Media3 ExoPlayer 1.1.1. [Suppored media formats](https://developer.android.com/guide/topics/media/media-formats)\nLatest module version needs Titanium SDK 12.6.x+\n\n## Code\n\n```js\nimport exoPlayer from 'ti.exoplayer';\nconst exoView = exoPlayer.createExoPlayer();\n```\n\n## Methods\n* \u003cb\u003eplay()\u003c/b\u003e: plays the audio/video file\n* \u003cb\u003epause()\u003c/b\u003e: pauses the stream\n* \u003cb\u003estop()\u003c/b\u003e: stops the stream\n* \u003cb\u003erelease()\u003c/b\u003e: releases the player. Run this when you don't need it anymore\n* \u003cb\u003eseekTo(ms)\u003c/b\u003e: seek to a position in the file\n\n## Properties\n* \u003cb\u003eaudioOnly\u003c/b\u003e (boolean, creation only): player won't create a \"video surface\" and safes resources.\n* \u003cb\u003eurl\u003c/b\u003e (String): the URL of the audio/video file\n* \u003cb\u003eplaying\u003c/b\u003e (boolean): current play status\n* \u003cb\u003ecurrentPosition\u003c/b\u003e (int): current position\n* \u003cb\u003eduration\u003c/b\u003e (int): duration (-1 if unavailable)\n* \u003cb\u003eminBufferDuration\u003c/b\u003e (int): min buffer duration in ms (default: 3000)\n* \u003cb\u003emaxBufferDuration\u003c/b\u003e (int): max buffer duration in ms (default: 8000)\n* \u003cb\u003eminResumeBuffer\u003c/b\u003e (int): min playback resume buffer duration in ms (default: 1500)\n* \u003cb\u003eminStartBuffer\u003c/b\u003e (int): min playback start buffer duration in ms  (default: 500)\n* \u003cb\u003etargetBufferBytes\u003c/b\u003e (int):  target buffer size in bytes. Only used if \u003e-1 and other the other buffer durations will be ignored (default: -1)\n* \u003cb\u003ecrossProtocolRedirects\u003c/b\u003e (boolean):  Allow cross platform redirects (default: false)\n\n## Events\n* \u003cb\u003eplayerState\u003c/b\u003e: state (on of the constants)\n* \u003cb\u003emetaData\u003c/b\u003e: title, album, albumTitle, albumArtist\n* \u003cb\u003eseek\u003c/b\u003e: position, oldPosition\n\n## Constants\n\n* STATE_IDLE\n* STATE_BUFFERING\n* STATE_READY\n* STATE_ENDED\n* STATE_PLAYING\n\n\n## Example\n\nCheck the `example/app.js` for code.\n\n\n## Author\n\n- Michael Gangolf ([@MichaelGangolf](https://twitter.com/MichaelGangolf) / [Web](http://migaweb.de))\n\n\u003cspan class=\"badge-buymeacoffee\"\u003e\u003ca href=\"https://www.buymeacoffee.com/miga\" title=\"donate\"\u003e\u003cimg src=\"https://img.shields.io/badge/buy%20me%20a%20coke-donate-orange.svg\" alt=\"Buy Me A Coke donate button\" /\u003e\u003c/a\u003e\u003c/span\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm1ga%2Fti.exoplayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm1ga%2Fti.exoplayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm1ga%2Fti.exoplayer/lists"}