pub fn fetch_root_movie(
        &mut self,
        movie_url: &str,
        parameters: Vec<(String, String)>,
        on_metadata: Box<dyn FnOnce(&swf::HeaderExt)>,
    ) {
        self.mutate_with_update_context(|context| {
            let fetch = context.navigator.fetch(movie_url, RequestOptions::get());
            let process = context.load_manager.load_root_movie(
                context.player.clone().unwrap(),
                fetch,
                movie_url.to_string(),
                parameters,
                on_metadata,
            );

            context.navigator.spawn_future(process);
        });
    }
/// Fetch the root movie.
///
/// This should not be called if a root movie fetch has already been kicked
/// off.
Fetch the root movie.
This should not be called if a root movie fetch has already been kicked
off.
Fetch the root movie . This should not be called if a root movie fetch has already been kicked off .
pub fn fetch_root_movie(
        &mut self,
        movie_url: &str,
        parameters: Vec<(String, String)>,
        on_metadata: Box<dyn FnOnce(&swf::HeaderExt)>,
    ) {
        self.mutate_with_update_context(|context| {
            let fetch = context.navigator.fetch(movie_url, RequestOptions::get());
            let process = context.load_manager.load_root_movie(
                context.player.clone().unwrap(),
                fetch,
                movie_url.to_string(),
                parameters,
                on_metadata,
            );
            context.navigator.spawn_future(process);
        });
    }
pub fn fetch_root_movie ( & mut self , movie_url : & str , parameters : Vec < ( String , String ) > , on_metadata : Box < dyn FnOnce ( & swf :: HeaderExt ) > , ) { self . mutate_with_update_context ( | context | { let fetch = context . navigator . fetch ( movie_url , RequestOptions :: get ( ) ) ; let process = context . load_manager . load_root_movie ( context . player . clone ( ) . unwrap ( ) , fetch , movie_url . to_string ( ) , parameters , on_metadata , ) ; context . navigator . spawn_future ( process ) ; } ) ; }
Fetch the root movie.
Fetch the root movie .
&mut self
movie_url
&str
parameters
Vec<(String, String)>
on_metadata
Box<dyn FnOnce(&swf::HeaderExt)>
&mut self
movie_url
&str
parameters
Vec<(String, String)>
on_metadata
Box<dyn FnOnce(&swf::HeaderExt)>