Quantcast
Viewing latest article 4
Browse Latest Browse All 8

Video fullscreen with done button

Hey people,

i have a video with fullscreen

var options = {
                        contentURL : 'training/' + videobeginn + '.mp4',
                        scalingMode : Titanium.Media.VIDEO_SCALING_MODE_FILL,
                        autoplay:true,
                        fullscreen:true
                    };
                    var activeMovie = Titanium.Media.createVideoPlayer(options);
then i have a event to switch automatic to the next video by complete event
activeMovie.addEventListener('complete',function(reason) {
                        if (videobeginn<=videoanzahl) {
                            videobeginn++;
                            activeMovie.setUrl('training/' + videobeginn + '.mp4');
                        }
                    });
and a close event for the done button on ios
activeMovie.addEventListener('fullscreen',function(e) {                                             
                            if (e.entering == 0) {
                                win.close();  
                            }
                     });
The problem is that the event for the close (done) button is also triggered when the event triggers the complete video. what event do I need for an order to close the done button, the entire video (windows)?

Viewing latest article 4
Browse Latest Browse All 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>