HTML5 custom paywall video player - where to store video files? - html

I'm working on building an HTML5 video player that will have the support of payments. This means that the video file should not be accessible freely.
It's very straightforward when the video file is stored on my own server where the player just accesses it locally and streams it after the payment is made. Now I want to be able to provide this player for other people to be able to embed their video files on their own website and streamed through my player.
I would like to avoid having them upload their videos to my server. Is there any way for them to stream through my video player but host it on their own server? From what I understand, they can't add the url to the src of the video player because then anyone can get access to the video file directly for free by just going to the url.

Related

Vimeo video live upload

I need to upload webcam recording live video on the Vimeo server.
One way I am trying is get the video blobs periodically and upload it to the server but I couldn't able to find the API details in the Vimeo documentation.

What is the right way of consulting vimeo CDN for custom player?

using the api against /videos/ID I get a bunch of links, select the corret format and them i'm good to play on my own website.
But it's slow, i'm not on USA and it's slow for my customers.
(I'm a vimeo PRO subscriber)
Recently, checking a similar website, I've noticed that their urls are generates like
https://13-lvl3-pdl.vimeocdn.com/01/1924/4/....
And mine are generated like
https://fpdl.vimeocdn.com/vimeo-prod-skyfire-std-us/01/4067/6/...
The first one, that i could not discover how to get on my own videos, is really faster and lower latency.
Any light on this would be very appreciated.
These urls are dynamically generated on the server. There is no programatic way that you can change which CDN url you receive.
Please reach out to vimeo.com so they can dig more into why it performs so slowly for you.
After upload and process video by vimeo it generates HD,SD and HLS links.
Sometime speed depends on many factors like hosting environment, player used for stream videos,Internet bandwidth etc etc.
So first check following things:
1) Are you using third party player for stream your videos?
2) Are you using HLS video link for stream video?
3) What is your hosting environment in terms of server response time?
Some Suggestion to achieve better video streamming:
1) Get best Hosting plan which has better server response time.
2) Use vimeo default player for stream videos.
3) If you are using third party player than use HLS vimeo generated link with Third party HLS player.
Some HLS player links
http://www.hlsplayer.net/
http://osmfhls.kutu.ru/
http://www.flashls.org/latest/examples/chromeless/
http://dailymotion.github.io/hls.js/demo/
http://www.dash-player.com/demo/hls/
You can absolutely select which CDN you can load your videos from. Vimeo uses three CDNs and you can set a cookie that will indicate to the player which cdn to use. Check out this link: https://player.vimeo.com/flags
Here you can select the cdn and it sets the cookie I was mentioning. You can set this cookie for your users on your website and the video will be fetched from that cdn.

html5 webcam rtmp to server

i havel livestream php project ... isearched about webcam publisher to wowza and found this https://github.com/arut/nginx-rtmp-module/
but it have publish button i can not remove it as it build with action script
and find that https://github.com/AF83/webcam-streaming
but its video quality very bad
and two have same problem that request flash allow at every starting stream
now i want any webcam publisher built in html5 searched alot but all anserwer not completed ot i not able to understand

Is it possible to get streaming url with Vimeo API?

I have my own video player with in my app and want to play in it if I can get a video url. Is it possible with Vimeo API?
In my app I will allow users to search for videos and play it on my media player on mobile.
API requests authenticated as a PRO user will have access to that users video files. This includes the transcoded files and an HLS link. You can find these urls in the video representation, returned by many different api calls. Specifically under the files key, you will find an array containing the url and additional metadata. Make sure to pick your video based on the resolution, and not the quality, because the quality can have duplicate
The most relevant api call is GET https://api.vimeo.com/me/videos, because this will return a list of all videos owned by the authenticated user (which happen to be the only videos with available video files).
Video files are not available for basic or Plus users, and are not available for users beyond the one making the request. For those videos you should use the embed codes we provide in the API request (under the key response.embed.html, or through oEmbed.
If your videos are set to public you can hit the endpoint...
https://player.vimeo.com/video/{your_video_id}/config.
This will return a json. In the nested field request > files > progressive, you will have objects that contains streaming urls.
There is also dash and hls streaming formats under the files node, but not sure if all players will support those formats.

Is it possible to manipulate the audio from a WebRTC peer connection mediastream with Web Audio API?

Our app currently streams audio and video from other peers using WebRTC. We want to add effects to the audio with web audio API. Does anyone know if this is possible? If so, how? Thanks!
(examples would be greatly appreciated!)