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

Forums

/

code to improve jw_player for wordpress external media tab

10 replies [Last post]
Reply

hello,

i made this script in order to expand the "external media" tab possibilities.

this script allows to put twitter, mobypictures, yfrog, twitgoo, lockerz, instagr.am, vimeo, dailymotion medias.

here is the link to the file, anyone can ameliorate the script, just share ;)

JWURLImportManager.php in media folder

http://db.tt/HMBS9TUP

Reply

im having a probleme with vimeo and dailymotion, how to embed them with jw_player for wordpress?

Reply

@cid0u,

Thanks for posting the script. I'll take a look and if possible will incorporate it into the core plugin.

With regards to vimeo and dailymotion, are you trying to play back the video in the JW Player itself?

Thanks.

Reply

hello,

yes i add the vimeo/dailymotion in the external media tab, i can get infos about the video (title, description ... from the json) after that I incorporate the jw_media player with the variable "mediaid" in the post.

but there is an error message in the player when i try to see the vid, a crossdomain policies error.

if the shortcode [jwplayer] could use the html variable from the json to embed the video it will resolve the problem i think

Reply

?!

Reply

@cid0u,

What URL are you using to add the video the media library?

Thanks.

Reply
Reply

whats new ?

Reply

@cid0u,

I'm still a little unclear what you want in this case. Do you want the videos themselves to play back in the JW Player? Or do you want the plugin to substitute the iframe code in place of the player for vimeo and dailymotion?

We can't support playback of the html attribute in the JW Player as it returns iframe code. Even the src attribute of the iframe wouldn't work as it's linking to the vimeo/dailymotion flash player.

Thanks.

Reply

i would like the plugin get all the information possible about the video (title, duration etc), and when i click on "insert in post" it put the html code to play the video, and if possible, information about the vid in option

Reply

@cid0u,

Since the JW Player doesn't support Vimeo or DailyMotion URLs and their API doesn't return a direct link to the video file it would require a significant amount of work to get it to work with the plugin.

You would need an additional piece of meta data on the attachment to identify it as being vimeo or dailymotion and then change the shortcode processor to embed the iframe code they provide instead of using the JW Player.

Since the purpose of the plugin is to embed video using the JW Player I can't see this being a feature we will officially add in the future.

Thanks.

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