Hi, i have a little app on iPad with tabGroup (5 tabs) and splitView, on the first tab I have videos, when I start my app the video starts in fullscreen mode, and I can stop it with done button, but when I change my current tab and then return to tab with videos and play video it starts to play on the previously active tab (not the current one). I got no idea why this works this way. Anybody can help me with that? Is this a titanium bug maybe?
Here is how I use video player in my app.
function VideoTile(icon, title, videoUrl) { // ... // here i add view which starts video onClick // ... view.addEventListener('click', function() { var activeMovie = Titanium.Media.createVideoPlayer({ backgroundColor : 'blue', movieControlMode : Titanium.Media.VIDEO_CONTROL_FULLSCREEN, scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FIT, fullscreen : true, autoplay : true }); activeMovie.url = videoUrl; if (Ti.Platform.osname === 'ios' || Ti.Platform.osname === 'ipad') { var vidWin = Titanium.UI.createWindow({ orientationModes : [Ti.UI.LANDSCAPE_RIGHT, Ti.UI.LANDSCAPE_LEFT], }); vidWin.add(activeMovie); vidWin.open(); activeMovie.addEventListener('fullscreen', function(e) { if (e.entering == false) { vidWin.close(); }; }); } }); return view; } module.exports = VideoTile;