[go: nahoru, domu]

CN114302243A - Method for realizing operation of J2ME game audio file by IPTV set-top box - Google Patents

Method for realizing operation of J2ME game audio file by IPTV set-top box Download PDF

Info

Publication number
CN114302243A
CN114302243A CN202111462796.9A CN202111462796A CN114302243A CN 114302243 A CN114302243 A CN 114302243A CN 202111462796 A CN202111462796 A CN 202111462796A CN 114302243 A CN114302243 A CN 114302243A
Authority
CN
China
Prior art keywords
audio
virtual machine
j2me
jvm
audio data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111462796.9A
Other languages
Chinese (zh)
Inventor
王耀锋
黎明
方俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Tianyi Comheart Telecom Co Ltd
Original Assignee
Sichuan Tianyi Comheart Telecom Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Tianyi Comheart Telecom Co Ltd filed Critical Sichuan Tianyi Comheart Telecom Co Ltd
Priority to CN202111462796.9A priority Critical patent/CN114302243A/en
Publication of CN114302243A publication Critical patent/CN114302243A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for realizing the operation of a J2ME audio file by an iptv set-top box, which comprises a processing system for the J2ME audio file, wherein the processing system for the J2ME audio file comprises a virtual machine module, a data acquisition module and an audio module; the virtual machine module is jvm which supports the Android platform running environment based on PhoneME Advanced transplantation; the data acquisition module is used for the IPTV browser to remotely download jar and jad packages required by the Java game and corresponding audio files to a specified file directory through JavaScript; and the audio module is used for taking out the audio data analyzed by the JVM and playing the audio data. The invention can independently run the audio files in the j2me environment of the set-top box, and can use the self-contained audio data of the j2me game and external media.

Description

Method for realizing operation of J2ME game audio file by IPTV set-top box
Technical Field
The invention relates to the field of IPTV set-top boxes, in particular to a method for realizing the operation of a J2ME game audio file by an IPTV set-top box.
Background
Game services exist in value-added services of the IPTV set-top box, one type of games are developed based on the J2ME standard, a Java virtual machine environment is needed for running the games, but the Java API used by the J2me cannot be normally explained by the virtual machine environment carried by the Android system of the set-top box, and the analysis and support of the game audio cannot be directly carried out.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method for operating a J2ME audio file by an iptv set-top box, which comprises a processing system for the J2ME audio file, wherein the processing system for the J2ME audio file comprises a virtual machine module, a data acquisition module and an audio module;
the virtual machine module is jvm which supports the Android platform running environment based on PhoneME Advanced transplantation; the data acquisition module is used for the IPTV browser to remotely download jar and jad packages required by the Java game and corresponding audio files to a specified file directory through JavaScript; the audio module is used for taking out the audio data analyzed by the JVM and playing the audio data;
the method for operating the J2ME audio file by the iptv set top box comprises the following steps:
transplanting an jvm virtual machine supporting an Android system;
step two, packing the virtual machine into a so library form, packing the so library into an apk, and arranging the apk into a system of the IPTV set top box;
step three, the IPTV starts to normally enter a special Java game area of the value added service, the IPTV browser downloads jar, jad and audio files required by the Java game, and the jar, jad and audio files are placed in a specified file directory operated by the virtual machine;
step four, after downloading the Java game, clicking a confirmation button on the game interface, pulling jvm the virtual machine running apk by the IPTV browser, and entering a virtual machine running process;
step five, the jvm virtual machine analyzes the execution jar and jad files, judges whether audio data of external equipment exist, if so, the external audio data are used, if not, the audio data specified by the Java game jad are analyzed, and the Java application layer of the game apk is transmitted according to the defined jni interface to play audio and video;
step six, pressing a return button of the remote controller after the game is finished, closing the running of the Java virtual machine after the virtual machine apk receives the key information, closing the playing of the audio data, returning to the running interface of the IPTV browser again, and finishing the playing of the J2ME audio file.
Furthermore, the transplantation supports jvm virtual machines of Android systems, and is used for supporting JSR75 and JSR135, supporting a multi-CPU mode, and realizing the binding function of the designated CPU.
Furthermore, the audio module exists in apk form, is associated with jvm in jni form, extracts jvm the analyzed audio data, and plays according to the extracted audio data.
Furthermore, the IPTV browser downloads jar, jad and audio files required by the Java game, and also comprises the steps of firstly operating the JVM, binding the CPU, and then downloading jar, jad and audio files required by the Java game after the binding of the CPU is completed.
Further, the playing is performed according to the extracted audio data, specifically, the extracted audio data is sent to the playing unit in a streaming form for audio playing.
The invention has the beneficial effects that: the scheme provided by the invention can independently run the audio files in the j2me environment of the set-top box, can use the self-contained audio data of the j2me game, and can also use an external medium, such as a U disk, to load the audio files which are loved by the user.
Drawings
FIG. 1 is a schematic flow chart of a method for operating a J2ME audio file by an iptv set-top box;
FIG. 2 is a schematic diagram of a processing system for J2ME audio files.
Detailed Description
The technical solutions of the present invention are further described in detail below with reference to the accompanying drawings, but the scope of the present invention is not limited to the following.
As shown in fig. 1, a method for implementing an iptv set-top box to run J2ME audio files includes a processing system for J2ME audio files, where the processing system for J2ME audio files includes a virtual machine module, a data acquisition module, and an audio module;
the virtual machine module is jvm which supports the Android platform running environment based on PhoneME Advanced transplantation; the data acquisition module is used for the IPTV browser to remotely download jar and jad packages required by the Java game and corresponding audio files to a specified file directory through JavaScript; the audio module is used for taking out the audio data analyzed by the JVM and playing the audio data;
the method for operating the J2ME audio file by the iptv set top box comprises the following steps:
transplanting an jvm virtual machine supporting an Android system;
step two, packing the virtual machine into a so library form, packing the so library into an apk, and arranging the apk into a system of the IPTV set top box;
step three, the IPTV starts to normally enter a special Java game area of the value added service, the IPTV browser downloads jar, jad and audio files required by the Java game, and the jar, jad and audio files are placed in a specified file directory operated by the virtual machine;
step four, after downloading the Java game, clicking a confirmation button on the game interface, pulling jvm the virtual machine running apk by the IPTV browser, and entering a virtual machine running process;
step five, the jvm virtual machine analyzes the execution jar and jad files, judges whether audio data of external equipment exist, if so, the external audio data are used, if not, the audio data specified by the Java game jad are analyzed, and the Java application layer of the game apk is transmitted according to the defined jni interface to play audio and video;
step six, pressing a return button of the remote controller after the game is finished, closing the running of the Java virtual machine after the virtual machine apk receives the key information, closing the playing of the audio data, returning to the running interface of the IPTV browser again, and finishing the playing of the J2ME audio file.
The transplantation supports jvm virtual machines of an Android system, is used for supporting JSR75 and JSR135, supports a multi-CPU mode and realizes the binding function of a designated CPU.
The audio module exists in an apk form, is associated with jvm in a jni form, extracts jvm analyzed audio data, and plays the audio data according to the extracted audio data.
The IPTV browser downloads jar, jad and audio files required by the Java game, and also comprises the steps of firstly operating the JVM, binding the CPU, and then downloading the jar, jad and audio files required by the Java game after the binding of the CPU is completed.
The playing is performed according to the extracted audio data, specifically, the extracted audio data is sent to the playing unit in a streaming form for audio playing.
Specifically, the technical scheme comprises the following modules: an environment for operating J2ME audio data is jvm supporting an Android platform operating environment based on PhoneME Advanced transplantation, and a virtual machine jvm generated by supporting JSR75 and JSR135 needs to exist in a so library form so as to be called in a set-top box. The game downloading module IPTV browser downloads jar and jad packages required by the Java game and corresponding audio files to a specified file directory remotely through JavaScript.
And an audio playing module which exists in the apk form and is associated with JVM in the jni form, and the audio data analyzed by the JVM is taken out for playing.
The specific implementation process is as follows:
1. the jvm virtual machine supporting the Android system is transplanted, and the support of JRS75 and JRS135 is realized
2. Packing the virtual machine into a so library form, packing the so library into an apk, and arranging the apk into a system of the IPTV set-top box
3. IPTV starts to normally enter a Java game area of the value added service, and the browser downloads jar, jad and audio files required by the Java game and puts the jar, the jad and the audio files into a position specified by the running of the virtual machine
4. After the downloading is finished, the game interface clicks a confirmation button, the IPTV pulls up the virtual machine running apk, and the virtual machine running process is entered
5. The virtual machine analyzes the execution jar and jad files, judges whether audio data of the external equipment exist or not, if so, the external audio data are preferentially used, if not, the audio data specified by the Java game jad are analyzed, and the audio and video are played by a Java application layer of the game apk through a jni interface defined in advance.
6. And pressing a return button of the remote controller after the game is finished, and after the virtual machine apk receives the key information, considering that the operation is finished, closing the operation of the Java virtual machine, closing the playing of the audio data, and returning to the operation interface of the IPTV again.
The invention aims to ensure that the IPTV set-top box can normally run the audio file of the Java game developed based on the j2me standard. The method has the advantages that the audio files in the j2me environment of the set-top box run independently, the self-contained audio data of the j2me game can be used, and external media such as a U disk can be used for loading the favorite audio files of a user, and the important content of the method is the binding operation of the JVM virtual machine on multiple CPUs and the analysis and extraction of the audio data through the JSR75 and the JSR 135.
The foregoing is illustrative of the preferred embodiments of this invention, and it is to be understood that the invention is not limited to the precise form disclosed herein and that various other combinations, modifications, and environments may be resorted to, falling within the scope of the concept as disclosed herein, either as described above or as apparent to those skilled in the relevant art. And that modifications and variations may be effected by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (5)

1. A method for realizing the operation of a J2ME audio file by an iptv set-top box is characterized by comprising a processing system for the J2ME audio file, wherein the processing system for the J2ME audio file comprises a virtual machine module, a data acquisition module and an audio module;
the virtual machine module is jvm which supports the Android platform running environment based on PhoneME Advanced transplantation; the data acquisition module is used for the IPTV browser to remotely download jar and jad packages required by the Java game and corresponding audio files to a specified file directory through JavaScript; the audio module is used for taking out the audio data analyzed by the JVM and playing the audio data;
the method for operating the J2ME audio file by the iptv set top box comprises the following steps:
transplanting an jvm virtual machine supporting an Android system;
step two, packing the virtual machine into a so library form, packing the so library into an apk, and arranging the apk into a system of the IPTV set top box;
step three, the IPTV starts to normally enter a special Java game area of the value added service, the IPTV browser downloads jar, jad and audio files required by the Java game, and the jar, jad and audio files are placed in a specified file directory operated by the virtual machine;
step four, after downloading the Java game, clicking a confirmation button on the game interface, pulling jvm the virtual machine running apk by the IPTV browser, and entering a virtual machine running process;
step five, the jvm virtual machine analyzes the execution jar and jad files, judges whether audio data of external equipment exist, if so, the external audio data are used, if not, the audio data specified by the Java game jad are analyzed, and the Java application layer of the game apk is transmitted according to the defined jni interface to play audio and video;
step six, pressing a return button of the remote controller after the game is finished, closing the running of the Java virtual machine after the virtual machine apk receives the key information, closing the playing of the audio data, returning to the running interface of the IPTV browser again, and finishing the playing of the J2ME audio file.
2. The method for enabling an iptv set-top box to run a J2ME audio file according to claim 1, wherein the porting supports jvm virtual machine of Android system, which is used to support JSR75 and JSR135, and supports multi-CPU mode, and realizes the function of binding a designated CPU.
3. The method of claim 1, wherein the audio module exists in apk form, and is associated with jvm in jni form, and the audio module extracts jvm the parsed audio data and plays the audio data according to the extracted audio data.
4. The method as claimed in claim 1, wherein the IPTV browser downloads jar, jad and audio files required by the Java game, and further comprises running JVM and binding CPU, and after binding CPU, downloading jar, jad and audio files required by the Java game.
5. The method as claimed in claim 3, wherein the playing is performed according to the retrieved audio data, and in particular, the retrieved audio data is streamed to the playing unit for audio playing.
CN202111462796.9A 2021-11-30 2021-11-30 Method for realizing operation of J2ME game audio file by IPTV set-top box Pending CN114302243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111462796.9A CN114302243A (en) 2021-11-30 2021-11-30 Method for realizing operation of J2ME game audio file by IPTV set-top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111462796.9A CN114302243A (en) 2021-11-30 2021-11-30 Method for realizing operation of J2ME game audio file by IPTV set-top box

Publications (1)

Publication Number Publication Date
CN114302243A true CN114302243A (en) 2022-04-08

Family

ID=80966184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111462796.9A Pending CN114302243A (en) 2021-11-30 2021-11-30 Method for realizing operation of J2ME game audio file by IPTV set-top box

Country Status (1)

Country Link
CN (1) CN114302243A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050188343A1 (en) * 2002-06-08 2005-08-25 Koninklijke Philips Electronics N.V. Operation of a java virtual machine
US20050282532A1 (en) * 2004-06-18 2005-12-22 Telmap Ltd. Mobile device with local server
US20080026732A1 (en) * 2006-02-10 2008-01-31 Goldfarb David E Personalization content sharing system and method
WO2012034429A1 (en) * 2010-09-14 2012-03-22 深圳市融创天下科技股份有限公司 Method, apparatus, system, proxy server and mobile terminal for streaming media playing
CN103870316A (en) * 2014-04-11 2014-06-18 烽火通信科技股份有限公司 JAVA virtual machine implementation method for intelligent operating system
CN104269185A (en) * 2014-09-09 2015-01-07 烽火通信科技股份有限公司 Method and system for realizing sound mixing play in Java virtual machine

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050188343A1 (en) * 2002-06-08 2005-08-25 Koninklijke Philips Electronics N.V. Operation of a java virtual machine
US20050282532A1 (en) * 2004-06-18 2005-12-22 Telmap Ltd. Mobile device with local server
US20080026732A1 (en) * 2006-02-10 2008-01-31 Goldfarb David E Personalization content sharing system and method
WO2012034429A1 (en) * 2010-09-14 2012-03-22 深圳市融创天下科技股份有限公司 Method, apparatus, system, proxy server and mobile terminal for streaming media playing
CN103870316A (en) * 2014-04-11 2014-06-18 烽火通信科技股份有限公司 JAVA virtual machine implementation method for intelligent operating system
CN104269185A (en) * 2014-09-09 2015-01-07 烽火通信科技股份有限公司 Method and system for realizing sound mixing play in Java virtual machine

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
冯东;罗蕾;: "MTK系统下的J2ME运行平台设计" *
张天琪: "基于Android的J2ME虚拟机的移植与应用" *

Similar Documents

Publication Publication Date Title
EP2340479B1 (en) Content package for electronic distribution
US8238713B2 (en) Systems and methods for enhancing a user's DVD experience
CN101447994B (en) Method for downloading and playing multimedia file and equipment thereof
US7213085B2 (en) Use of a media cache for subsequent copying acceleration
US7730047B2 (en) Analysis of media content via extensible object
US20050015713A1 (en) Aggregating metadata for media content from multiple devices
CN100437552C (en) Managing metadata and system thereof
US20080307070A1 (en) Method and system for accessing web pages based on playback of recordings
US20080040492A1 (en) Method and system for accessing web pages based on playback of recordings
JP2013516923A (en) Real-time flash-based user interface for media playback devices
CN101404023A (en) Method and apparatus for operation of downloaded files
KR20090122984A (en) Multimedia data transmitting apparatus and multimedia data receiving apparatus
CN101365044B (en) Program information storage and management method for multimedia device and multimedia device
US20070239780A1 (en) Simultaneous capture and analysis of media content
CN114302243A (en) Method for realizing operation of J2ME game audio file by IPTV set-top box
CN106899881B (en) Audio and video file playing method and device
CN100550159C (en) Store the reproducer and the method for the storage medium of the motion image data that comprises pattern information
RU2005140656A (en) METHOD AND DEVICE FOR PLAYING AUDIO-VISUAL DATA IN INTERACTIVE MODE, AND A MEDIA FOR IT
CN101896975A (en) Method and apparatus for reproducing data
JP2008071048A (en) System for presenting dynamic content and its program
KR20070059537A (en) Method and system for play of multimedia subtitle file
KR20020077987A (en) System and method for transmitting multimedia contents with automatic execution agent
US20070091736A1 (en) System and method for storing and managing digital content
KR100895807B1 (en) Method of using contents between portable terminal and host system and system thereof
KR20140025992A (en) System and method for providing multimedia player using by web browser

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220408