Jump to content
Search Community

VideoLoader load video with params in URL

GauravGR test
Moderator Tag

Recommended Posts

I am trying to user GS VideoLoader to display Instagram and Facebook videos in my flash based app. The Instagram videos works fine but the Facebook videos does not play. Only difference between these two are the query string parameters. Instagram API gives direct URL of a MP4 file but Facebook API's video URL is having some parameters. Both URL works fine in browser.

 

Code I am using:

var vidLoader = new VideoLoader($vidPath, { name:"myVideo", container:this, width:$w, height:$h, scaleMode:"proportionalInside", autoPlay:false, volume:volume, onComplete:completeHandler } );

addChild(vidLoader);

 

Instagram video URL:

https://scontent-sea1-1.cdninstagram.com/vp/945f605c15b3be6a5beaf6ee61f28100/5A694BF1/t50.2886-16/26823738_584341088575113_4622617487854733450_n.mp4

 

Facebook video URL:

https://video.xx.fbcdn.net/v/t42.1790-2/22827721_182507558965846_5849474951521763328_n.mp4?efg=eyJybHIiOjMwMCwicmxhIjo5ODgsInZlbmNvZGVfdGFnIjoic3ZlX3NkIn0%3D&rl=300&vabr=100&oh=c12792fc60c28e57fa652eecea879218&oe=5A68879B

Link to comment
Share on other sites

HI and welcome to the GreenSock forums,

 

We haven't touched VideoLoader in ages, but my guess is that Facebook has some security checks in place making sure other people don't try to load videos that they are hosting. For instance the video url you posted for Facebook now says that it is expired.

 

My suggestion would be to try to load the video from Facebook without VideoLoader, just use the native AS3 stuff. If you can get that working, then move onto VideoLoader. If facebook is doing something that prevents a swf from loading their videos, then there isn't anything our VideoLoader will be able to do. 

 

Might be worth reaching out Facebook support to see what they suggest.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...