Author Topic: JW player  (Read 2311 times)

joakimhoegset

  • Full Member
  • ***
  • Posts: 79
JW player
« on: December 07, 2009, 09:43:08 am »
Hi is there a way to use jw player inside the megazine as this includes the possibility to add youtube videos?

Joakim

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: JW player
« Reply #1 on: December 08, 2009, 05:20:07 pm »
In principle I'm pretty sure it is. Just depends on how the GUI is built, i.e. if it supports being rotated / skewed (for the page turn animations), which the default YouTube player doesn't (otherwise you could just load youtube videos using the youtube.com/v/id url).
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

joakimhoegset

  • Full Member
  • ***
  • Posts: 79
Re: JW player
« Reply #2 on: December 09, 2009, 10:55:29 am »
What you can load youtube already?

youtube.com/v/id url can you explain this further? Don't know what you mean.

Thx,
Joakim

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: JW player
« Reply #3 on: December 09, 2009, 01:39:59 pm »
Something like this.

Code: (xml)
  1. <img src="http://www.youtube.com/v/ItOPvLELfKE"/>

To my big surprise this seems to work now, probably because of the tweaks I did to the masking (so it probably won't in 2.0.3b, just in the trunk version). Or they changed something in their player... hmm.

The only remaining issues are: the first time it tries to load the video, it throws a security error (second times it works, i.e. turn to a page far enough away for the page to get unloaded, then go back), and the second one is, that the video won't stop playing when the page gets unloaded (meaning it get's removed from the book/stage, but the youtube video isn't unloaded).
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

joakimhoegset

  • Full Member
  • ***
  • Posts: 79
Re: JW player
« Reply #4 on: December 09, 2009, 02:05:05 pm »
Still can't get it to work. I have tried what you wrote.

This was my code before:
Code: [Select]
<page>   
<img src="/images/5.swf"></img>
<vid onlywhenactive="true" fade="200" src="/videos/hancock.flv" width="400" height="300" gui="elements/vidgui.swf" left="160" top="500"/>
</page>

MPete

  • Full Member
  • ***
  • Posts: 62
Re: JW player
« Reply #5 on: December 10, 2009, 04:57:30 am »
Youtube pages look something like this:
http://www.youtube.com/watch?v=_0QzcRDjG3k

Simply change the /watch?v= to /v/
http://www.youtube.com/v/_0QzcRDjG3k

This will load the youtube gui, player, video etc instead of the page, comments, recommended links, ads etc. This is then just like loading any regular swf file I assume?

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: JW player
« Reply #6 on: December 10, 2009, 02:51:54 pm »
This is then just like loading any regular swf file I assume?
Correct.


I just noticed another issue, though: using the keyboard for navigation also jumps around in the timeline of the youtube video... so an extra <youtube> page element will probably the only viable solution.
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

joakimhoegset

  • Full Member
  • ***
  • Posts: 79
Re: JW player
« Reply #7 on: December 11, 2009, 11:23:32 am »
So I have to load the youtube instead of a page I cannot have it in a player placed on top of a background?

Joakim

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: JW player
« Reply #8 on: December 16, 2009, 02:45:22 pm »
Should I find the time to do it, it'd be just like any other page element (e.g. img, vid, ...), so you can have any number of those on a page, too.
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

Seb33300

  • Newbie
  • *
  • Posts: 2
Re: JW player
« Reply #9 on: March 18, 2010, 02:46:43 pm »
Hello,

i tried to insert
Code: [Select]
<img src="http://www.youtube.com/v/ItOPvLELfKE"/> in my page but it seems to not work.

i have a grey page.

I'm on the last release.

can you help me ?

Code: [Select]
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE book SYSTEM "http://megazine.mightypirates.de/megazine2.dtd">
<book
pagewidth="400"
pageheight="600"
zoomminscale="0.5"
zoommaxscale="2"
plugins="batchpages, print, navigationbar, overlays, titles, anchors, swfaddress, links, keyboardnavigation, slideshow, options"
>
<chapter>
<page>
<img src="http://www.youtube.com/v/ItOPvLELfKE"/>
</page>
</chapter>
</book>

thanks


MPete

  • Full Member
  • ***
  • Posts: 62
Re: JW player
« Reply #10 on: March 19, 2010, 12:47:19 pm »
Another option is to load a popup/lightbox over the top of the megazine that loads youtube and custom gui players like jw player.

http://megazine.mightypirates.de/forum/index.php/topic,885.msg3444.html#msg3444

This example shows a lightbox loading youtube in the jwplayer in a lightbox:
http://www.pacraig.com/megazine/lightbox