I need to integrate a third-party video API solution into my web application that I'm building using JavaScript in the front-end and Java in the back-end. Using the API, I will need the following:
Upload videos to third-party service
Right after the video is uploaded, the API should callback my app and pass the video ID or URL (important!)
Display the videos using the provided URL
I have tried the YouTube API, but it seems that videos are uploaded to a single playlist per app and then the app can query all videos submitted to its playlist. The API doesn't provide my app with the video URL right after an upload and therefore it is not possible for me to determine which local user uploaded which YouTube video.
Is there a third-party video service provider that provides for all of the above-stated requirements?
(Vimeo, Metacafe, Dailymotion, Break.com, Flickr Video?)
YouTube don't provides an upload callback, but you can use polling to verify if the state of the video uploaded is no longer 'processing'
https://developers.google.com/youtube/2.0/developers_guide_protocol_checking_video_status
To identify the local user maybe you can use "developer tags":
https://developers.google.com/youtube/2.0/developers_guide_protocol_uploading_videos
When you upload a video, you can associate that video with one of YouTube's video categories. You can also associate the video with additional keywords, or developer tags, that you use to identify the video. By using developer tags, you can identify all of the videos uploaded through your website or even through specific areas of your website. YouTube will not display developer tags to YouTube users; however, you can retrieve or update videos that match a specific developer tag.
And then, you can retrieve the video id, and the video url, using search by developer tags
Related
I want to build a small video streaming web page using google photos and php/js, I need your help to get all the videos in my google photos to get in json format with video name, playable link etc... and display that in my web page.
What i have tried is google photos api. But i did not find an option like that, If we wanna get details of video list we need refreshToken and to get that I need to allow user to login and then also i can only access his videos.
I want to display my google photo videos in web page without logging in.
Now is there any option like that?
I need to embed videos into my web application and have the following requirements:
The videos need to be automatically transcoded into different
resolutions
Playbackspeed needs to be selectable
Needs to work on mobile
I need to modify the player
The videos need to be uploadable by non software developers => user interface for video upload and management
The problem with embedding a video from a platform is that you usually have to use an iframe to do this. However if the iframe is from another domain, I don't have access to its content and therefor can't modify the player, because I can't access the video element residing in the iframe.
The modifications I need to make are the following:
Put markers at specific cuepoints in the timeline
Pause the video at the cuepoints
Display some additional information below the video when the cuepoint is reached
The only possible solution, that I found so far, is hosting a platform myself on a subdomain of my web applications domain and adjust the code of that platform to set the document.domain property to the domain of my web application. That way I would be able to access the video tag that is inside the iframe provided by the platform. The things that I don't like about that solution is that I would prefer not to host the platform myself and it would also be nice if I wouldn't need to modify the platform.
You can use video tag provided by HTML5.
<video>
<src = "your src here">
</video>
firstly create video according to all the resolutions and store it
then change the src for different types of resolutions using javascript web API
var videoplayer = document.getElementsByTagName("video")[0];
videoplayer.src = "new src here according to the resolution"
playback speed can also be changed using the same way
videoplayer.playbackRate = "value according to the user"
Here is an example for looking on modifying the videoplayer.
You can detect the speed of the user using javascript and render the source of video accordingly.
If you dont want to download anything to check the network speed then have a look at how to implement adaptive starting experience of video using service-worker.
Exploring youtube's API and I cannot tell if it's possible to upload videos of users into the site's youtube channel directly.
I did manage to upload a video to youtube but that video would be uploaded under the uploader rather than the sites channel.
used this question:
Video Upload In Youtube APi using Javascript
The answer is in the documentation you linked to:
The onBehalfOfContentOwnerChannel parameter specifies the YouTube
channel ID of the channel to which a video is being added
Unfortunately, it also points out:
Note: This parameter is intended exclusively for YouTube content
partners.
The criteria for becoming a "content partner" is available in this overview of the program.
With its JavaScript API it is not difficult to get a YouTube video in a Web page by giving its YouTube id. Then the user can watch it in slow motion if they want.
How can I do the same with Facebook videos? I can't find how to do it with graph APi or with other APIs. I am inexperienced with Facebook APIs.
Do I need a special permission to download a Facebook video in one Web page I have written (the user type the id of the video and then can watch it in the page)?
I need to know how i can access the direct media url from a file played in the JW Player by doing this with a chrome extension. That means I've got a website playing a video and I want to get the url of the video and use it in my script inside the extension.
You can't easily access the innards of the Flash object, but you can watch network connections made by the tab.
You can use chrome.webRequest to watch for requests filtered by URL patterns and tab ID. If the videos are served from a small collection of domains/paths, that should be enough to intercept the URL.