Keyword

Own domain url before 'use remote video' url

  • Machiavelli
  • Machiavelli's Avatar Topic Author
  • Offline
  • New Member
More
14 years 2 months ago #85697 by Machiavelli
I have a strange problem.
I want to stream some video's from another server. We got the urls from their webmaster and they are working. So i filled them in at use remote video (K2 v2.3) (which i just updated before)

Then i see that before all added video's (even the ones i posted before) the domain URL of our own site is added before the url i  filled in under 'use remote video'. But this is not showing up in the úse remote video'box, where the right address is shown.

How to solve this problem?

Would be great if someone could help.

example:
'use remote video' box:
playproxyemu.vpcore.snkn.nl/play_proxy/mmc/LGzVytoNrda8bdGO75P8SnLe/papenberg.wmv

When i then save and check the page source code of the video, this url shows up:
coasttv.eu/http://playproxyemu.vpcore.snkn.nl/play_proxy/mmc/LGzVytoNrda8bdGO75P8SnLe/papenberg.wmv

Now the video is not working, because it's not on coasttv.eu.

Anyone?

Please Log in or Create an account to join the conversation.

More
14 years 1 month ago #85698 by Mark Schultz
Replied by Mark Schultz on topic Own domain url before 'use remote video' url
I'm seeing the same issue, I believe the remote video is being recognized as local. Do not have a fix yet.

Looking at item.php in adminsitrator/components/com_k2/models

lines 461-465:

if (JRequest::getVar('remoteVideo')) {
$fileurl = JRequest::getVar('remoteVideo');
$filetype = JFile::getExt($fileurl);
$row->video = '{'.$filetype.'remote}'.$fileurl.'{/'.$filetype.'remote}';
}

this code appears to determine the plugin snippet. I don't see what is wrong with it however. Anyone?

Please Log in or Create an account to join the conversation.

More
14 years 1 month ago #85699 by Mark Schultz
Replied by Mark Schultz on topic Own domain url before 'use remote video' url
The plugin code is being stored properly in the items table in the database:

{flvremote}remotedomain.com/path/video.flv{/flvremote}

However the flvplayer rendered on the page sees this address instead:

localdomain.net/http://remotedomain.com/path/video.flv

when I disable the plugin so the page will reveal the plugin code instead of the player, I see:

{flvremote}localdomain.net/http://remotedomain.com/path/video.flv{/flvremote}

so though the plugin code is being stored in the database properly, it apparently is being assembled by k2 improperly before the plugin gets it.

anybody have an idea where to look next? thanks.

Mark Schultz said:I'm seeing the same issue, I believe the remote video is being recognized as local. Do not have a fix yet. Looking at item.php in adminsitrator/components/com_k2/models lines 461-465:

if (JRequest::getVar('remoteVideo')) {
$fileurl = JRequest::getVar('remoteVideo');
$filetype = JFile::getExt($fileurl);
$row->video = '{'.$filetype.'remote}'.$fileurl.'{/'.$filetype.'remote}';
}

this code appears to determine the plugin snippet. I don't see what is wrong with it however. Anyone?

Please Log in or Create an account to join the conversation.

More
14 years 1 month ago #85700 by Mark Schultz
Replied by Mark Schultz on topic Own domain url before 'use remote video' url
when I disable the plugin so the page will reveal the plugin code instead of the player, I see:

{flvremote}localdomain.net/http://remotedomain.com/path/video.flv{/flvremote}

so though the plugin code is being stored in the database properly, it apparently is being retrieved by k2 and the local domain is improperly prepended before the plugin gets it.

any smart folk out there know how k2 works?

Mark Schultz said:The plugin code is being stored properly in the items table in the database:
{flvremote}remotedomain.com/path/video.flv{/flvremote}

However the flvplayer rendered on the page sees this address instead:

localdomain.net/http://remotedomain.com/path/video.flv

when I disable the plugin so the page will reveal the plugin code instead of the player, I see:

{flvremote}localdomain.net/http://remotedomain.com/path/video.flv{/flvremote}

so though the plugin code is being stored in the database properly, it apparently is being assembled by k2 improperly before the plugin gets it.

anybody have an idea where to look next? thanks.

Mark Schultz said:I'm seeing the same issue, I believe the remote video is being recognized as local. Do not have a fix yet. Looking at item.php in adminsitrator/components/com_k2/models lines 461-465:
if (JRequest::getVar('remoteVideo')) {
$fileurl = JRequest::getVar('remoteVideo');
$filetype = JFile::getExt($fileurl);
$row->video = '{'.$filetype.'remote}'.$fileurl.'{/'.$filetype.'remote}';
}

this code appears to determine the plugin snippet. I don't see what is wrong with it however. Anyone?

Please Log in or Create an account to join the conversation.

More
14 years 1 month ago #85701 by Mark Schultz
Replied by Mark Schultz on topic Own domain url before 'use remote video' url
I restarted this thread in the bug forum, where it belongs... a fix has already been posted. thanks.

Please Log in or Create an account to join the conversation.

  • Machiavelli
  • Machiavelli's Avatar Topic Author
  • Offline
  • New Member
More
14 years 1 month ago #85702 by Machiavelli
Replied by Machiavelli on topic Own domain url before 'use remote video' url

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum