My videos are on youtube but I want to put on my website but it does not want the people can watch on you tube, pro it must disable the Watch on you tube option. Anyone know how I can do this?
I'm not sure I understood your question but you can try by checking the "Authorize integration" option in Advanced options... ;-)
Related
So since the recent update in whatsapp, you can play youtube videos using the default AVPlayer in iOS.
I wanted to know how is this functionality possible? And if there is a way to implement this without violating Youtube's Terms of Service?
I know of tools like https://github.com/0xced/XCDYouTubeKit but they clearly violate Youtube's TOS.
Check the screenshot below
One option that I don't know if the guys on Whatsapp use but I already used in a production App is a Pod made by YouTube guys, called
YouTube-Player-iOS-Helper
You can see the link to the documentation below. With this Pod you can put a video preview in a UIView that helps but I don't know if is the best option to use because the Pod uses a Webview, injecting Javascript.
It's just an option... maybe there is a better solution for this problem.
Documentation link: https://developers.google.com/youtube/v3/guides/ios_youtube_helper
I think Youtube API should available to integrate in your iOS app. Because normally in website youtube provide embedded api to play their video on other website. So, same for iOS also may be possible. Please check youtube's official developer website. You can Check this: https://developers.google.com/youtube/v3/guides/ios_youtube_helper
This question already has an answer here:
Audio Information of Current Track iOS Swift
(1 answer)
Closed 6 years ago.
How can I access another app's currently playing audio - the actual audio item but metadata is welcome too. I can see that this question has been asked a lot but with few solutions being offered over the years. I understand apple's philosophy for probably not wanting an app to be able to do this. I also understand that such a request is probably outside of the iOS API. With that being said, I would really like some kind of solution.
Logically, I feel that
MPNowPlayingInfoCenter.defaultCenter().nowPlayingInfo
should return the info for whatever is currently playing; however, as others have mentioned, this value is always nil for audio being played outside of your app. Notably, popular audio apps seem to fail to use the MPNowPlayingInfoCenter class, making such audio fail to appear.
If using the default music app, one can use
MPMusicPlayerController.systemMusicPlayer().nowPlayingItem
However, what is a more consistent way to access audio playing through the podcasts app, Spotify, Pandora, Safari, etc?
Has anyone found a solution to this? Are there any old Objective-C frameworks that support this functionality?
One approach might be viable if there is there some way I can access the audio path of the item currently being played. For example, if I could get the path of the currently playing item, I could create an AV object from it:
AVAudioPlayer(contentsOfURL: audioUrl)
So is there a way I can get the audio url of the currently playing item and use it that way?
Is another approach better?
If a native solution does not exist, is it possible to bodge something together for it to work? Any advice or ideas welcome.
Edit: I don't believe anybody has been able to achieve this; however, I think a lot of people would like to. If this has been addressed, please link it! :)
This isn't currently possible in iOS. Just changing your AVAudioSession category options to .MixWithOthers, what will be an option to get info Song Info from other apps, causes your nowPlayingInfo to be ignored.
iOS only considers non-mixing apps for inclusion in MPNowPlayingInfoCenter, because there is uncertainty as to which app would show up in (e.g.) Control Center if there are multiple mixing apps playing at the same time.
Proposal: An option would be to use a music fingerprinting algorithm to recognize what is being played by recording it from your App.
Some interesting projects in this direction:
Gracenote https://developer.gracenote.com/ Gracenote (which is owned by Sony) has opened up it's SDKs and APIs and has a proper dev portal.
EchoNest & Spotify API http://developer.echonest.com/ Fusioned with Spotify since March 2016
ACRCloud https://www.acrcloud.com/ offers ACR solutions for custom files such as TV commercials, music tec
In my app I want to give the user the option to record a video and share it. What is the easiest way to achieve this? (I have been trying to add video recording for days now and keep hitting dead ends). Can anyone offer some help?
To allow functionality to record videos within your app, please go to the Apple documentation for UIImagePickerController for taking pictures and movies
UIImagePickerController Class Reference Link
Once you have your video, sharing it is a little more difficult as unlike text or images, the movie file sizes can often be very large and may have to rule out simple sharing via email, text-message etc.
The best way to share in this case, would be to connect to an external API, like YouTube, where you can upload the video from the app. Here's a link to YouTube documentation for this
YouTube API Documentation Link
I suggest these as good places to start, as this is what you are asking for.
Hope this helps
I have a youtube video that I want to be by default HD (720), not the auto set by youtube (360).
All I found was I can configure what I'll see from other user's video, but I can't find where I set the quality the users how watch my video would have by default.
I'm using Camtasia 8 for the video. Maybe I need to configure it there?
Any hint would be great.
Perhaps nobody knows with this new youtube layout.
Thanks
Looks like that impossible to configure- You can only configure embed videos.
I solved this by simply prompting the user with those youtube comment to toggle HD, and hope they would.
I think youtube says it best here describing the way you can and should embed youtube videos.
http://support.google.com/youtube/bin/answer.py?hl=en&answer=178264
No, wait, don't go! I'm serious.
I was (am?) attempting to rickroll my coworkers in celebration of defeating the iOS beast in our latest battle, when the hydra decided to get the last laugh. Clicking on links to, or openURL with, either of http://www.youtube.com/watch?v=dQw4w9WgXcQ or http://www.youtube.com/watch?v=oHg5SJYRHA0 (the two major rickrolling videos) results in a "Could not load movie" error. But when I find the video through the Youtube app, it plays fine. Other video URLs chosen at random and run through the exact same pathways work fine.
I'm not sure how else to ask this, other than WTF? Could Apple / Youtube be special-casing these videos?
Official music videos often have all kinds of restrictions for mobile playback... try a less popular video of the song?
Could Apple / Youtube be special-casing these videos?
Sure, they might. The Wikipedia entry on "rickrolling" says this:
The meme is a bait and switch; a person provides a hyperlink seemingly
relevant to the topic at hand, but actually leads to Astley's video.
Fooling the user is very much against the spirit of the iOS app store review guidelines, and it's probable that you're not the first person to try this. So it's possible that certain videos are special-cased, or that certain videos are marked with an attribute that prevents them from loading.
Further down in the article, Wikipedia also says:
In October/November 2009, a worm designed to infect jailbroken iPhones
changed the wallpaper of infected phones to a picture of Rick Astley
overlaid with the text "ikee is never going to give you up".
This seems like an even better reason for iOS to have code that avoids videos involving Rick Astley. Not that the worm is directly connected to the videos, but if the unexpected appearance of Rick Astley is a meme that's associated with malware, you can imagine Apple wanting to prevent loading such content by untrusted apps.
STATUS: Although the OP's VideoID's are restricted for viewing on YouTube website only, this is the method to watch YouTube Videos on iOS Devices.
You will need to link using YouTube's Embed URL Method for iOS.
Example links:
http://www.youtube.com/embed/VIDEOID
http://www.youtube.com/embed/VIDEOID?autoplay=1
NOTE: The second links is formatted with YouTube autoplay Option.
Status Update: See this SO Answer that may prove useful. As those answer comments state, iOS will swap out the HTML tags automatically.