[TIMOB-27276] [iOS]Unable to get playback state alert/logs when seeking a video
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 8.0.1, Release 8.1.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Samir Mohammed |
Assignee | Unknown |
Created | 2019-07-24T13:14:31.000+0000 |
Updated | 2019-07-26T18:05:28.000+0000 |
Description
When scrubbing through a video no playback state alerts are fired (this works fine in android).
var win = Ti.UI.createWindow({
backgroundColor:'#ff00ff'
});
var vidPlayer = Ti.Media.createVideoPlayer({
width:Ti.Platform.displayCaps.platformWidth,
height:Ti.Platform.displayCaps.platformWidth / 2,
top:0,
backgroundColor:'#000',
autoplay:true,
mediaControlStyle:Ti.Media.VIDEO_CONTROL_EMBEDDED,
url:'http://vjs.zencdn.net/v/oceans.mp4'
});
function playbackStateChange(event)
{
alert('playbackState: ' + event.playbackState);
}
vidPlayer.addEventListener('playbackState', playbackStateChange);
win.add(vidPlayer);
win.open();
*Test Steps:*
[~smohammed] Event name is 'playbackstate' ('s' in small letter). See document [here](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Media.VideoPlayer-event-playbackstate).