Embeding Youtube video inside a SwiftUI view? - youtube

I would like to embed video from YouTube inside my iOS App who is written only with swiftUI, but I don't know what is the correct way. somebody could help me please ?
With UIKit it is ok, thanks to Youtube helper, but in SwiftUI I have no idea to do it..
Thanks

Add a webview to your project, then embed an iFrame inside it. Youtube has abandoned the pod project for youtube-helper-ios-sdk and a native library is no longer supported.

Related

MobileVLCKit video full screen

I want to play video streaming using MobileVLCKit in fullscreen mode.
How can I do this?
Please share code if possible (swift)..
I just saw that my previous answer on the old thread was massively downvoted back then. It's still true though. MVK renders in a simple UIView, so it is the obligation of the client app to implement the view handling, be it a tiny one or one filling the screen.
Note that there is sample code available on how to integrate MVK here: https://code.videolan.org/videolan/VLCKit/

How to make appear my app in activity view?

I want to add youtube sharing in my app.When user share any video, in the activity view my app should appear.How to do ?
Suggest me some tutorials.
Thanks in Advance.
You can achieve this by building a share extension for you app. Please refer to this link. Happy Coding.

YouTube iFrame does not count views

I've embedded a video on my site using YouTube's new iFrame embed code, but sadly whenever I test-watch the video on my site, the view count doesn't get increased on YouTube. My video is not on autoplay and it doesn't have 300+ views (it has less than that) so that's not the problem.
I've also tried using the old embed code from YouTube and that works, the view counts increase everytime I test-watch the video from the site.
I'm asking this cause I can't use the old embed code since it's not supported by Apple. So my question is, is it normal that the iFrame code can't count views? What else can I do? Any help at all would be well-appreciated!
Thanks!
Hi having the same issue, please let me know i you find out.
https://stackoverflow.com/questions/26929539/youtube-iframe-does-not-trigger-counter-but-old-method-works

Youtube Videos on IOS Not working

I am trying to use Youtube Videos link to my website..
I can able to view the videos in all browsers but cant view them on IPads and Iphones.
I am getting the html code as in the link Click For LINK Here with out getting the Video:
Can you please help me out.
make sure, Does iOS Device support format of video you are linking.

How to remove video controls from YouTube videos?

I'm trying to create an app and have embedded YouTube videos, but I need to remove the on-screen controls from the player (play/back/forward/volume, etc.). Does anyone have any suggestions on how to do this? Is it possible to have my own custom buttons instead (for example, "forward 60 seconds") I've looked at MPMoviePlayerController but research has me under the impression this is not what is called when UIWebView fires up a YouTube video.
I've also looked at the YouTube API but can't seem to find any good tutorials or examples on how to actually use it for iOS development.
Can someone point me in the right direction? I've been trying to figure this out for a couple of days and I just seem to be spinning my wheels.
Any help would be greatly appreciated!
you have multiple options
1. use youtube data api. you can edit the video controls if you use it.
2. you can use 3 rd party frame work youtubekit visit https://github.com/rinov/YoutubeKit
if you want to watch a tutorial got to youtube there is a channel called "codewithchris". here is the link https://www.youtube.com/playlist?list=PLMRqhzcHGw1aLoz4pM_Mg2TewmJcMg9ua
UIWebView is very limited. You cannot put video controls there. Because what UIWebView do is just shows another website as a frame. If there must be some controls, that controls should be in the website. So you cannot add any further controls.
If you want to use control buttons for your videos, instead of youtube, put the video in webpage with control buttons as like. Then put it in UIWebView. Or you can use the media player.

Resources