YouTube clone PHP scripts and video sharing sites

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

Embed DailyMotion videos in JW Player

Embed DailyMotion videos in JW Player 2 years 7 months ago #1

  • eventmedia
  • eventmedia's Avatar
  • Modder
  • Thanks: 18 Given: 32
  • Posts: 151
Hello,

Is there a way to embed DailyMotion videos in JW Player like we can do with YouTube videos?

I keep getting a "Video not found..." error when I try. I can embed the video just fine on the play page where I don't use JW Player, however I do use it for my video playlists where at the moment it switches from local hosted videos to youtube embeds with the help of this code in myplaylist.php:
if ($video_type == "uploaded") {
   $video_file = $base_url.'/uploads/'.$result['video_file_name'].'.flv';
   } else {
   $video_file = 'http://www.youtube.com/watch?v='.$embed_id;
}

I then added:
if ($video_type == "dailymotion") {
   $video_file = 'http://www.dailymotion.com/swf/'.$embed_id;

But it didn't help, I just gen an error.

Thank you,

Marius
The administrator has disabled public write access.

Re: Embed DailyMotion videos in JW Player 2 years 7 months ago #2

  • sanimahall
  • sanimahall's Avatar
  • Manic Modder
  • Thanks: 67 Given: 28
  • Posts: 208
you are missing video from the URL

try this

$video_file = 'www.dailymotion.com/swf/video/'.$embed_id;
The administrator has disabled public write access.

Re: Embed DailyMotion videos in JW Player 2 years 7 months ago #3

  • eventmedia
  • eventmedia's Avatar
  • Modder
  • Thanks: 18 Given: 32
  • Posts: 151
Hi sanimahall,

No luck

When I take "swf" out and add "video" I still get this error: "Playlist could not be loaded do to crossdomain policy restrictions."

With "swf" and "video" I get a 404 error.

I found this working example: wessite.com/labs/dailymotionprovider

I tried with/without "video" and "swf". I always get the error above or a "404 Not found".

I'm using the latest version of JW Player.

Marius
The administrator has disabled public write access.

Re: Embed DailyMotion videos in JW Player 2 years 7 months ago #4

  • sbcjr
  • sbcjr's Avatar
  • Insane Modder
    Owner
    <beta tester />
  • One happy guy. :)
  • Thanks: 784 Given: 1166
  • Posts: 6610
Marius, it looks at a glance like that example is a plugin for the JW player, which would suggest that running Dailymotion videos in the player isn't possible by default. Could that be why they aren't playing?
The administrator has disabled public write access.
Thanks from: eventmedia

Re: Embed DailyMotion videos in JW Player 2 years 7 months ago #5

  • eventmedia
  • eventmedia's Avatar
  • Modder
  • Thanks: 18 Given: 32
  • Posts: 151
Hello Steven,

You're right

I've been looking around jw player support forums and it indeed needs a plugin.

Marius
The administrator has disabled public write access.

Re: Embed DailyMotion videos in JW Player 2 years 7 months ago #6

  • justwushu
  • justwushu's Avatar
  • Super Modder
    Moderator
    <beta tester />
  • Thanks: 773 Given: 215
  • Posts: 1605
Hi Marius,

According to a post I read, JW doesn't support this type of Dailymotion plugin, as it breaches Dailymotion's terms of use.

That's the official line, although there are few people on the forums discussing it.
The administrator has disabled public write access.
Thanks from: sbcjr, eventmedia

Re: Embed DailyMotion videos in JW Player 2 years 7 months ago #7

  • eventmedia
  • eventmedia's Avatar
  • Modder
  • Thanks: 18 Given: 32
  • Posts: 151
Hi John,

Thanks for the heads up!

I'm trying to diversify the embeds. Just to be on the safe side, I won't break their terms of use, although it was just for the video playlists.

Anyway maybe in the future they will reconsider. It's a shame because they have such great content.

Marius
The administrator has disabled public write access.

Re: Embed DailyMotion videos in JW Player 2 years 7 months ago #8

  • justwushu
  • justwushu's Avatar
  • Super Modder
    Moderator
    <beta tester />
  • Thanks: 773 Given: 215
  • Posts: 1605
Hi Marius,

PHPmotion is a bit behind the game when it comes to embeds. Most video sharing scripts allow embeds from multiple sites.

Nearly all them now embed Dailymotion, with their native player, rather than local player. It looks like everyone is now starting to abide by the TOS, and I have read a few comments to that effect. Commonsense really, if you have a product you need to work with the "big boys", not against them!

Not quite sure how they are doing it, as I haven't looked that closely at the code?

I prefer to stick with local uploads. It is too much effort to fix issues across multiple sites, when Youtube and others change embed methods or TOS.

Actually, PHPmelody which really made its name on its embedding system, now advises local uploads to prevent this!
The administrator has disabled public write access.

Re: Embed DailyMotion videos in JW Player 2 years 7 months ago #9

  • eventmedia
  • eventmedia's Avatar
  • Modder
  • Thanks: 18 Given: 32
  • Posts: 151
Hi John,

I like embeds because of the great content that you can bring to your site. Music videos, TV shows, cartoons, etc.. stuff that I could not locally host without having problems :D

In the future I hope to do the same thing other top video-sharing websites do in my country and that's to get the record companies and other official content providers to create their own channels and upload content. Unfortunately they only do that with high traffic websites so for now I have to stick to embeds :D

Marius
The administrator has disabled public write access.

Re: Embed DailyMotion videos in JW Player 2 years 7 months ago #10

  • justwushu
  • justwushu's Avatar
  • Super Modder
    Moderator
    <beta tester />
  • Thanks: 773 Given: 215
  • Posts: 1605
Hi Marius,

I know where you are coming from!

I wouldn't mind that myself! ;)
The administrator has disabled public write access.
  • Page:
  • 1
Similar Topics Author Date Relevance
safiya November 24, 2011 57%
rtrube August 6, 2011 57%
Jonathan January 7, 2013 57%
mrgoe December 16, 2012 52%
sbcjr August 30, 2011 52%
azadmin May 21, 2012 52%
lanie July 6, 2011 52%
mbkvang April 3, 2012 51%
justwushu February 12, 2012 42%
mebon July 3, 2011 42%
moden359 December 22, 2012 42%
ross23456 August 23, 2013 41%
christianvolume.com August 30, 2010 40%
ypkriddle July 18, 2011 40%