Flash Lite 3: load external data

This morning I talk with Fabio, a friend of mine, and he asks me if I’ve ever loaded an FLV file in Flash Lite 3 from web.

I don’t start to use FL3 since this morning because there aren’t enable devices and also I think that we could use it only in the end of 2008 to have some devices in the market with it.
In Flash Lite 3, when you want to load web data (images, video or anything else), you MUST set, in Publish Settings, network access only.
When I worked with Flash Lite 2 we don’t need to set network access to load external data.
So for example in Flash Lite 2 we load an external 3gp video (there isn’t FLV support in FL2) we write:
//video_vd is an istance of video object that is in library 
video_vd.play("http://www.mart3.co.uk/video.3gp");
in Flash Lite 3 we use NetConnection class:
var nc:NetConnection = new NetConnection;
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.play("http://www.mart3.co.uk/flvfl3/phone.flv")
video_vd.attachVideo(ns); 

A big THANK YOU to Alessandro!Update: Talking with Scott I found a recent post of Nick Gerig about security model of Flash Lite 3 that explains well the problem.

Published by

lucamezzalira

I’m the VP of Architecture at DAZN with more than 15 years of experience, a Google Developer Expert on Web Technologies and the London Javascript community Manager I had the chance to work on cutting-edge projects for mobile, desktop, web, TVs, set top boxes and embedded devices. I am currently managing DAZN, a sports video platform based on the cloud with millions of users that are watching live and on-demand contents. I'm the author of Front-End Reactive Architectures published by APress: https://goo.gl/ywAmsx I think the best way to use any programming language is mastering their models, that’s why I spent a lot of time studying and researching on topics like OOP, Functional and Reactive programming. In my spare time, I wrote for national and international technical magazines and editors, I'm also a technical reviewer for APress, Packt Publishing, Pragmatic Bookshelf and O'Reilly. I was speaker at: O'Reilly media webinars, O'Reilly Software Architecture (San Francisco & London), O'Reilly Fluent (San Jose), O'Reilly Oscon (London), Google Developers Summit (Krakow), Google DevFest (London), Frontend Devs Love (Amsterdam), Voxxed Days (Belgrad & Bristol), JeffConf (Milan), International Javascript Conference (Munich & London), JS Poland (Warsaw), Code Europe (Wroclaw), JSDay (Verona), CybercomDev (Łódź), Jazoon Conference (Bern), JDays (Göteborg), Codemotion (Milan), FullStack Conference (London), React London UG (London), Scrum Gathering (Prague), Agile Cymru (Cardiff), Scotch on the rocks (Edinburgh & London), 360Max (San Francisco), PyCon (Florence), Lean Kanban Conference (London), Adobe Creative Suite CS 5.5 - Launch event (Milan), Mobile World Congress (Barcelona)

4 thoughts on “Flash Lite 3: load external data”

  1. I tested on nokia 6300i and it is not working.
    System.capabilities.hasStreamingVideo returns FALSE, since Flash Lite 3.0 is there…

  2. Hi,
    I have setup an RTSP server (DSS) for the 3gp contect. the sample files (all audio) work well when I play them, but the 3gp video content placed in ‘C:\Program Files\Darwin Streaming Server\Movies’ dont play at all. Although, they play well when pointed locally on my machine.

    Regards,
    Supriya Tenany

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s