VideoPlayer and 'source'?

stephen barncard stephenREVOLUTION2 at barncard.com
Sun Nov 28 16:27:23 EST 2010


Hi Richmond,

Remember that YouTube has been introducing HTML5 to the mix for some time
now and provides a m4v (or Ogg Vorbis) stream depending on user preferences
and browser. If the m4v stream worked in Quicktime, it should work in the
video player. I think you are offered that option, you can try it and a look
at the imbed code offered.  Some services are offering imbed code as
iFrames, which may not give you the URL you need.

Many, if not most YouTube videos work fine on the iPhone.

One way or another, HTML5 is the future of the internet. I've done extensive
comparisons of all the main web video delivery methods and players and if
developers can convince Microsoft to get IE9 to adhere to HTML5 standards
(as they have promised), putting video on the web everywhere can be as easy
as

<video id="vid1" width="480" height="267"
 poster="bbb480.jpg" durationHint="33"controls>

<source src="http://cdn.kaltura.org/apis/html5lib/kplayer-examples/media/bbb_trailer_iphone.m4v">

<source src="http://cdn.kaltura.org/apis/html5lib/kplayer-examples/media/bbb400p.ogv"
/>

</video>


(note the two fields)

IMHO I think FLV, used as a 'fallback' method for HTML5 today, will
eventually get diminished as a legacy format. A h264 m4v presents the best
quality and speed today. Ogg is a good format but has no options - and I
don't know who exactly is supporting it except the FOSS guys. "Save as OGG"
has to be added to Quicktime as a plugin but it works.

my 2 ohms of resistance (hope I haven't hijacked the thread - I've been
messing with this stuff for weeks - ended up with a 'player'  that used
HTML5 for webkit browsers and Flash for everyone else. Just detected the
USER AGENT global and branched the right method. )


sqb

On 28 November 2010 08:53, Klaus on-rev <klaus at major.on-rev.com> wrote:

> Hi Richmond,
>
> >>>> ...
> >>>> on mouseUp
> >>>>  set the filename of player "MyPlayer" to "abc/def/ghi.mov"
> >>>> end mouseUp
> >>>>
> >>> Aaaaah; but I was setting the filename to a YouTube page !!!
> >> Que??? To a HTML page?
> >
> > Trying to work out how to link to the underlying .flv file.
>
> Ah, I see.
>
> But keep in mind that setting the filename to a FLV video will only work on
> a Mac
> and only if the user has the Perian (www.perian.org) QuickTime plug-in
> installed!
>
>
> Best
>
> Klaus
>
>

-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  <http://www.google.com/profiles/sbarncar>



More information about the use-livecode mailing list