i made a script to upload videos to youtube from a folder on my server, but now i want a way to control the overlay ads. i saw a video that has just like what i want.
here is the video link:
http://www.youtube.com/watch?v=_v0JoEarI8s
is there any way to do that?
I think that the Call-to-Action overlays can not be managed from the API
https://groups.google.com/forum/?fromgroups=#!topic/youtube-api-gdata/wyUoI9S2c0M
Apparently can only be configured manually
http://support.google.com/youtube/bin/answer.py?hl=en&answer=150471
Related
I am making an app in order to post an image to LinkedIn.
The problem is that it's not working for images.
I use my uploaded image URL in submitted-image-url in order to post my image with a caption but unfortunately, it just uses a thumbnail of my image.
What can I do to post my image? By the way, I use PHP.
Currently, as of May, 2020, LinkedIn only supports the url parameter in its share URL. So, you'll have to share the image by making it a linkable file and then share the URL to the file, like so..
https://www.linkedin.com/sharing/share-offsite/?url={url}
Source: Microsoft LinkedIn Share URL Documentation.
If you are interested in a regularly maintained GitHub project that keeps track of this so you don't have to, check us out! Social Share URLs
I'm trying to publish an image from URL with Twitter API and PHP but I can't do it.
I have seeked in many post but I could find only how to upload an image.
Is possible to do it?
As you have discovered, this is not possible.
One way around it is for you to download the image first, and then upload it.
For example
file_put_contents("temp-img.jpg", file_get_contents("http://example.com/flower.jpg"));
Then, using whichever Twitter library you have, you can post temp-img.jpgdirectly.
I currently use the YouTube API to allow website users to upload their videos through the site straight to our YouTube channel (adding META data etc) at the time of upload.
Ideally we would like to dynamically add some sort of title, watermark, opening screen or an image to the beginning and / or the end of the video. Essentially we just need any method of adding something to the video which adds some form of branding to it (even if just a plain company name at the bottom).
The uploads are from internal users (i.e. secure and trusted) and there is not an excessive amount so I would be happy to upload to our server first (instead of straight to YouTube), manipulate the video then upload to YouTube.
The site runs PHP on a dedicated Linux / Apache server setup.
Any suggestions greatly appreciated
Thanks
Here's a really quick and easy one: Invideo Programming. Invideo Programming lets you add a small logo to a corner of the video, or promote another video in a different corner, or both.
You can add this to the API via the Channels resource as as invideoPromotion attribute. We recently did a show on Google Developers Live explaining how to configure this on both the web UI as well as in the API. Check it out - I think this'll do what you need.
I have various video hosts that I like to use on my website. I am trying to code a way to retrieve their video thumbnails.
Most of these video hosts actually have a frame of the video on display before the video starts to play. If it's possible to even get that frame as the thumbnail, that would be great. Most if not all of these video hosts use iframes for embedding.
I am looking for a fairly generic way of retrieving thumbnails for all video hosts that display some type of frame from the video once the video is embedded. If that frame can somehow be retrieved and then turned into an image that can be used that would be amazing. However, I am not exactly sure how to go about doing that.
You'd have to have the actual binary file data. If you have that access, install ffmpeg-php on your server and use this question for further direction: ffmpeg to get screenshot
Depends on the site.
For example, if you have a youtube video
http://www.youtube.com/watch?v=AC2FKbyC28k
then its thumbnail is at
http://i2.ytimg.com/vi/AC2FKbyC28k/mqdefault.jpg
I found this out by right clicking the image thumbnail, opening it in a tab and inspecting the url, so I'm sure you can do this exhaustively for every site ;)
It sounds like what you want is oEmbed, which is supported by most popular video hosting sites (Youtube, Vimeo, ...). There are several PHP oEmbed libraries, which come preconfigured with oEmbed endpoints.
What oEmbed allows you to do is to make a request to the provider (Youtube for example) with the video URL. It will return a JSON response with information about the video. Both Youtube and Vimeo return a thumbnail_url element in the JSON.
Need help/idea on this.
I have to create a mp4 audio file and then have to upload it on facebook, twitter and tumblr.
I know there is no specific API for this there. But is there any other way out?
I also know i can upload files on separate server and then can provide the link. But i want it to play there only as video's in facebook.
Any ideas on this will be appreciated.
you can utilize open graph, i.e. create a web page with og:audio related meta tags, see the following doc (scroll towards the bottom):
https://developers.facebook.com/docs/opengraph/
then anytime a user/page/app likes a page, it is uploaded to their facebook
hope this helps
you can also do it from opengraph see if this link is suitable for you https://developers.facebook.com/docs/opengraph/
you can also do it by open graph protocol of facebook