Watch a Facebook video in slow motion - javascript

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)?

Related

Javascript - Detect if YouTube content is blocked by client's server and if so replace with image

I have a website that uses YouTube videos in iframes. My problem is that some of my site's visitors are on business networks that block sites such as YouTube. For those visitors it appears as if something is wrong with my website. I would like to figure out a way to detect if YouTube is blocked and, if so, replace the iframe with an alternate .jpg image. I would like to note that on many of these networks the youtube video is replaced by the visitor's company's access denied page.

Is it possible to listen for when the chromecast plugin connects with a device for use with the Youtube JS API?

I have a webpage that uses the iframe Youtube player api. I'd like to give the user the ability to Chromecast the currently loaded Youtube video.
I've been looking through the Chromecast sender guide. I'm only seeing how to get the session and receiver objects if the user first calls the chrome.cast.requestSession(onRequestSessionSuccess, onLaunchError) function by clicking a button that I create on the page.
Is there a way to get the session and receiver objects if they clicked on the Youtube player/Chrome extension button to connect to a device, and not the button I provide?
Thanks!

Third-Party Video Integration into Web App

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

Can I get access to a youtube player's playback state without embedding the video?

Using youtube's api, is it possible to detect whether there is an existing youtube video on any page and if so, have access to the playback state of the video?
I looked through youtube's API documentation however it seems I can only have access to the video if I embed it myself. But this needs to work on any youtube page I visit.

How can I allow visitors to embed audio files hosted on my server on their websites?

I've seen text boxes on websites where you can copy a script and paste it onto a webpage and it will embed an audio player into a remote website. I have some songs hosted on my server and would like other people to play them remotely from an audio player they can embed into their website. Where can I learn how to do this?
For greatest compatibility for the time being, you'll need to embed some Flash.
But keep in mind the audio element.

Categories