{ "id": "114573", "key": "TIMOB-13913", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "15708", "description": "2013 Sprint 23 API", "name": "2013 Sprint 23 API", "archived": true, "released": true, "releaseDate": "2013-11-15" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-11-12T20:10:31.000+0000", "created": "2013-05-17T23:58:33.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "module_media", "qe-testadded", "video", "videoplayer" ], "versions": [], "issuelinks": [ { "id": "57754", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "173934", "key": "TIMOB-27276", "fields": { "summary": "[iOS]Unable to get playback state alert/logs when seeking a video", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2019-07-24T13:14:31.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "The {{playbackState}} for {{Ti.Media.VIDEO_PLAYBACK_STATE_SEEKING_BACKWARD}} and {{Ti.Media.VIDEO_PLAYBACK_STATE_SEEKING_FORWARD}} never fire when a user presses and drags the scrub bar on the video.\r\n\r\nI am only able to get the {{play}} and {{pause}} events to fire. To reproduce this, create a new titanium mobile project and paste the following into {{app.js}} and then compile. The video should begin to play on top of a lovely purple/pink background. As you drag the scrub bar, you will see the playbackState never fires anything for {{seeking}}\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'#ff00ff'\r\n});\r\n\r\nvar vidPlayer = Ti.Media.createVideoPlayer({\r\n\twidth:Ti.Platform.displayCaps.platformWidth,\r\n\theight:Ti.Platform.displayCaps.platformWidth / 2,\r\n\ttop:0,\r\n\tbackgroundColor:'#000',\r\n\tautoplay:true,\r\n\tmediaControlStyle:Ti.Media.VIDEO_CONTROL_EMBEDDED,\r\n\turl:'http://vjs.zencdn.net/v/oceans.mp4'\t\r\n});\r\n\r\nfunction playbackStateChange(event)\r\n{\r\n\talert('playbackState: ' + event.playbackState);\r\n}\r\nvidPlayer.addEventListener('playbackState', playbackStateChange);\r\n\r\nwin.add(vidPlayer);\r\nwin.open();\r\n{code}\r\n\r\nI am testing this directly on my android phone which is a Samsung Galaxy Stellar with android OS 4.1.2\r\n", "attachment": [], "flagged": false, "summary": "Android video playbackState, seek event non-existant", "creator": { "name": "rondog", "key": "rondog", "displayName": "Ronnie Swietek", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "- Mac OSX 10.7.5\r\n- Titanium Studio, build: 3.1.0.201304151600\r\n- Ti SDK 3.1.0GA\r\n- Google APIs Android 4.2.2\r\n\r\n&\r\n\r\nTi SDK 3.2.x\r\nTitanium Studio, build: 3.1.0.201303032333\r\nSamsung Galaxy S3 4.1.2", "comment": { "comments": [ { "id": "252736", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello Ronnie,\n\nThanks for bringing this to our attention, I made a slight change to your code and used an alert to display the playback state so as to better see the problem on device without the need of logs.\n\nSuccessfully Reproduced Bug on:\nTi SDK 3.2.x\nTitanium Studio, build: 3.1.0.201303032333\nSamsung Galaxy S3 4.1.2", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-19T00:10:30.000+0000", "updated": "2013-05-19T00:10:30.000+0000" }, { "id": "252806", "author": { "name": "rondog", "key": "rondog", "displayName": "Ronnie Swietek", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks Carter for the change and confirmation. For the time being, I'm going to have to find a different answer since our app needs to be released soon and I need to be able to listen for the seek event. I may just have to do an interval and check the current time", "updateAuthor": { "name": "rondog", "key": "rondog", "displayName": "Ronnie Swietek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-20T16:13:59.000+0000", "updated": "2013-05-20T16:13:59.000+0000" }, { "id": "253446", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ronnie,\n\nI updated the severity to blocker status to note that this is blocking release for your app in hopes of getting this looked at sooner. Apologies for the inconvenience but thanks for bringing this to our attention regardless as you may have saved some people trouble in the future.\n\nBest wishes,\n\nCarter", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-22T18:16:05.000+0000", "updated": "2013-05-22T18:16:05.000+0000" }, { "id": "253670", "author": { "name": "rondog", "key": "rondog", "displayName": "Ronnie Swietek", "active": true, "timeZone": "America/Los_Angeles" }, "body": "aw, nice! I plan to release our app update at the end of the week so I don't think an update will be ready in time, but as soon as it gets fixed I'll again release an update. Much appreciated Carter. I'll be keeping an eye on this ticket", "updateAuthor": { "name": "rondog", "key": "rondog", "displayName": "Ronnie Swietek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-23T17:30:46.000+0000", "updated": "2013-05-23T17:30:46.000+0000" }, { "id": "278868", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Added support for seek events\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4941", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-11-10T11:56:49.000+0000", "updated": "2013-11-10T11:56:49.000+0000" }, { "id": "279908", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix. We see the playBackState fired on seeking the video after we pull down the scrub.\r\nClosing.\r\n\r\nEnvironment:\r\nAppcel Studio : 3.2.0.201311150806\r\nTi SDK : 3.2.0.v20131115115645\r\nMac OSX : 10.8.5\r\nAlloy : 1.3.0\r\nCLI - 3.2.0", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-15T23:15:32.000+0000", "updated": "2013-11-15T23:15:32.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }