nchutchind/cordova-plugin-streaming-media

Issue with AirPlay when cancel/close video in the middle

Open

#177 opened on Mar 14, 2019

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Java (392 stars) (285 forks)batch import
bughelp wantedpull-request-welcome

Description

What version of Streaming-Meda-Cordova-Plugin are you using? 2.2.0

What version of Cordova are you using? 8.1.2

What devices are affected? iPad

Please describe the issue in detail, with relevant code samples using with Ionic 4 and Issues come up with video if you cancel/close it manually during Airplay with Apple TV.

const options: StreamingVideoOptions = { successCallback: () => { console.log('Video played') }, errorCallback: (e) => { console.log('Error streaming') }, orientation: 'landscape', shouldAutoClose: true, controls: false }; this.streamingMedia.playVideo(File.applicationDirectory + 'www/assets/videos/test.mp4', options);

What did you expect to happen? Video should close on Apple TV as well and go back to the application

What actually happened? I'm mirriong my ipad on AppleTV. If I stop a video in the middle by pressing the cross on top left corner it stop the video on ipad and go back to page on the ipad but video gets stuck on the Apple TV and don't go back to the application. It works fine if video complete successfully and you don't cancel the video in the middle.

Contributor guide