I have built a custom video player in Titanium. Everything works on it currently, however, I need to implement the AirPlay button back in. Using native objective-c, I see it is possible to do this using a the MPVolumeView according to this thread: AirPlay button on custom view
That is great, if I was coding in objective-c, but that isn't the case. Does anyone have any idea how I can implement this feature through titanium?
Related
I am using YTPlayerView iOS Helper Library (0.1.4 and 0.1.5 is having issue in playing video) for playing video within my app,
I figured out that, there is no difference between pause button click and Done button Click, I want to get difference from the SDK itself without adding any Observers or adding a transparent button over Done button.
I'm using YTPlayerView (YouTube helper library) in my iOS application and according to requirements, I've made custom controls for airplay, share, play etc. For that I've hidden the default controls of YTPlayer using "control" tag.
The problem I'm facing is that, when I play video via airplay on some other media (e.g. appleTV, air server), the default view of YTPlayerView saying "Streaming to ... " Doesn't appear.
I guess it's because I've hidden the default controls.
I want this view to appear on screen whenever user choose other route for video. Unfortunately I'm unable to find the solution. Is there any way to do this or any notification that's fired whenever user switches video route, so that I can place my custom view for that scenario.
I have a requirement to create custom controls for Youtube player in iOS. I have used UIWebview to play youtube videos. I have hidden default controls by using 'controls':0 flag. I am able to map all the actions like play, pause etc using youtube's java script api with my UIButtons. But, I am not able to figure out how to toggle full screen mode programatically with my custom button.
Any help is appreciated.
I'm using SPPlaybackManager and i saw that there is support in Airplay , but i can't find any function that activate the airplay , the only support i see is when i press the home button twice swiping right till i see the airplay button.
is there any way i could make an custom button on my view that when i press on it it will pop up all the NEAR-BY devices using cocoalibspotify?
i saw it is possible with MPVolumeView... but nothing with spotify.
will appreciate if any of you fellows could direct me a bit cause i try to search and didn't found nothing about this subject.
Thanks in advance
MPVolumeView is the thing to use - the AirPlay setting is system-wide. As such, there's nothing in CocoaLibSpotify specifically to do with AirPlay.
I have an iPad app and I have a video playing in a view. I would like to play video using Airplay but by pressing my own button.
I have set allows airplay = YES and so forth, this works if I enable the full controls, but I want to set no controls and have my own button to play the video using Airplay.
So far, I have found no information that would allow me to play a video on AppleTV without allowing the normal controls.
So just using an UIButton action to force the airplay, or at least get available devices and set it manually. Anything that would allow me to do this.
MPVolumeView will only control audio, it won't control video. For that you'd need iOS 5's AVPlayer, or a movie controller.
An alternative for you might be to use AirplayKit, a 3rd party library.
https://github.com/rothacr/AirplayKit
To answer my own question.
This is quite possible without jailbreak.
Here is apple's own page explaining this, so this will pass the review process.
Apple developer library document explaining how to do this