Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

How to handle the upload video response with best performance

9 replies [Last post]
Reply

Hi,
This is Rajesh.K ,We are trying to integrate the JW Player in our business website to upload videos and view the uploaded videos .

Currently the Api we are using are :
Step1:
Request sending from our website :
http://upload.bitsontherun.com/v1/videos/upload?api_format=..json&key=..
Step2:
Response :
video key.
Step3:
I have integrated the player with response as below : jwplayer().load("http://content.bitsontherun.com/videos/"+key+".mp4")

But doing so , playing the high resolution HD videos is very slow performance .

So ,How can we performance tune the HD videos ?

Is their any other way where I need to handle the response to play the videos faster .

Can you please let me know how can I proceed further .

Thanks,
Rajesh Kancharla

Reply

You should use the Bits on the Run embed codes instead, as Bis on the Run embed codes use bitrate switching on slower connections. Loading the video files directly into your player should only be used as a l last resort option.

You can find the URL scheme for Bits on the Run players here: http://developer.longtailvideo.com/botr/system-api/urls/players.html

Reply

Loading the HD video by default is a bit much. It is better to load videos from a specific template (e.g. the 480px ones). Here's how you do that:

jwplayer().load("http://content.bitsontherun.com/videos/"+key+"-"+template+".mp4");

The "template" is the key of a template and can be copied from the Account > Settings > Templates > Details page.

Reply

Hi JeroenW,
I followed your step ,as below :
jwplayer().load("http://content.bitsontherun.com/videos/"+records[0].data.key+"-"+"H.264"+".mp4")

But video doesn't play .Is the "template" value a static value?
(copied it from Template properties under account tab).

Can you please correct me .

Thanks,
Rajesh .K

Reply

You need the template key in the template details of the template that you wish to use, not a template name.

Reply

remco ,
Not able to find the template key .
Is this location correct Account > Settings > Templates > Details page?

Can you please correct me .

-Rajesh .K

Reply

JeroenW/Remco,
Can you please let me know where exactly template key ?

Reply

It's on the right-hand side of the template properties.

Reply

Remco,
I got it ! Thanks .

Is this value a constant/fixed value ? Can I make use of same value for all the videos ?

-Rajesh

Reply

template keys are a fixed property and part of our URL scheme, so will never get changed without prior notification.

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options