What is the maximum length for Vimeo titles and descriptions? - vimeo

I'm building a publishing service which uploads video files to Vimeo through it's API and I'd like to know the maximum length a video's title, description and tags could have.
I went through the documentation (https://developer.vimeo.com/api/reference/responses/video) and https://developer.vimeo.com/api/reference/videos#edit_video, but I couldn't find anything.
I presume, that there are some hard (although undocumented) limits, but couldn't find them anywhere.

I had to upload a test video and edit it to be able to get this information:
Maximum length for the title is 128 characters.
Maximum length for the description is 5000 characters.
Tags could be the same as title (there was no limit in the validation)
I assume, that the same constraints apply to the API part as well.

Related

Questions using an HTML5 video-tag 'src' URL in Google cloud storage

I'm designing/developing a simple HTML5-based webpage.
But, rather than having the videos (e.g. MP4 and/or WEBM files)
based locally on the web-server, I want to store them all
in Google 'cloud-storage', by referencing them with a full
URL in the 'src' attribute of a tag.
So, my first question is simply whether it's possible to derive
such a reference URL, to a video file that I've uploaded into my
Google acct's basic 15-GB of free storage? (Or do I need
to first buy an 'official' starter unit of Google Cloud Storage?)
Secondly, could someone please point me to a tutorial or 'recipe'
for how to compute such a URL, so that I can build a simple initial
prototype to validate such a design approach.
TIA...
Dave
It's actually almost trivial (once I bit-the-bullet and registered
for a 60-day free trial of "Google Cloud Platform".)
It seems those older-style URLs (full of long strings of hex-chars)
are a thing of the past. That actually makes sense, since the
'bucket name' that you create to store your files in, must be
"globally-unique" and becomes part of the URL.
https://storage.googleapis.com/your-bucket-name/Steve_Jobs-2mins.mp4
So, it becomes as simple as just using their 'console' tool to create
a bucket, upload your file(s) into that bucket, declare each 'public/shared',
and then reference the resulting URL in the 'src' attribute of your
video or source HTML tag.
You can view my working example here:
http://weasel.firmfriends.us/HTMLVideoFromCloud/
[ For details, you can 'view page source' on the HTML. ]
Cheers...
Dave

Check end of transcoding for vimeo-api?

I need to be sure by an API request that the transcoding of an uploaded video is full ended and all possible renditions are available.
I know that that the API give responses in [body][status] about
available, uploading, transcoding, uploading_error, transcoding_error
but the problem is that the status changes from 'transcoding' to 'available' in the second when the first rendition is transcoded. So how can I check by an API-Request that vimeos work has full ended and no other rendition will be added to the video in the next minutes.
Thanks
If you are a PRO user and there is a specific size you are looking for you should wait for the file to appear in the files list. Waiting for "all" is not recommended because we are constantly changing and improving the list of files available.
If you are not a PRO user, this information is not exposed at all. Once the SD version is available you will be able to generate embed codes, and shortly after that your player will have the ability to switch into HD mode (once the HD file is available).

How to search inside files in Google Drive?

I am a google drive user(not a API user or developer). I want to know is there any way to search inside the file contents. I know the filenames can be searched with search bar. But i couldn't find a way to search inside files.
For example,
I have a file Names.txt which contains
Oracle
Microsoft
IBM
How can i get,say Microsoft, just by searching?
I got this information
useContentAsIndexableText boolean Whether to use the content as indexable text. (Default: false)
from
https://developers.google.com/drive/v2/reference/files/insert
and nothing more helpful :p
Any idea, how to get the file content by searching?
Actually, i found one way to sort the files which contains the text from the link below.
https://support.google.com/drive/answer/2375114?hl=en&ref_topic=2463645
That is by including the search term in in double quotes.
So if i search with "Microsoft". Then only files that contains Microsoft will be visible.
I think that you need some kind of UI to do a full-text content search in your GDrive. There is several tools to do it.
First, you can do it on your desktop with DTSearch or MetaSearch
Secondly, you can use cloud based solution Findo
None of solutions fit me properly, so I decided to write my own cloud based document search engine - Ambar. As for now it's supports only Dropbox. But you can give it a try as well with manual uploads.
You can use "" in the search box, neverthless if you have a lot of pdfs, convert it to doc format, this way you'll be able to look up information in books.
Though I would recommend to hold your pdf files in your computer and analyze it with a pdf reader(For example PDF-XChange Viewer)

How to insert the percentage sign into a local URL

Good day
I wanted to have a general URL to access the Desktop of the local machine for every local user, but when I put this link into the shared HTML page:
href="file://%userprofile%\Desktop"
the URL that appears on the browser is:
file://%25userprofile%25\Desktop
How to remove that '25' so every local user can access his/her Desktop?
Thank you very much
% is a special character on the URL - it is used to encode special characters, giving their HEX ASCII value as result.
Hence, in order to pass a % on the URL, you need to encode it - this results in %25 - the browser is doing the right think and you don't need to do anything.
I am not sure the browser can interpret local environment variables, by the way - it may also not have direct access to the user desktop.
Use %25 without space. it will show the percent symbol in the url.

Is it possible to put binary image data into html markup and then get the image displayed as usual in any browser?

It's an important security issue and I'm sure this should be possible.
A simple example:
You run a community portal. Users are registered and upload their pictures.
Your application gives security rules whenever a picture is allowed to be displayed. For example users must be friends on each sides by the system, in order that you can view someone else's uploaded pictures.
Here comes the problem: it is possible that someone crawls the image directories of your server. But you want to protect your users from such attacks.
If it's possible to put the binary data of an image directly into the HTML markup, you can restrict the user access of your image dirs to the user and group your web application runs of and pass the image data to your Apache user and group directly in the HTML.
The only possible weakness then is the password of the user that your web app runs as.
Is there already a possibility?
There are other (better) ways, described in other answers, to secure your files, but yes it is possible to embed the image in your html.
Use the <img> tag this way:
<img src="data:image/gif;base64,xxxxxxxxxxxxx...">
Where the xxxxx... part is a base64 encoding of gif image data.
If I needed security on my images directory I wouldn't expose the directory at all. Instead my img src attributes would reference a page that would take a userid and an image id as a parameter.
The page would validate that that user did indeed have access to see that picture. If everythings good, send the binary back. Otherwise send nothing.
for example:
<img src="imgaccess.php?userid=1111&imgid=223423" />
Also, I wouldn't use guessable id's. Instead sticking to something like base 64 encoded guid's.
I'm not sure I understand, but here goes. Instead of serving up static images that reside in an images folder - why couldn't you, using your server side technology of choice, have the images dynamically sent down to the client? That way your server side code can get in the mix and allow or deny access programmatically?
<img src="/images/getImage.aspx?id=123353 />
You could move the pictures out of the document root into a private directory and deliver them through your application, which has access to that directory. Each time your app generates an image tag, it then also generates a short-lived security token which must be specified when accessing a particular image:
<img src="/app/getImage.xyz?image=12345&token=12a342e32b321" />
Chances are very rare that someone will brute force the right token at the right time with the right image.
There are at least to possibilities to verify the token in "getImage":
Track all image tags in your app and store records in a database which link the randomly generated tokens and image IDs to the requesting users. The "getImage" action then checks the supplied parameters against that database.
Generate the token as a checksum (MD5, CRC, whatever) over the user ID, the image ID and maybe the current day of the year, and be sure to mix in an unguessable salt. The "getImage" action will then recompute the checksum und check it against the specified one in order to verify the user's access. This method will produce less overhead than the first one.
PHP example:
$token = md5($_SESSION['user_id'].' '.$imageID.' '.$SECRET_SALT.' '.date('z'));
With HTML5 you could use the canvas tag and JavaScript to do this.
You could perhaps do something with either CSS or a table layout to draw a picture (probably really bad performance, resolution, portability).
Either way, there is no stopping people from taking your pics. They could take a screenshot and crop it out.
As Chris mentioned in his answer, having long picture id's so that the URL for each image is not easy to guess or brute force is important. And no directory listing on your webserver directories is also.
https://www.base64-image.de/
I used this website to generate base64 code fir given image, and then this website provide code to directly paste . It worked.