当前位置: 首页>>代码示例>>Java>>正文


Java Fx9C.setup_web_video方法代码示例

本文整理汇总了Java中com.hkm.ezwebview.Util.Fx9C.setup_web_video方法的典型用法代码示例。如果您正苦于以下问题:Java Fx9C.setup_web_video方法的具体用法?Java Fx9C.setup_web_video怎么用?Java Fx9C.setup_web_video使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.hkm.ezwebview.Util.Fx9C的用法示例。


在下文中一共展示了Fx9C.setup_web_video方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setup_video

import com.hkm.ezwebview.Util.Fx9C; //导入方法依赖的package包/类
/**
 * This is the example code
 */
private void setup_video() {
    final String embeddedWebContent = In32.fromFileRaw(getActivity(), R.raw.video_sample);
    try {
        Fx9C.setup_web_video(this, framer, block, betterCircleBar, embeddedWebContent,
                new HClient.Callback() {
                    @Override
                    public void retrieveCookie(String cookie_string) {
                        // return In32.interceptURL_cart(url, getAllow(), getInternal(), this);
                    }

                    @Override
                    public boolean overridedefaultlogic(String url, Activity activity) {
                        return false;
                    }
                },
                new Runnable() {

                    /**
                     * Starts executing the active part of the class' code. This method is
                     * called when a thread is started that has been created with a class which
                     * implements {@code Runnable}.
                     */
                    @Override
                    public void run() {

                    }
                });

    } catch (Exception e) {
        e.printStackTrace();
    }

}
 
开发者ID:jjhesk,项目名称:EZWebView,代码行数:37,代码来源:VideoWebViewFragment.java

示例2: setupVideoBox

import com.hkm.ezwebview.Util.Fx9C; //导入方法依赖的package包/类
private void setupVideoBox(String code_embeded, int height) {
    //   final String contentc = fromFileRaw(getActivity(), R.raw.video_sample);
    try {
        Fx9C.setup_web_video(
                this,
                framer,
                block,
                betterCircleBar,
                code_embeded,
                height,
                2000,
                new HClient.Callback() {
                    @Override
                    public void retrieveCookie(String cookie_string) {
                        // return In32.interceptURL_cart(url, getAllow(), getInternal(), this);
                    }

                    @Override
                    public boolean overridedefaultlogic(String url, Activity activity) {
                        return false;
                    }
                },
                new Runnable() {
                    /**
                     * Starts executing the active part of the class' code. This method is
                     * called when a thread is started that has been created with a class which
                     * implements {@code Runnable}.
                     */
                    @Override
                    public void run() {
                       // completeloading();
                    }
                });

    } catch (Exception e) {
        Log.e("exceptionVideoFrame", e.getMessage());
    }
}
 
开发者ID:jjhesk,项目名称:EZWebView,代码行数:39,代码来源:VideoFrameBox.java

示例3: setup_video

import com.hkm.ezwebview.Util.Fx9C; //导入方法依赖的package包/类
/**
 * This is the example code
 */
private void setup_video(String uri) {


    final String embeddedWebContent = In32.fromFileRaw(this, com.hkm.ezwebview.R.raw.template_youtube_video);
    final String embeddedWebContent_complete = embeddedWebContent.replace("{video_youtube_id}", uri);
    try {
        Fx9C.setup_web_video(
                this,
                framer,
                block,
                betterCircleBar,
                embeddedWebContent_complete,
                new HClient.Callback() {
                    @Override
                    public void retrieveCookie(String cookie_string) {
                        // return In32.interceptURL_cart(url, getAllow(), getInternal(), this);
                    }

                    @Override
                    public boolean overridedefaultlogic(String url, Activity activity) {
                        return false;
                    }
                },
                new Runnable() {

                    /**
                     * Starts executing the active part of the class' code. This method is
                     * called when a thread is started that has been created with a class which
                     * implements {@code Runnable}.
                     */
                    @Override
                    public void run() {
                        completeloading();
                    }
                });

    } catch (Exception e) {
        e.printStackTrace();
    }

}
 
开发者ID:jjhesk,项目名称:EZWebView,代码行数:45,代码来源:YoutubeVid.java

示例4: setup_video

import com.hkm.ezwebview.Util.Fx9C; //导入方法依赖的package包/类
/**
 * This is the example code
 */
private void setup_video() {

    Bundle ef = getArguments();
    String uri = ef.getString("uri");


    final String embeddedWebContent = In32.fromFileRaw(getActivity(), R.raw.template_youtube_video);
    final String embeddedWebContent_complete = embeddedWebContent.replace("{video_youtube_id}", uri);
    try {
        Fx9C.setup_web_video(
                this,
                framer,
                block,
                betterCircleBar,
                embeddedWebContent_complete,
                new HClient.Callback() {
                    @Override
                    public void retrieveCookie(String cookie_string) {
                        // return In32.interceptURL_cart(url, getAllow(), getInternal(), this);
                    }

                    @Override
                    public boolean overridedefaultlogic(String url, Activity activity) {
                        return false;
                    }
                },
                new Runnable() {

                    /**
                     * Starts executing the active part of the class' code. This method is
                     * called when a thread is started that has been created with a class which
                     * implements {@code Runnable}.
                     */
                    @Override
                    public void run() {
                        completeloading();
                    }
                });

    } catch (Exception e) {
        e.printStackTrace();
    }

}
 
开发者ID:jjhesk,项目名称:EZWebView,代码行数:48,代码来源:EzWebDialogNonLeakv4.java


注:本文中的com.hkm.ezwebview.Util.Fx9C.setup_web_video方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。