No events from Vimeo Player when using external src URL - vimeo

In my app we host a variety of videos, some from our own platform and some uploaded by our users. We have an instance of a Vimeo Player that works exactly as expected when using video urls from our platform (e.g. player.vimeo.com/video/123456), but doesn't work as expected when we load an external URL that one of our users uploaded (e.g. player.vimeo.com/external/123456.hd.mp4?s=0987654321&profile_id=123). The player loads fine and all the UI controls seem to work, but all of our event listeners on that player instance do not fire.
It seems like with the external references Vimeo loads a redirected url inside the Player control instead of their own site, but I can't figure out much beyond that; my guess is that either there's a bug in the Player or maybe the url it's redirecting to isn't passing up events for the Player to bubble up.
Has anyone noticed this before? I searched their Github but didn't see any mention of this in particular. Maybe it's just not meant to allow the same interfacing with the external urls compared to the internal ones?
Literally any insight or evidence that I'm not completely insane would be helpful. I'd share actual links but they belong to our users and that'd be a violation of data privacy.

Related

Vimeo :domain-level embed privacy : How to handle video link if someone use inspect webpage and change video id

I am planning to use Vimeo for hosting my educational video series which I want to restrict specific videos to specific user as per what plan / course they have purchased.
After lots of googling, I came across one option in Vimeo to set "domain-level embed privacy" so that only from my site video will be played.
But what if someone inspect webpage and change video url which is private?
Vimeo forum relevent link : https://vimeo.com/forums/api/topic:277888
"If you want to keep your video's privacy set to domain-level embed privacy, one workaround is to embed the video on a domain you control, and then embed that page in your Android webapp."
is there any way to handle this as if someone tried many url changes then he can see video from my website even if I have set them private and domain level security.
In near future, I want to use same in my android app as well so that logged in user can see videos they allowed.
Thanks in advance.
Can someone guide me for this usecase?
But what if someone inspects the webpage and changes the video url which is
private?
If someone inspects the webpage and changes the video url then the change will be local to their system and temporary. As they refresh page it will revert back to original. No website on earth can stop this from happening.
is there any way to handle this as if someone tried many url changes
then he can see video from my website even if I have set them private
and domain level security.
Domain level security as far as I understand means that you can embed video on a website on a particular domain only such as - yourdomain.com. Changing the url of embedded video will not load any video as video is hosted on provided url only.
In near future, I want to use same in my android app as well so that
logged in user can see videos they allowed.
In an android app you can load your page in a webview or inappbrowser. And on a website you can make certain pages accessible to authenticated user only. On top of that you can also implement record level security, so that a particular course is accessible only to people with subscription to that course.

Embedding video player html5 iframe in facebook share like YouTube

When something is shared from youtube to facebook, facebook is now showing the youtube html5 player.
If you look up one of their urls (https://www.youtube.com/watch?v=uuS5ZyQhvsk) in the open graph debugger you can see that they are now providing open graph meta data for their html player as well as the flash one.
I also have a player that sits in an iframe, and am now including the same tags that youtube is, minus the flash ones as we don't have a flash player, but it isn't working and facebook is giving me this error which doesn't make sense:
Share has playable media but will not play inline because it would cause a mixed content warning if embedded. Add a secure_src or make the video src secure to fix this.
This is the information facebook is reading:
This is the url as an example that is generating that error: https://www.la1tv.co.uk/player/124/260
All I can think is that Facebook has made some kind of deal with youtube and this isn't available for everyone yet, but that isn't clear from that error.
All of the content on our site is served over https.
Anyone know what's going on or got this working?
I can't find any documentation anywhere on facebook how to do this.
I posted a similar question a while back when I was trying to get this working but at this time youtube was still only providing the flash player to facebook.
It looks like someone else was having a similar issue here.
According to WizKid this is currently in a trial period for YouTube and hopefully will be rolled out to everyone at a future date.

Insert html video player in As2 page

I have a online courses with a lot of videos. These videos are in Vimeo for the app of this courses but I use flv loaded to the server in my flash version and the administrator wants to get off these flv.
Cause I don't know a bit of AS3, i can't use the vimeo api. So:
How can I display a webpage (where an html player will be running the video) in my swf? Like some kind of web object. The result, must be the video page inserted in the swf area
Please, be specific in your answer, my knowledge of coding is poor.
Thanks a lot! :)
The best way to approach this would be to setup an ExternalInterface in the Flash course that will communicate with the page. From there, Flash can call a method that is responsible for rendering an iframe embed of the Vimeo player. You'll probably have to pass both the video_id and the location where the video should be displayed (x/y in the event that it changes).
Once you have the javascript setup to render the iframe embed where you need it, you can interact with the player via the Javascript API (https://developer.vimeo.com/player/js-api). The player would essentially be rendered above the Flash (kind of like a lightbox), but will allow the control that you need.
You can also setup whatever playback controls that you need to pass from Flash to Javascript, and eventually to the iframe via the API.
Please let me know if you need any more clarification on how this can be setup.

Load only audio from youtube in as3

Is it possible to load only the audio from YouTube into my AS3 flash custom player through youtube AS3 api?
I want to load it into a sound object and then assign it to a sound channel.
I would like to know if there is an "official" way to do this, I'd like to avoid improvising (like loading the whole stream and then use only the audio).
Thank you.
I suggest you read the YouTube terms of service carefully:
https://developers.google.com/youtube/terms
In particular, you may not "promote separately the audio or video components of any YouTube audiovisual content made available through the YouTube API".
Doing so in any way (such as moving the video off stage) is likely to have your site blocked for playbacks by YouTube for breach of terms of service.
NB: YouTube manages to provide the service it does through advertising on top of video content. Separating the content like this prevents YouTube from making any money from the service it is providing.
If you use it for private usage, its okay I guess.
After some research work with different APIs and libraries and researching source code, I just tried it by myself and wolla.
Just saying, audio only links are in the page source of each video.
You just have to know what you are looking for ;)
Open a youtube video, view page source and search for "mime%3Daudio". There should be 5 matches, full url for example:
"https%3A%2F%2Fr2---sn-35cxanpbo5a-8pxl.googlevideo.com%2Fvideoplayback%3Fsource%3Dyoutube%26signature%3D30EC556F55533FBFD9003767730D10556681F33A.B12E021CA54CCB9E225F58A4430E9BB528081FB5%26requiressl%3Dyes%26expire%3D1527306011%26clen%3D3064602%26initcwndbps%3D1152500%26ipbits%3D0%26mime%3Daudio%252Fmp4%26dur%3D192.911%26fvip%3D5%26lmt%3D1524946334873350%26key%3Dyt6%26sparams%3Dclen%252Cdur%252Cei%252Cgir%252Cid%252Cinitcwndbps%252Cip%252Cipbits%252Citag%252Ckeepalive%252Clmt%252Cmime%252Cmm%252Cmn%252Cms%252Cmv%252Cpl%252Crequiressl%252Csource%252Cexpire%26itag%3D140%26gir%3Dyes%26ip%3D81.217.53.239%26id%3Do-ALNxMeQYw4LLc1FAjxt4h795wKTdqJnzc_SBgzEJVBxR%26c%3DWEB%26keepalive%3Dyes%26mm%3D31%252C29%26mn%3Dsn-35cxanpbo5a-8pxl%252Csn-2gb7sn7r%26ei%3Du4IIW7DfC46rgAfrrpnICw%26ms%3Dau%252Crdu%26mt%3D1527284230%26pl%3D16%26mv%3Dm"
Just decode URL and you got what you want.

problems using a brightcove player in AS3 project (Security sandbox violation)

I hope someone can help with this as I can't find an answer anywhere.
I've created an AS3 based UI slider that displays images and videos. The videos are added using a brightcove player. This is all working ok except when I click play on the video I get the following error.
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: file:///D|/development/videoplayer/VideoBanner.swf cannot access rtmp://brightcove-76.fcod.llnwd.net:1935/a500/d12?videoId=696716426001&lineUpId=696887476001&pubId=1520968877&playerId=695954425001&affiliateId=. No policy files granted access.
I'm using a custom play/pause button, and this seems to work (ie, it plays the video) but then I see this error pop up, and my info panels stop working (these are just panels with titles and info copy on them. Animated in using TweenMax).
I gather from some searches that this might be a cross domain problem. I've tried to set up the brightcove player to accept the URL I'm testing it on but I still get the error. Looking at the support site for brightcove I can find nothing about a cross domain policy.
I realise that the error above is running locally but the same thing is happening on my test page.
Has anyone come across this problem before using brightcove and AS3? Let me know if you need any extra info.
Cheers
Barry.
Have you tried creating a crossdomain.xml file like below on your web root?