Is it possible to ingest videos only with the URL? I mean like when you ADD via URL through your browser, instead of ADD via UPLOAD. I can add through my browser new content only with a "fake" URL. Then I try to do the same through the ingest and it said:
" There was an error processing your file: Media file contains no recognized video stream"
What I am trying to do consists of only have analytics for the title, not uploading any videos.
In order to get analytics without uploading any videos, you need to add the external URL to your dashboard. You can either do this using the dashboard user interface, or if you have a bunch of external URLs to add, you can use our JW Platform API’s /videos/create endpoint in a script. Please see http://support.jwplayer.com/customer/portal/articles/2083166-using-media-ids for more details.
I realised the ingest of the .csv file that I made call the function you said (video/create). So basically you mean I have to do the same but without ingesting a file?
It it helps, you have here the batch.php file: http://46.31.56.211/lab_front/JWPlayer_API/batch.php
You would essentially need to make the /videos/create call for each video in your CSV. If it is an external URL, be sure to define sourcetype as ‘url’ and to also include your sourceurl. The full documentation for /videos/create is available at https://developer.jwplayer.com/jw-platform/reference/v1/methods/videos/create.html
To answer your playlist question, you can define playlists of external videos via the API or via the user interface. See the API documentation at https://developer.jwplayer.com/jw-platform/reference/v1/methods/channels/index.html
Thanks for your answer. I am trying to upload the videos the way you said but always failed, putting on the .csv file both sourcetype and soruceurl. I've tried even with a YouTube URL but it didn't work. Can you check my .csv file and batch.php? It works when I don't indicate neither sourcetype nor sourceurl.
Todd is currently out of the office, but I will be more than happy to assist you.
I have taken a look at your CSV. The “download_url” field is used when you have a static file, such as a MP4 file, stored on another server somewhere and you would like our platform to download it to upload onto our platform. Since you cannot download YouTube videos, this will not work. You should be good just using the sourcetype, sourceurl and sourceformat fields, like this:
Since we are using the sourceformat value of youtube, we can just pass in the YouTube ID of the video and our playlist will do the rest.
I cannot take a look at your PHP file as it’s just showing me the HTML rendered. If you are still having problems, you would have to send me the code either copy and pasted into your reply, or you can upload it to a cloud storage system, like Dropbox, and send me the URL.