Video Tokens Expiring on Embedded Local Videos

Hi All,

Apologies if this questions been asked before but I'm having issues with videos. I would like users to be able to embed videos they've uploaded into their blog posts on my site but I seem to be having issues with video token expiring or changing.

If I head to a users video in chrome, right click & choose copy video URL it gives me a URL with a token at the end.

I then create a new blog post and insert media... choose HTML5 video, post in the URL and set up preload etc.

Publish the post and all looks brilliant and works fine... However... give it a while and the video will stop working. If I then go back to the uploaded video in the videos section the URL has now changed, i.e. it's got a different token!

For example... here's the URL from when I first embedded the video:

Here's the URL I now get if I head to the videos section and grab it again...
As you can see the tokens are different... Has anyone else had a similar issue? Is there a workaround?


Many thanks

Justin 

Quote · 8 Jan 2015

This is protection from direct hotlinking. The video can be embed using special embed field.

Rules → http://www.boonex.com/terms
Quote · 13 Jan 2015

This is protection from direct hotlinking. The video can be embed using special embed field.

 Hi Alex

We are using the embed code from the videos own page within dolphin... Or is there another secret special code that I'm unaware of?

Cheers

Justin 

Quote · 13 Jan 2015

Video embed isn't just a link, it is html code which is starting with "<object ...", for example:

http://demo.boonex.com/m/videos/view/Rainforest-A-Ranger-Explains

Video embed looks like this:

<object style="display:block;" width="100%" height="400"><param name="movie" value="http://demo.boonex.com/flash/modules/global/app/holder_as3.swf"></param><param name="allowScriptAccess" value="always"></param><param name="allowFullScreen" value="true"></param><param name="base" value="http://demo.boonex.com/flash/modules/video/"></param><param name="bgcolor" value="#FFFFFF"></param><param name="wmode" value="opaque"></param><param name="flashVars" value="url=http://demo.boonex.com/flash/XML.php&amp;module=video&amp;app=player&amp;id=16&amp;user=&amp;password="></param><embed src="http://demo.boonex.com/flash/modules/global/app/holder_as3.swf" type="application/x-shockwave-flash" width="100%" height="400" allowScriptAccess="always" allowFullScreen="true" base="http://demo.boonex.com/flash/modules/video/" bgcolor="#FFFFFF" wmode="opaque" flashVars="url=http://demo.boonex.com/flash/XML.php&amp;module=video&amp;app=player&amp;id=16&amp;user=&amp;password="></embed></object>

We are using the embed code from the videos own page within dolphin... Or is there another secret special code that I'm unaware of?

 

Rules → http://www.boonex.com/terms
Quote · 13 Jan 2015

 

Video embed isn't just a link, it is html code which is starting with "<object ...", for example:

http://demo.boonex.com/m/videos/view/Rainforest-A-Ranger-Explains

Video embed looks like this:

<object style="display:block;" width="100%" height="400"><param name="movie" value="http://demo.boonex.com/flash/modules/global/app/holder_as3.swf"></param><param name="allowScriptAccess" value="always"></param><param name="allowFullScreen" value="true"></param><param name="base" value="http://demo.boonex.com/flash/modules/video/"></param><param name="bgcolor" value="#FFFFFF"></param><param name="wmode" value="opaque"></param><param name="flashVars" value="url=http://demo.boonex.com/flash/XML.php&amp;module=video&amp;app=player&amp;id=16&amp;user=&amp;password="></param><embed src="http://demo.boonex.com/flash/modules/global/app/holder_as3.swf" type="application/x-shockwave-flash" width="100%" height="400" allowScriptAccess="always" allowFullScreen="true" base="http://demo.boonex.com/flash/modules/video/" bgcolor="#FFFFFF" wmode="opaque" flashVars="url=http://demo.boonex.com/flash/XML.php&amp;module=video&amp;app=player&amp;id=16&amp;user=&amp;password="></embed></object>

We are using the embed code from the videos own page within dolphin... Or is there another secret special code that I'm unaware of?

 

 Hi Alex

Ok so we have embedding now working on the blog using the embed code... 

http://www.railwaymodellers.com/blogs/entry/Testing-video-embedding

However the embedded videos don't work on iOS devices such as iPhones and iPads... Is there a fix / workaround for that please?

Many Thanks

Justin 

Quote · 13 Jan 2015

Yes, we plan to use Flash free embed in future major version update, but in Dolphin 7.1.x we are stick to the current realisation.

Back to the original question about the token, I believe it can be easily modified to not use tokens - try to change the following code in flash/modules/video/get_file.php file:

if(!empty($sId) && !empty($sToken) && file_exists($sFile)) {
    require_once($sIncPath . "db.inc.php");
    $sId = getValue("SELECT `ID` FROM `RayVideoTokens` WHERE `ID`='" . $sId . "' AND `Token`='" . $sToken . "' LIMIT 1");
    $bResult = !empty($sId);
}

to:

if(!empty($sId) /* && !empty($sToken) */ && file_exists($sFile)) {
    //require_once($sIncPath . "db.inc.php");
    //$sId = getValue("SELECT `ID` FROM `RayVideoTokens` WHERE `ID`='" . $sId . "' AND `Token`='" . $sToken . "' LIMIT 1");
    //$bResult = !empty($sId);

    $bResult = true;
}
However the embedded videos don't work on iOS devices such as iPhones and iPads... Is there a fix / workaround for that please?

 

Rules → http://www.boonex.com/terms
Quote · 19 Jan 2015
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.