Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter johanna2patricia

    (@johanna2patricia)

    Thanks naa986. I tried the youtube code and that works, but you get the entire page then in the popup. I will try the inline popup and let you know.

    Johanna

    Thread Starter johanna2patricia

    (@johanna2patricia)

    Ok I tried the inline popup for the Dailymotion video, but that doesn’t work.
    Here you can see the Dailymotio video with the Youtubecode: https://www.patriciakaas.nl/blog/1966-1989/
    Under: June 1985 – TV: Patricia Kaas performs “Jalouse” – La Belle Vie – TF1 – France

    Johanna

    Plugin Author Noor Alam

    (@naa986)

    Try this:

    [wp_colorbox_media url="#inline_content" type="inline" hyperlink="click here to open inline HTML"]
    
    <div style='display:none'>
        <div id='inline_content' style='padding:10px; background:#fff;'>
            <iframe frameborder="0" width="640" height="360" src="//www.dailymotion.com/embed/video/xj14kk" allowfullscreen></iframe>
        </div>
    </div>

    Please make sure to switch to “text” editor before pasting the code.

    Thread Starter johanna2patricia

    (@johanna2patricia)

    Thanks Naa986! That works like a charm! ??
    Do you maybe also have a solution for a Veoh video? I tried several things, but couldn’t get that to work.
    Here is a link to a Veoh video: https://www.veoh.com/watch/v839052383JykPprW

    Johanna

    Thread Starter johanna2patricia

    (@johanna2patricia)

    I also found a really weird thing. When I put 2 Dailymotion videos on the same page, for some reason the second video displays also the first video. Although I have changed the video id. I don’t understand why?

    Johanna

    Thread Starter johanna2patricia

    (@johanna2patricia)

    Ok I figured out why a second or third etc. Dailymotion video on the same page doesn’t work. You have to change the inline_content id to for instance: inline_content2 etc. Both in the colorbox code as well as in the div id code. Then it works alright. ??
    Now the only thing is to get a Veoh video in the popup. If somebody has an idea, please let me know.

    Johanna

    Plugin Author Noor Alam

    (@naa986)

    Does Veoh video have iframe embed code? If so you can follow the dailymotion example to embed it.

    Thread Starter johanna2patricia

    (@johanna2patricia)

    No they don’t have the iframe code. This is the Veoh embed code:
    <object width="410" height="341" id="veohFlashPlayer" name="veohFlashPlayer"><param name="movie" value="https://www.veoh.com/swf/webplayer/WebPlayer.swf?version=AFrontend.5.7.0.1488&permalinkId=v45594739KJeZQsC7&player=videodetailsembedded&videoAutoPlay=0&id=24836038"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="https://www.veoh.com/swf/webplayer/WebPlayer.swf?version=AFrontend.5.7.0.1488&permalinkId=v45594739KJeZQsC7&player=videodetailsembedded&videoAutoPlay=0&id=24836038" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="410" height="341" id="veohFlashPlayerEmbed" name="veohFlashPlayerEmbed"></embed></object>

    BTW Youku videos also have the iframe code, so you can use them with the inline content code too. ??

    Johanna

    Plugin Author Noor Alam

    (@naa986)

    object embed should work too. It’s just not good for devices that don’t support flash.

    Thread Starter johanna2patricia

    (@johanna2patricia)

    Right. And it isn’t very W3C valid either.
    So I rather use another code.

    Johanna

    Thread Starter johanna2patricia

    (@johanna2patricia)

    Ok I figured out the iframe code for a Veoh video.
    You can use the inline content method and then this in the textmode:

    <div style="display: none;">
    <div id="inline_content" background: #fff;"><iframe src="https://www.veoh.com/videodetails2.swf?permalinkId=v45542612CDFbRRCh&id=2004410&player=videodetailsembedded&videoAutoPlay=0"></iframe></div>
    </div>

    Change the permalinkid to the right Veoh video code.

    Johanna

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Dailymotion and Veoh Videos possible?’ is closed to new replies.