embeding does not work on my site plz tell me how to fix this
Printable View
embeding does not work on my site plz tell me how to fix this
Quote:
Originally Posted by pataylo
use mine
Find this code templates/view_video.tpl
ReplaceCode:<TEXTAREA name=video_play ROWS="3" COLS="45"
onclick=javascript:document.linkForm.video_play.focus();document.linkForm.video_play.select();
readOnly><IFRAME vspace="0" hspace="0" allowtransparency="true" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" style="border:0px;" width="435" height="470" SRC="{$baseurl}/show.php?id={$vinfo[0].VID}"></IFRAME></TEXTAREA>
Code:<INPUT NAME="video_play" value='<object width="425" height="350" type="application/x-shockwave-flash" data="{$baseurl}/player/player.swf"><param name="movie" value="{$baseurl}/player/player.swf" /><param name="flashvars" value="&file={$baseurl}/flvideo/{$vinfo[0].flvdoname}&height=350&image={$baseurl}/thumb/{$vinfo[0].VID}.jpg&width=425&location={$baseurl}/player/player.swf&logo={$baseurl}/templates/images/watermark.gif&link={$baseurl}&linktarget=_blank"/></object>' size="51" onclick=javascript:document.linkForm.video_play.focus();document.linkForm.video_play.select(); readOnly>
Thanks for that code olrac worked like a charm. I was wondering how are people able to link back to your website from the video??? besides my watermark that isn't anything but a symbol no one would know where it came from.
Have a look through other posts. i did one a few weeks ago that shows how to do a hard link.
As you probably already know, myspace blocked the use of IFRAMES so I changed the
view_video.tpl as recommended in the forums and now it shows the embed code as
an OBJECT embed instead of IFRAME, however, eventhough it will now embed on myspace
the video does not play. I have noticed part of the reason may be is that after conversion the
video .flv files are renamed to a long file name ex. 118624363430688665.flv yet the embed code
is searching for a .flv file named 46.flv so it seems that the script renames the .flv files but the
embedding code does not have the proper info to load the video. Is this something I need to fix
in the code that I inserted into the view_video.tpl file?
Wondering why this embed isn't working for me? It shows the correct image but when you click to play it never loads.Quote:
Originally Posted by olrac
@zvidzdotnet
I just noticed that the script names new flv files differently now. I think your right, may be admin can let us know what the new variable needs to be in the embed code.
The new embed code is below:
The new part is theQuote:
<textarea name="video_play" cols="45" rows="5" readonly="readOnly" onClick="javascript:document.linkForm.video_play.f ocus();document.linkForm.video_play.select();"><ob ject width="425" height="350" type="application/x-shockwave-flash" data="{$baseurl}/player/player.swf"><param name="movie" value="{$baseurl}/player/player.swf" /><param name="flashvars" value="&file={$baseurl}/flvideo/{$vinfo[0].flvdoname}&height=350&image={$baseurl}/thumb/{$vinfo[0].VID}.jpg&width=425&location={$baseurl}/player/player.swf&logo={$baseurl}/templates/images/watermark.gif&link={$baseurl}&linktarget=_blank"/></object>
</textarea>
Regards,Quote:
{$vinfo[0].flvdoname}
Mat.
Thanks that did it!!
No probs mate!
Yes.. as I stated b4... when the .flv file is created it is renamed to something like 118624363430688665.flv and the script is calling for a video named 56.flv as an example. I'm sure somthing in the view_video.tpl needs to be changed to look for the new variable.
If anyone has the answer, please let me know
Thank You
Just as a further example:
On the video page it gives me this code:
<object width="425" height="350" type="application/x-shockwave-flash" data="http://www.zvidz.net/player/player.swf"><param name="movie" value="http://www.zvidz.net/player/player.swf" /><param name="flashvars" value="&file=http://www.zvidz.net/flvideo/60.flv&height=350&image=http://www.zvidz.net/thumb/60.jpg&width=425&location=http://www.zvidz.net/player/player.swf&logo=http://www.zvidz.net/templates/images/watermark.gif&link=http://www.zvidz.net&linktarget=_blank"/></object>
The actual code that is currently needed to play the video:
<object width="425" height="350" type="application/x-shockwave-flash" data="http://www.zvidz.net/player/player.swf"><param name="movie" value="http://www.zvidz.net/player/player.swf" /><param name="flashvars" value="&file=http://www.zvidz.net/flvideo/11865420821769636928.flv&height=350&image=http://www.zvidz.net/thumb/60.jpg&width=425&location=http://www.zvidz.net/player/player.swf&logo=http://www.zvidz.net/templates/images/watermark.gif&link=http://www.zvidz.net&linktarget=_blank"/></object>
As you can see, the embed code from the page list the video file as:
60.flv
when it is actually:
11865420821769636928.flv
I assume there is a way to fix this.
Anyone with the answer, Please let me know,
Thank You
See the post above by "galnet", that will fix the problem.
I updated the second post with this change.
Yes Sir... That fixed it, Thank You
hi guys, r u sure thats working for u? for me its blank and not loading.....:(Quote:
<textarea name="video_play" cols="45" rows="5" readonly="readOnly" onClick="javascript:document.linkForm.video_play.f ocus();document.linkForm.video_play.select();"><ob ject width="425" height="350" type="application/x-shockwave-flash" data="{$baseurl}/player/player.swf"><param name="movie" value="{$baseurl}/player/player.swf" /><param name="flashvars" value="&file={$baseurl}/flvideo/{$vinfo[0].flvdoname}&height=350&image={$baseurl}/thumb/{$vinfo[0].VID}.jpg&width=425&location={$baseurl}/player/player.swf&logo={$baseurl}/templates/images/watermark.gif&link={$baseurl}&linktarget=_blank"/></object>
</textarea>
Try this
Code:<INPUT NAME="video_play" value='<object width="425" height="350" type="application/x-shockwave-flash" data="{$baseurl}/player/player.swf"><param name="movie" value="{$baseurl}/player/player.swf" /><param name="flashvars" value="&file={$baseurl}/flvideo/{$vinfo[0].flvdoname}&height=350&image={$baseurl}/thumb/{$vinfo[0].VID}.jpg&width=425&location={$baseurl}/player/player.swf&logo={$baseurl}/templates/images/watermark.gif&link={$baseurl}&linktarget=_blank"/></object>' size="51" onclick=javascript:document.linkForm.video_play.focus();document.linkForm.video_play.select(); readOnly>
thank u guys for ur help, but tried the both codes listed here and got the same result - blank frame - not loading :(
I used the code in post #2 just fine to post in comments on MySpace. However, I have noticed a problem with it that I am hoping someone has an answer to.
When I embedded videos using the original iFrame method, the benefit was that when someone played a video on blogger or wherever it was embedded, it actually updated on my site in the list of most recently played videos.
However, with the new code, it doesn't matter how often it gets played, it never gets refreshed in the recently played list unless the person actually comes to the site to play it.
Does anyone know how to resolve this issue?
the code doesn't work with you guys? mine works fine, I already put the code to my myspace.com/
The code works as far as playing the video is concerned, but it doesn't work the way it should.
Although it plays the video, it does not increase the count for the number of times the video has been viewed, and it does not count the video as being recently viewed. Here is an example to better illustrate what I mean.
Click Here for a sample of a video that was embedded using the old/original iFrame method. You'll notice that when you play this video, the video is moved to the front of the recently played list on my site, and that the video viewed count increases by one.
Click Here for an example of a file that has been embedded using this new method. While the video plays just fine, you'll notice that nothing happens on my site. As far as my site is concerned, it is as if the video hasn't even been played, which shouldn't be the case.
Simply playing the video on another site is only half of what the embedding should accomplish. It should also accomplish these other aspects, and I'm not entirely sure why this is not happening. But yes, if you're only concerned with getting it to play and don't care about the other functionality, then it works great.
So that is why it is not adding the video plays!
Thanks!
So, how can we get the embeded object to do the same?
I upgraded to v2.6. Now when you goto one of my videos, it no longer show the embed code for people to place my videos on there pages. I check my admin section. But I dont see a place to allow people to do so. Can someone please help me. Goto blissfind.net and goto one of my videos, you will see what I mean, It just gives the the web link, not the embed code. Is there somone out there that can help me?
http://blissfind.net/view/29/f-adsfd-dfdsa-fsdf/
Link shows 404 error. Upload .htaccess file.
This will work on myspace.
Find this code templates/view_video.tpl
New Code
Old CodeCode:<textarea name="video_play" cols="45" rows="5" readonly="readOnly" onClick="javascript:document.linkForm.video_play.focus();document.linkForm.video_play.select();"><object width="425" height="350" type="application/x-shockwave-flash" data="{$baseurl}/player/player.swf"><param name="movie" value="{$baseurl}/player/player.swf" /><param name="flashvars" value="&file={$file}&image={$baseurl}/thumb/{$video_info.VID}.jpg&width=425&height=350&location={$baseurl}/player/player.swf&logo={$baseurl}/templates/images/watermark.gif&link={$baseurl}&linktarget=_blank"/></object>
</textarea>
[/quote]Code:<INPUT NAME="video_play" value='<object width="425" height="350" type="application/x-shockwave-flash" data="{$baseurl}/player/player.swf"><param name="movie" value="{$baseurl}/player/player.swf" /><param name="flashvars" value="&file={$baseurl}/flvideo/{$vinfo[0].flvdoname}&height=350&image={$baseurl}/thumb/{$vinfo[0].VID}.jpg&width=425&location={$baseurl}/player/player.swf&logo={$baseurl}/templates/images/watermark.gif&link={$baseurl}&linktarget=_blank"/></object>' size="51" onclick=javascript:document.linkForm.video_play.focus();document.linkForm.video_play.select(); readOnly>
Also check out http://www.jeroenwijering.com/?item=Supported_Flashvars for more info about flashvars