CN104394125B - A kind of mobile device shares the method and mobile device of multimedia file - Google Patents

A kind of mobile device shares the method and mobile device of multimedia file Download PDF

Info

Publication number
CN104394125B
CN104394125B CN201410624196.1A CN201410624196A CN104394125B CN 104394125 B CN104394125 B CN 104394125B CN 201410624196 A CN201410624196 A CN 201410624196A CN 104394125 B CN104394125 B CN 104394125B
Authority
CN
China
Prior art keywords
identification code
multimedia file
mobile device
file
multimedia
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.)
Expired - Fee Related
Application number
CN201410624196.1A
Other languages
Chinese (zh)
Other versions
CN104394125A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410624196.1A priority Critical patent/CN104394125B/en
Publication of CN104394125A publication Critical patent/CN104394125A/en
Application granted granted Critical
Publication of CN104394125B publication Critical patent/CN104394125B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • H04L67/5651Reducing the amount or size of exchanged application data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明实施例涉及移动终端技术领域,尤其涉及一种移动设备分享多媒体文件的方法及移动设备。该方法包括:移动设备中的数据用户界面单元获取所述移动设备中的多媒体文件,并依据获取的多媒体文件生成并显示文件列表,其中,所述文件列表包括多媒体文件唯一对应的标识码;所述数据用户界面单元获取用户在所述文件列表中选择的多媒体文件对应的标识码;所述数据用户界面单元向所述移动设备中的数字媒体控制DMC单元发送选择的多媒体文件对应的标识码,使所述DMC单元控制数字媒体渲染DMR设备播放该标识码对应的多媒体文件。该方法降低了网络通信频率,即,降低了对网络的依赖,提高了分享多媒体文件的速度。

The embodiments of the present invention relate to the technical field of mobile terminals, and in particular to a method for sharing multimedia files by a mobile device and the mobile device. The method includes: a data user interface unit in the mobile device acquires a multimedia file in the mobile device, and generates and displays a file list according to the acquired multimedia file, wherein the file list includes a unique identification code corresponding to the multimedia file; The data user interface unit obtains the identification code corresponding to the multimedia file selected by the user in the file list; the data user interface unit sends the identification code corresponding to the selected multimedia file to the digital media control DMC unit in the mobile device, The DMC unit controls the digital media rendering DMR device to play the multimedia file corresponding to the identification code. The method reduces the frequency of network communication, that is, reduces the dependence on the network, and improves the speed of sharing multimedia files.

Description

一种移动设备分享多媒体文件的方法及移动设备Method and mobile device for sharing multimedia files by mobile device

技术领域technical field

本发明实施例涉及移动终端技术领域,尤其涉及一种移动设备分享多媒体文件的方法及移动设备。The embodiments of the present invention relate to the technical field of mobile terminals, and in particular to a method for sharing multimedia files by a mobile device and the mobile device.

背景技术Background technique

智能移动设备,如智能手机和平板电脑等近些年来已经越来越普及,通过智能移动设备结合网络来分享多媒体文件也逐渐成为新的趋势。包括数字生活网络联盟(DigitalLiving Network Alliance,DLNA),飞乐(AirPlay,AP)在内的多媒体网络分享技术也得到越来越广泛的使用。Smart mobile devices, such as smart phones and tablet computers, have become more and more popular in recent years, and sharing multimedia files through smart mobile devices combined with the Internet has gradually become a new trend. Multimedia network sharing technologies including Digital Living Network Alliance (Digital Living Network Alliance, DLNA) and Feile (AirPlay, AP) are also being used more and more widely.

DLNA设备的类型主要包括数字媒体播放器(Digital Media Player,DMP),数字媒体渲染(Digital Media Renderer,DMR),数字媒体服务(Digital Media Server,DMS)和数字媒体控制(Digital Media Controller,DMC)。其中,DMS设备能够将媒体文件通过超文本传送协议(Hyper Text Transfer Protocol,HTTP)服务器分享出来,而DMC设备包含DLNA控制点(Control Point),能够浏览DMS中分享的媒体内容,并且通过交互控制推送多媒体至DMP设备或DMR设备进行播放。The types of DLNA devices mainly include Digital Media Player (Digital Media Player, DMP), Digital Media Renderer (Digital Media Renderer, DMR), Digital Media Server (Digital Media Server, DMS) and Digital Media Control (Digital Media Controller, DMC) . Among them, the DMS device can share media files through a Hyper Text Transfer Protocol (HTTP) server, and the DMC device includes a DLNA control point (Control Point), which can browse the media content shared in the DMS, and control Push multimedia to DMP device or DMR device for playback.

传统的DMS设备和DMC设备组合起来分享媒体文件时,各模块相对独立,各司其职。DMS设备主要负责搜索媒体文件,并对媒体文件进行解析,获取到媒体文件的详细信息,然后对其进行分类,再生成可以被访问的统一资源定位器(Uniform Resource Locator,URL)路径,以供其他设备浏览和播放;DMC设备主要访问DMS设备分享的媒体内容,并选择媒体文件推送至指定的DMR设备。When traditional DMS equipment and DMC equipment are combined to share media files, each module is relatively independent and performs its own duties. The DMS device is mainly responsible for searching for media files, and parsing the media files, obtaining the detailed information of the media files, and then classifying them, and generating an accessible Uniform Resource Locator (Uniform Resource Locator, URL) path for Other devices browse and play; the DMC device mainly accesses the media content shared by the DMS device, and selects media files to push to the designated DMR device.

因此,目前需要通过DMC设备和DMS设备间的网络交流,才能对媒体文件执行搜索,解析,分类,以及浏览访问等操作,使DLNA设备对网络的依赖性较强,从而使各设备的响应速度较低。Therefore, at present, it is necessary to communicate through the network between the DMC device and the DMS device to perform operations such as searching, parsing, classifying, and browsing and accessing media files, so that the DLNA device is more dependent on the network, thereby improving the response speed of each device lower.

发明内容Contents of the invention

本发明的目的是提出一种移动设备分享多媒体文件的方法及移动设备,以降低对网络的依赖,从而提高各设备的响应速度。The purpose of the present invention is to provide a method for mobile equipment to share multimedia files and the mobile equipment, so as to reduce the dependence on the network and improve the response speed of each equipment.

一方面,本发明实施例提供了一种移动设备分享多媒体文件的方法,包括:On the one hand, an embodiment of the present invention provides a method for a mobile device to share a multimedia file, including:

移动设备中的数据用户界面单元获取所述移动设备中的多媒体文件,并依据获取的多媒体文件生成并显示文件列表,其中,所述文件列表包括多媒体文件唯一对应的标识码;The data user interface unit in the mobile device obtains the multimedia file in the mobile device, and generates and displays a file list according to the obtained multimedia file, wherein the file list includes a unique identification code corresponding to the multimedia file;

所述数据用户界面单元获取用户在所述文件列表中选择的多媒体文件对应的标识码;The data user interface unit acquires the identification code corresponding to the multimedia file selected by the user in the file list;

所述数据用户界面单元向所述移动设备中的数字媒体控制DMC单元发送选择的多媒体文件对应的标识码,使所述DMC单元控制数字媒体渲染DMR设备播放该标识码对应的多媒体文件。The data user interface unit sends the identification code corresponding to the selected multimedia file to the digital media control DMC unit in the mobile device, so that the DMC unit controls the digital media rendering DMR device to play the multimedia file corresponding to the identification code.

另一方面,本发明实施例提供了一种移动设备包括数据用户界面单元和数字媒体控制DMC单元,其中,所述数据用户界面单元具体包括列表生成单元,标识码获取单元和文件播放单元,其中,On the other hand, an embodiment of the present invention provides a mobile device including a data user interface unit and a digital media control DMC unit, wherein the data user interface unit specifically includes a list generation unit, an identification code acquisition unit and a file playback unit, wherein ,

所述列表生成单元,用于获取所述移动设备中的多媒体文件,并依据获取的多媒体文件生成并显示文件列表,其中,所述文件列表包括多媒体文件唯一对应的标识码;The list generating unit is configured to acquire multimedia files in the mobile device, and generate and display a file list according to the acquired multimedia files, wherein the file list includes a unique identification code corresponding to the multimedia file;

所述标识码获取单元,用于获取用户在所述文件列表中选择的多媒体文件对应的标识码;The identification code obtaining unit is used to obtain the identification code corresponding to the multimedia file selected by the user in the file list;

所述文件播放单元,用于向所述移动设备中的数字媒体控制DMC单元发送选择的多媒体文件对应的标识码,使所述DMC单元控制数字媒体渲染DMR设备播放该标识码对应的多媒体文件。The file playing unit is configured to send the identification code corresponding to the selected multimedia file to the digital media control DMC unit in the mobile device, so that the DMC unit controls the digital media rendering DMR device to play the multimedia file corresponding to the identification code.

本发明实施例中提供的移动设备分享多媒体文件的方法及移动设备,能够降低对网络的依赖,提高各设备的响应速率。本发明实施例中提供的移动设备分享多媒体文件的方法中,移动设备中的数据用户界面单元获取移动设备中的多媒体文件,生成并显示多媒体文件的文件列表,获取用户在文件列表中选择的多媒体文件,并获取该多媒体文件对应的标识码,且将该多媒体文件对应的标识码发送给移动设备中的DMC单元,使所述DMC单元控制DMR设备播放该多媒体文件。由于数据用户界面单元和DMC单元均属于移动设备,该方法降低了网络通信频率,即,降低了对网络的依赖,提高了分享多媒体文件的速度。The mobile device sharing multimedia file method and the mobile device provided in the embodiment of the present invention can reduce the dependence on the network and improve the response rate of each device. In the method for sharing multimedia files on a mobile device provided in an embodiment of the present invention, the data user interface unit in the mobile device obtains the multimedia files in the mobile device, generates and displays a file list of the multimedia files, and obtains the multimedia files selected by the user in the file list. file, and obtain the identification code corresponding to the multimedia file, and send the identification code corresponding to the multimedia file to the DMC unit in the mobile device, so that the DMC unit controls the DMR device to play the multimedia file. Since both the data user interface unit and the DMC unit belong to the mobile device, the method reduces the frequency of network communication, that is, reduces the dependence on the network, and improves the speed of sharing multimedia files.

附图说明Description of drawings

此处所说明的附图用来提供对本发明实施例的进一步理解,构成本发明实施例的一部分,并不构成对本发明实施例的限定。在附图中:The drawings described here are used to provide further understanding of the embodiments of the present invention, constitute a part of the embodiments of the present invention, and do not limit the embodiments of the present invention. In the attached picture:

图1是本发明第一实施例中提供的移动设备分享多媒体文件的方法的实现流程图;Fig. 1 is the implementation flowchart of the method for sharing multimedia files provided by mobile devices in the first embodiment of the present invention;

图2是本发明第二实施例中提供的移动设备分享多媒体文件的方法的实现流程图;Fig. 2 is the implementation flowchart of the method for sharing multimedia files provided by mobile devices in the second embodiment of the present invention;

图3是本发明第三实施例中提供的移动设备的结构示意图。Fig. 3 is a schematic structural diagram of a mobile device provided in a third embodiment of the present invention.

具体实施方式detailed description

下面结合附图及具体实施例对本发明实施例进行更加详细与完整的说明。可以理解的是,此处所描述的具体实施例仅用于解释本发明实施例,而非对本发明实施例的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明实施例相关的部分而非全部内容。The embodiments of the present invention will be described in more detail and complete below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described here are only used to explain the embodiments of the present invention, rather than to limit the embodiments of the present invention. In addition, it should be noted that, for the convenience of description, only the part related to the embodiment of the present invention is shown in the drawings but not the whole content.

第一实施例:First embodiment:

图1是本发明第一实施例中提供的移动设备分享多媒体文件的方法的实现流程图,该方法可以由移动设备执行。如图1所示,该实现流程包括:Fig. 1 is a flow chart of the implementation of the method for sharing multimedia files provided by the mobile device in the first embodiment of the present invention, and the method can be executed by the mobile device. As shown in Figure 1, the implementation process includes:

步骤11、移动设备中的数据用户界面单元获取所述移动设备中的多媒体文件,并依据获取的多媒体文件生成并显示文件列表,其中,所述文件列表包括多媒体文件唯一对应的标识码。Step 11. The data user interface unit in the mobile device obtains the multimedia files in the mobile device, and generates and displays a file list according to the obtained multimedia files, wherein the file list includes unique identification codes corresponding to the multimedia files.

移动设备中的数据用户界面(User Interface),UI)单元是用户与移动设备的交互界面。UI单元启动后,使用移动设备中的操作系统资源搜索并获取移动设备中的多媒体文件,还可以读取所述多媒体文件的属性信息,如,所述多媒体文件为歌曲时,所述多媒体文件的属性信息可以包括歌曲本地路径、歌曲名、歌手名和专辑信息等。A data user interface (User Interface, UI) unit in a mobile device is an interactive interface between a user and the mobile device. After the UI unit starts, use the operating system resource in the mobile device to search and obtain the multimedia file in the mobile device, and can also read the attribute information of the multimedia file, such as, when the multimedia file is a song, the multimedia file's Attribute information may include song local path, song name, artist name and album information, etc.

UI单元获取移动设备中的多媒体文件之后,依据获取的多媒体文件生成文件列表,并显示生成的文件列表,其中,所述文件列表包括多媒体文件唯一对应的标识码。其中,每个多媒体文件均与该多媒体文件唯一对应的标识码间具有唯一的映射关系。After the UI unit acquires the multimedia files in the mobile device, it generates a file list according to the acquired multimedia files, and displays the generated file list, wherein the file list includes unique identification codes corresponding to the multimedia files. Wherein, each multimedia file has a unique mapping relationship with the identification code uniquely corresponding to the multimedia file.

本实施例中UI单元获取移动设备中的多媒体文件,生成并显示播放列表,相比于现有的DLNA协议下DMC单元搜索并获取DMS单元中的多媒体文件,DMC单元依据获取的多媒体文件生成并显示播放列表,提高了获取多媒体文件的效率,且本实施例中DMC单元和DMS单元无需搜索、解析多媒体文件的功能,即简化了DMC单元和DMS单元的功能。In this embodiment, the UI unit acquires the multimedia files in the mobile device, generates and displays the playlist, compared to the existing DLNA protocol, the DMC unit searches and acquires the multimedia files in the DMS unit, and the DMC unit generates and displays the multimedia files according to the obtained multimedia files. Displaying the playlist improves the efficiency of acquiring multimedia files, and in this embodiment, the DMC unit and the DMS unit do not need the functions of searching and parsing multimedia files, which simplifies the functions of the DMC unit and the DMS unit.

需要说明的是,UI单元获取多媒体文件之后,还能够依据预先设置对多媒体文件分类,生成且显示分类后的文件列表。It should be noted that after the UI unit acquires the multimedia files, it can also classify the multimedia files according to preset settings, and generate and display the classified file list.

步骤12、所述数据用户界面单元获取用户在所述文件列表中选择的多媒体文件对应的标识码。Step 12. The data user interface unit acquires the identification code corresponding to the multimedia file selected by the user in the file list.

在用户在UI单元显示的文件列表中选择多媒体文件时,所述UI单元获取用户选择的多媒体文件对应的标识码。When the user selects a multimedia file in the file list displayed by the UI unit, the UI unit acquires an identification code corresponding to the multimedia file selected by the user.

步骤13、所述数据用户界面单元向所述移动设备中的数字媒体控制DMC单元发送选择的多媒体文件对应的标识码,使所述DMC单元控制数字媒体渲染DMR设备播放该标识码对应的多媒体文件。Step 13, the data user interface unit sends the identification code corresponding to the selected multimedia file to the digital media control DMC unit in the mobile device, so that the DMC unit controls the digital media rendering DMR device to play the multimedia file corresponding to the identification code .

所述UI单元向所述移动设备中的DMC单元发送选择的多媒体文件的标识码,其中,所述DMC单元与所述UI单元通过网络协议进行通信。DMC单元接收所述标识码之后,向DMR设备发送所述标识码,且DMR设备播放接收的标识码对应的多媒体文件。其中,移动设备中的DMC单元和所述DMR设备通过无线网络连接,如,移动设备处于无线保真(WirelessFidelity,WiFi)网络环境中,且DMR设备也处于该WiFi网络环境中。The UI unit sends the identification code of the selected multimedia file to the DMC unit in the mobile device, wherein the DMC unit communicates with the UI unit through a network protocol. After receiving the identification code, the DMC unit sends the identification code to the DMR device, and the DMR device plays the multimedia file corresponding to the received identification code. Wherein, the DMC unit in the mobile device is connected to the DMR device through a wireless network, for example, the mobile device is in a wireless fidelity (Wireless Fidelity, WiFi) network environment, and the DMR device is also in the WiFi network environment.

其中,所述数据用户界面单元向所述移动设备中的数字媒体控制DMC单元发送选择的多媒体文件对应的标识码,使所述DMC单元控制数字媒体渲染DMR设备播放该标识码对应的多媒体文件,可以包括:所述数据用户界面单元向所述DMC单元发送选择的多媒体文件对应的标识码,使所述DMC单元接收该标识码并向所述DMS单元发送获取该标识码对应的多媒体数据的请求,使所述DMS单元根据接收的请求向所述DMC单元发送该标识码对应的多媒体数据,并使所述DMC单元向所述DMR设备发送接收的多媒体数据,且使所述DMR设备播放接收的多媒体数据。Wherein, the data user interface unit sends the identification code corresponding to the selected multimedia file to the digital media control DMC unit in the mobile device, so that the DMC unit controls the digital media rendering DMR device to play the multimedia file corresponding to the identification code, It may include: the data user interface unit sends an identification code corresponding to the selected multimedia file to the DMC unit, so that the DMC unit receives the identification code and sends a request to the DMS unit to obtain the multimedia data corresponding to the identification code Make the DMS unit send the multimedia data corresponding to the identification code to the DMC unit according to the received request, and make the DMC unit send the received multimedia data to the DMR device, and make the DMR device play the received multimedia data multimedia data.

其中,DMC单元接收所述标识码之后,还向移动设备中的DMS单元发送获取该标识码对应的多媒体数据的请求,DMS单元响应接收的请求并向所述DMC单元发送该标识码对应的多媒体数据,DMC单元向DMR设备发送接收的多媒体数据,使得DMR设备播放接收的多媒体数据。Wherein, after the DMC unit receives the identification code, it also sends a request to the DMS unit in the mobile device to obtain the multimedia data corresponding to the identification code, and the DMS unit responds to the received request and sends the multimedia data corresponding to the identification code to the DMC unit. data, the DMC unit sends the received multimedia data to the DMR device, so that the DMR device plays the received multimedia data.

具体的,DMC单元执行setAVTransportURI(设置传输路径)动作时,向移动设备中的DMS单元发送获取该标识码对应的多媒体数据的请求,且向DMR设备发送Play(播放)动作时,DMR播放接收的多媒体数据。Specifically, when the DMC unit executes the setAVTransportURI (set transmission path) action, it sends a request to the DMS unit in the mobile device to obtain the multimedia data corresponding to the identification code, and when it sends the Play (play) action to the DMR device, the DMR plays the received multimedia data.

需要说明的是,本发明实施例中DMS单元接收DMC单元发送的获取该标识码对应的多媒体数据的请求之后,也可以响应接收的请求并直接向DMR设备发送该标识码对应的多媒体数据,使得DMR设备播放接收的多媒体数据。It should be noted that, in the embodiment of the present invention, after the DMS unit receives the request sent by the DMC unit to obtain the multimedia data corresponding to the identification code, it can also respond to the received request and directly send the multimedia data corresponding to the identification code to the DMR device, so that The DMR device plays the received multimedia data.

本发明第一实施例中提供的移动设备分享多媒体文件的方法,移动设备中的UI单元具有多媒体文件的搜索、解析、分类以及浏览访问等功能,且UI单元属于移动设备中操作系统的应用程序(Application,App)层,而移动设备中的DMS单元和DMC单元只保留了多媒体文件的分享和推送功能,该方法减少了DMS单元和DMC单元间的网络交流,降低了网络通信频率,提高了搜索和解析多媒体文件的速度,从而提升了分享多媒体文件的响应速度,使得用户使用移动设备分享多媒体文件时,几乎察觉不到网络对通信的影响。In the method for sharing multimedia files with a mobile device provided in the first embodiment of the present invention, the UI unit in the mobile device has functions such as searching, parsing, classifying, browsing and accessing multimedia files, and the UI unit belongs to the application program of the operating system in the mobile device (Application, App) layer, while the DMS unit and DMC unit in the mobile device only retain the sharing and pushing functions of multimedia files. This method reduces the network communication between the DMS unit and the DMC unit, reduces the network communication frequency, and improves The speed of searching and parsing multimedia files improves the response speed of sharing multimedia files, so that when users use mobile devices to share multimedia files, they hardly notice the impact of the network on communication.

第二实施例:Second embodiment:

图2是本发明第二实施例中提供的移动设备分享多媒体文件的方法的实现流程图,该方法可以由移动设备执行。如图2所示,该实现流程包括:Fig. 2 is an implementation flow chart of a method for a mobile device to share a multimedia file provided in the second embodiment of the present invention, and the method can be executed by the mobile device. As shown in Figure 2, the implementation process includes:

步骤21、所述数据用户界面单元获取所述移动设备中的多媒体文件,且依据获取的多媒体文件生成并显示文件列表。Step 21. The data user interface unit acquires multimedia files in the mobile device, and generates and displays a file list according to the acquired multimedia files.

UI单元启动后,使用移动设备中的操作系统资源搜索并获取移动设备中的多媒体文件,还能够读取所述多媒体文件的属性信息,且依据获取的多媒体文件生成并显示文件列表。After the UI unit is started, it uses operating system resources in the mobile device to search for and obtain multimedia files in the mobile device, and can also read attribute information of the multimedia files, and generate and display a file list according to the obtained multimedia files.

步骤22、所述数据用户界面单元为所述文件列表中每个多媒体文件生成唯一的标识码,并依据生成的标识码更新文件列表,其中,更新后的文件列表包括多媒体文件对应的标识码。Step 22. The data user interface unit generates a unique identification code for each multimedia file in the file list, and updates the file list according to the generated identification code, wherein the updated file list includes the identification code corresponding to the multimedia file.

UI单元为文件列表中每个多媒体文件生成唯一的标识码,并将标识码添加到文件列表中,得到更新的文件列表。The UI unit generates a unique identification code for each multimedia file in the file list, and adds the identification code to the file list to obtain an updated file list.

其中,所述数据用户界面单元为所述文件列表中每个多媒体文件生成唯一的标识码,可以包括:所述数据用户界面单元根据多媒体文件的名称字符串生成多媒体文件的标识码。Wherein, the data user interface unit generating a unique identification code for each multimedia file in the file list may include: the data user interface unit generating the identification code of the multimedia file according to the name string of the multimedia file.

如,UI单元可以将多媒体文件的名称字符串设置为多媒体文件对应的标识码。需要说明的是,UI单元也可以通过其他方式为所述文件列表中每个多媒体文件生成唯一的标识码,只需确保多媒体文件与标识码之间具有唯一对应的映射关系即可。如,依次对各多媒体文件编号,对于文件列表中的任一多媒体文件,将该多媒体文件的编号确定为该多媒体文件的标识码。For example, the UI unit may set the name string of the multimedia file as the identification code corresponding to the multimedia file. It should be noted that the UI unit can also generate a unique identification code for each multimedia file in the file list in other ways, as long as there is a unique mapping relationship between the multimedia file and the identification code. For example, each multimedia file is numbered sequentially, and for any multimedia file in the file list, the number of the multimedia file is determined as the identification code of the multimedia file.

其中,数据用户界面单元依据生成的标识码更新文件列表之后,还可以包括:所述数据用户界面单元向所述移动设备中的数字媒体服务DMS单元发送更新的文件列表,使所述DMS单元执行如下操作:接收更新的文件列表,并根据多媒体文件的本地路径和多媒体文件对应的标识码生成多媒体文件的统一资源定位器路径,且生成每个媒体文件对应的多媒体数据。Wherein, after the data user interface unit updates the file list according to the generated identification code, it may also include: the data user interface unit sends the updated file list to the digital media service DMS unit in the mobile device, so that the DMS unit executes The operation is as follows: receive the updated file list, generate a URL path of the multimedia file according to the local path of the multimedia file and the identification code corresponding to the multimedia file, and generate multimedia data corresponding to each media file.

UI单元依据生成的标识码更新文件列表之后,向DMS单元发送更新的文件列表,触发DMS单元执行如下操作:DMS单元接收更新的文件列表,并根据多媒体文件的本地路径(即,多媒体文件在移动设备中的路径信息)和多媒体文件对应的标识码,生成多媒体文件的统一资源定位器路径,且生成每个媒体文件对应的多媒体数据。其中,对于任意多媒体文件,可以将该多媒体文件对应的标识码添加到该多媒体文件的本地路径信息之后,形成该多媒体文件的统一资源定位器(Uniform Resource Locator,URL)路径。由于该多媒体文件与该多媒体文件对应的标识码具有唯一对应的映射关系,故该多媒体文件的URL路径与该多媒体文件间也具有唯一对应的映射关系。After the UI unit updates the file list according to the generated identification code, it sends the updated file list to the DMS unit, triggering the DMS unit to perform the following operations: the DMS unit receives the updated file list, and according to the local path of the multimedia file (that is, the multimedia file is moving) path information in the device) and the identification code corresponding to the multimedia file, generate a URL path of the multimedia file, and generate multimedia data corresponding to each media file. Wherein, for any multimedia file, the identification code corresponding to the multimedia file may be added to the local path information of the multimedia file to form a Uniform Resource Locator (Uniform Resource Locator, URL) path of the multimedia file. Since the multimedia file has a unique mapping relationship with the identification code corresponding to the multimedia file, the URL path of the multimedia file also has a unique mapping relationship with the multimedia file.

步骤23、所述数据用户界面单元获取用户在所述文件列表中选择的多媒体文件对应的标识码。Step 23. The data user interface unit acquires the identification code corresponding to the multimedia file selected by the user in the file list.

在用户在UI单元显示的文件列表中选择多媒体文件时,所述UI单元获取用户选择的多媒体文件对应的标识码。When the user selects a multimedia file in the file list displayed by the UI unit, the UI unit acquires an identification code corresponding to the multimedia file selected by the user.

步骤24、所述数据用户界面单元向所述移动设备中的数字媒体控制DMC单元发送选择的多媒体文件对应的标识码,使所述DMC单元控制数字媒体渲染DMR设备播放该标识码对应的多媒体文件。Step 24, the data user interface unit sends the identification code corresponding to the selected multimedia file to the digital media control DMC unit in the mobile device, so that the DMC unit controls the digital media rendering DMR device to play the multimedia file corresponding to the identification code .

所述UI单元向所述移动设备中的DMC单元发送选择的多媒体文件的标识码,其中,所述DMC单元与所述UI单元通过网络协议进行通信。DMC单元接收所述标识码之后,向DMR设备发送所述标识码,且DMR设备播放接收的标识码对应的多媒体文件。其中,移动设备中的DMC单元和所述DMR设备通过无线网络连接,如通过蓝牙或无线保真网络连接。The UI unit sends the identification code of the selected multimedia file to the DMC unit in the mobile device, wherein the DMC unit communicates with the UI unit through a network protocol. After receiving the identification code, the DMC unit sends the identification code to the DMR device, and the DMR device plays the multimedia file corresponding to the received identification code. Wherein, the DMC unit in the mobile device is connected to the DMR device through a wireless network, such as through Bluetooth or a Wi-Fi network.

本发明第二实施例中提供的移动设备分享多媒体文件的方法,将DMS单元和DMC单元均设置在移动设备这一相同终端内部,并充分利用移动设备的优势,将多媒体文件的搜索,解析,分类,以及浏览访问等功能都上移至移动设备中系统层来处理,而DMS和DMC仅保留文件的分享和推送功能,行为更加专一,这种方法减少了基于DLNA协议具有很好的兼容性;移动设备兼具DMS单元,能够分享推送本机多媒体文件;利用移动设备操作系统的资源解析多媒体文件,使得DMS单元无需解析多媒体文件,能够快速建立分享链接;无需配置移动设备,操作使用简便,适用家庭无线分享系统;用户无需通过DMS单元即可直接访问文件列表,减小了DMS单元和DMC单元间的网络交流,降低了网络通信频率,提高了搜索和解析多媒体文件的速度,使得用户使用移动设备分享多媒体文件时,几乎察觉不到网络对通信的影响。In the method for sharing multimedia files with mobile devices provided in the second embodiment of the present invention, both the DMS unit and the DMC unit are set inside the same terminal of the mobile device, and the advantages of the mobile device are fully utilized to search, analyze, and search multimedia files. Classification, browsing and access functions are all moved up to the system layer of the mobile device for processing, while DMS and DMC only retain the file sharing and pushing functions, and the behavior is more specific. This method reduces the compatibility of the DLNA protocol. The mobile device also has a DMS unit, which can share and push local multimedia files; use the resources of the mobile device operating system to analyze multimedia files, so that the DMS unit does not need to analyze multimedia files, and can quickly establish sharing links; no need to configure mobile devices, easy to operate and use , suitable for home wireless sharing systems; users can directly access the file list without going through the DMS unit, which reduces the network communication between the DMS unit and the DMC unit, reduces the network communication frequency, improves the speed of searching and parsing multimedia files, and enables users When sharing multimedia files using mobile devices, the impact of the network on communication is barely noticeable.

本发明第三实施例为移动设备实施例,本发明方法实施例和移动设备实施例属于同一构思,在移动设备实施例中未详尽描述的细节内容,可以参考上述方法实施例。The third embodiment of the present invention is a mobile device embodiment. The method embodiment of the present invention and the mobile device embodiment belong to the same concept. For details not described in detail in the mobile device embodiment, refer to the above method embodiment.

第三实施例:Third embodiment:

图3是本发明第三实施例中提供的移动设备的结构示意图。如图3所示,该移动设备可以包括数据用户界面单元31和数字媒体控制DMC单元32,其中,所述数据用户界面单元31具体包括列表生成单元311,标识码获取单元312和文件播放单元313。Fig. 3 is a schematic structural diagram of a mobile device provided in a third embodiment of the present invention. As shown in Figure 3, the mobile device may include a data user interface unit 31 and a digital media control DMC unit 32, wherein the data user interface unit 31 specifically includes a list generation unit 311, an identification code acquisition unit 312 and a file playback unit 313 .

其中,所述列表生成单元311,可以用于获取所述移动设备中的多媒体文件,并依据获取的多媒体文件生成并显示文件列表,其中,所述文件列表包括多媒体文件唯一对应的标识码;所述标识码获取单元312,可以用于获取用户在所述文件列表中选择的多媒体文件对应的标识码;所述文件播放单元313,可以用于向所述移动设备中的数字媒体控制DMC单元发送选择的多媒体文件对应的标识码,使所述DMC单元控制数字媒体渲染DMR设备播放该标识码对应的多媒体文件。Wherein, the list generating unit 311 may be configured to obtain multimedia files in the mobile device, and generate and display a file list according to the obtained multimedia files, wherein the file list includes a unique identification code corresponding to the multimedia file; The identification code obtaining unit 312 can be used to obtain the identification code corresponding to the multimedia file selected by the user in the file list; the file playing unit 313 can be used to send the digital media control DMC unit to the mobile device. The identification code corresponding to the selected multimedia file enables the DMC unit to control the digital media rendering DMR device to play the multimedia file corresponding to the identification code.

其中,所述列表生成单元311具体可以包括:列表生成子单元,用于获取所述移动设备中的多媒体文件,且依据获取的多媒体文件生成并显示文件列表;标识码生成子单元,用于为所述文件列表中每个多媒体文件生成唯一的标识码;列表更新子单元,用于依据所述标识码生成子单元生成的标识码更新文件列表,其中,更新后的文件列表包括多媒体文件对应的标识码。Wherein, the list generating unit 311 may specifically include: a list generating subunit, configured to acquire multimedia files in the mobile device, and generate and display a file list according to the acquired multimedia files; an identification code generating subunit, configured to provide Each multimedia file in the file list generates a unique identification code; the list update subunit is used to update the file list according to the identification code generated by the identification code generation subunit, wherein the updated file list includes the multimedia file corresponding identification code.

该移动设备还可以包括数字媒体服务DMS单元,其中,所述数据用户界面单元31还可以包括列表发送单元,其中,所述列表发送单元,用于向所述移动设备中的DMS单元发送更新的文件列表;所述DMS单元可以用于:接收更新的文件列表,并根据多媒体文件的本地路径和多媒体文件对应的标识码生成多媒体文件的统一资源定位器路径,且生成每个媒体文件对应的多媒体数据。The mobile device may also include a digital media service DMS unit, wherein the data user interface unit 31 may also include a list sending unit, wherein the list sending unit is configured to send updated information to the DMS unit in the mobile device. File list; the DMS unit can be used to: receive the updated file list, and generate the uniform resource locator path of the multimedia file according to the local path of the multimedia file and the identification code corresponding to the multimedia file, and generate the corresponding multimedia file of each media file data.

其中,所述标识码生成子单元具体可以用于:根据多媒体文件的名称字符串生成多媒体文件的标识码。Wherein, the identification code generating subunit may be specifically configured to: generate an identification code of the multimedia file according to a name string of the multimedia file.

其中,所述文件播放单元具体可以用于:向所述DMC单元发送选择的多媒体文件对应的标识码,使所述DMC单元接收该标识码并向所述DMS单元发送获取该标识码对应的多媒体数据的请求,使所述DMS单元根据接收的请求向所述DMC单元发送该标识码对应的多媒体数据,并使所述DMC单元向所述DMR设备发送接收的多媒体数据,且使所述DMR设备播放接收的多媒体数据。Wherein, the file playback unit can be specifically configured to: send the identification code corresponding to the selected multimedia file to the DMC unit, so that the DMC unit receives the identification code and sends the multimedia file corresponding to the identification code to the DMS unit. The request for data makes the DMS unit send the multimedia data corresponding to the identification code to the DMC unit according to the received request, and makes the DMC unit send the received multimedia data to the DMR device, and makes the DMR device Play the received multimedia data.

本发明第三实施例中提供的移动设备,基于DLNA数字媒体分享技术,在移动设备中建立DMS单元和DMC单元,将移动设备内部保存的多媒体文件通过URL的形式分享推送至网络中的DMR设备进行播放,减少了DMS单元和DMC单元间的网络交流,降低了网络通信频率,提高了搜索和解析多媒体文件的速度,从而提升了分享多媒体文件的响应速度,使得用户使用移动设备分享多媒体文件时,几乎察觉不到网络对通信的影响。The mobile device provided in the third embodiment of the present invention is based on DLNA digital media sharing technology, and a DMS unit and a DMC unit are established in the mobile device, and the multimedia files stored inside the mobile device are shared and pushed to the DMR device in the network through the form of URL Playing reduces the network communication between the DMS unit and the DMC unit, reduces the network communication frequency, improves the speed of searching and parsing multimedia files, thereby improving the response speed of sharing multimedia files, making users use mobile devices to share multimedia files. , the impact of the network on communication is almost imperceptible.

需要说明的是,本发明实施例中还提供了一种移动设备分享多媒体文件的系统,包括本发明任意实施例中提供的移动设备和数字媒体渲染DMR设备,其中,移动设备包括数据用户界面单元和数字媒体控制DMC单元,且所述数字媒体控制DMC单元与所述DMR设备通过无线网络连接,DMC单元能够向DMR设备推送待播放的多媒体文件的多媒体数据,DMR设备播放接收的多媒体数据。It should be noted that an embodiment of the present invention also provides a system for a mobile device to share multimedia files, including the mobile device and the digital media rendering DMR device provided in any embodiment of the present invention, wherein the mobile device includes a data user interface unit and a digital media control DMC unit, and the digital media control DMC unit is connected to the DMR device through a wireless network, the DMC unit can push the multimedia data of the multimedia file to be played to the DMR device, and the DMR device plays the received multimedia data.

上所述仅为本发明实施例的优选实施例,并不用于限制本发明实施例,对于本领域技术人员而言,本发明实施例可以有各种改动和变化。凡在本发明实施例的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本发明实施例的保护范围之内。The above descriptions are only preferred embodiments of the embodiments of the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, various modifications and changes may be made to the embodiments of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present invention shall be included within the protection scope of the embodiments of the present invention.

Claims (4)

1. a kind of mobile device shares the method for multimedia file, it is characterised in that including:
Data user interface unit in mobile device obtains the multimedia file in mobile device, and according to the multimedia of acquisition File generated simultaneously shows listed files;Wherein, the listed files includes multimedia file uniquely corresponding identification code;
The data user interface unit is that each multimedia file generates unique identification code, and foundation in the listed files The identification code renewal listed files of generation, wherein, the listed files after renewal includes identification code corresponding to multimedia file;
Digital media service DMS unit of the data user interface unit into the mobile device sends the file row of renewal Table, the DMS units are made to perform following operation:Receive the listed files of renewal, and according to the local path of multimedia file and The uniform resource locator path of identification code generation multimedia file corresponding to multimedia file, and generate each media file pair The multi-medium data answered;The data user interface unit obtains the multimedia file pair that user selects in the listed files The identification code answered;
The data user interface unit controls DMC units to send by Digital Media of the procotol into the mobile device Identification code corresponding to the multimedia file of selection;
The DMC units, which receive the identification code and sent to the DMS units, obtains multi-medium data corresponding to the identification code Request;
The DMS units identification code sent to the DMC units according to the request of reception corresponding to multi-medium data, and make institute State DMC units and the multi-medium data received is sent to the DMR equipment, and the multimedia number for receiving the DMR device plays According to;
Wherein, the user interface elements belong to the application layer of operating system in mobile device, the user interface elements After startup, searched for using the operating-system resources in mobile device and obtain the multimedia file in mobile device;Mobile device In DMC units connected with the DMR equipment by wireless network.
2. according to the method for claim 1, it is characterised in that the data user interface unit is in the listed files Each multimedia file generates unique identification code, including:
The data user interface unit concatenates into the identification code of multimedia file according to the name character of multimedia file.
A kind of 3. mobile device, it is characterised in that including data user interface unit and Digital Media control DMC units, wherein, The data user interface unit specifically includes list generation unit, identification code acquiring unit and file broadcast unit, wherein,
The list generation unit, for obtaining the multimedia file in the mobile device, and according to the multimedia text of acquisition Part generates and shows listed files, wherein, the listed files includes multimedia file uniquely corresponding identification code;
The identification code acquiring unit, mark corresponding to the multimedia file selected for obtaining user in the listed files Code;
The file broadcast unit, more matchmakers of selection are sent for the Digital Media control DMC units into the mobile device Identification code corresponding to body file, DMC units control Digital Media is set to render more matchmakers corresponding to the DMR device plays identification codes Body file;
The list generation unit specifically includes:
List generates subelement, for obtaining the multimedia file in the mobile device, and according to the multimedia file of acquisition Generate and show listed files;
Identification code generates subelement, for generating unique identification code for each multimedia file in the listed files;
List update subelement, for updating listed files according to the identification code of identification code generation subelement generation, wherein, Listed files after renewal includes identification code corresponding to multimedia file;
Also include digital media service DMS units, wherein, the data user interface unit also includes list transmitting element,
The list transmitting element, the listed files of renewal is sent for the DMS units into the mobile device;
The DMS units are used for:The listed files of renewal is received, and according to the local path and multimedia file of multimedia file The uniform resource locator path of corresponding identification code generation multimedia file, and generate multimedia corresponding to each media file Data;
Wherein, the user interface elements belong to the application layer of operating system in mobile device, the user interface elements After startup, searched for using the operating-system resources in mobile device and obtain the multimedia file in mobile device;
The file broadcast unit, is specifically used for:
Identification code corresponding to the multimedia file of selection is sent to the DMC units, the DMC units is received the identification code simultaneously The request for obtaining multi-medium data corresponding to the identification code is sent to the DMS units, makes the DMS units asking according to reception Ask to the DMC units and send multi-medium data corresponding to the identification code, and the DMC units is sent to the DMR equipment The multi-medium data of reception, and the multi-medium data for receiving the DMR device plays.
4. mobile device according to claim 3, it is characterised in that the identification code generation subelement is specifically used for:
Concatenate into the identification code of multimedia file according to the name character of multimedia file.
CN201410624196.1A 2014-11-07 2014-11-07 A kind of mobile device shares the method and mobile device of multimedia file Expired - Fee Related CN104394125B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410624196.1A CN104394125B (en) 2014-11-07 2014-11-07 A kind of mobile device shares the method and mobile device of multimedia file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410624196.1A CN104394125B (en) 2014-11-07 2014-11-07 A kind of mobile device shares the method and mobile device of multimedia file

Publications (2)

Publication Number Publication Date
CN104394125A CN104394125A (en) 2015-03-04
CN104394125B true CN104394125B (en) 2017-11-14

Family

ID=52611961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410624196.1A Expired - Fee Related CN104394125B (en) 2014-11-07 2014-11-07 A kind of mobile device shares the method and mobile device of multimedia file

Country Status (1)

Country Link
CN (1) CN104394125B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105072147B (en) * 2015-06-30 2021-05-14 青岛海尔智能家电科技有限公司 A processing method and device for receiving a notification message
CN109714734B (en) * 2018-12-12 2022-07-12 创扬通信技术(深圳)有限公司 DMR system, wireless communication method and device of DMR and terminal equipment
CN110932963B (en) * 2019-11-21 2020-11-03 北京达佳互联信息技术有限公司 Multimedia resource sharing method, system, device, terminal, server and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202360A (en) * 2010-03-23 2011-09-28 鸿富锦精密工业(深圳)有限公司 Mobile terminal and method for obtaining multimedia data
CN103634700A (en) * 2013-12-23 2014-03-12 乐视致新电子科技(天津)有限公司 Method and device of pushing multimedia files to smart television by mobile communication terminal
CN103986787A (en) * 2014-06-05 2014-08-13 合一网络技术(北京)有限公司 Method and system for automatically obtaining video updates
CN104080017A (en) * 2014-07-07 2014-10-01 广东欧珀移动通信有限公司 Method, device and system for playing tab files

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090089448A1 (en) * 2007-09-28 2009-04-02 David Sze Mobile browser with zoom operations using progressive image download

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202360A (en) * 2010-03-23 2011-09-28 鸿富锦精密工业(深圳)有限公司 Mobile terminal and method for obtaining multimedia data
CN103634700A (en) * 2013-12-23 2014-03-12 乐视致新电子科技(天津)有限公司 Method and device of pushing multimedia files to smart television by mobile communication terminal
CN103986787A (en) * 2014-06-05 2014-08-13 合一网络技术(北京)有限公司 Method and system for automatically obtaining video updates
CN104080017A (en) * 2014-07-07 2014-10-01 广东欧珀移动通信有限公司 Method, device and system for playing tab files

Also Published As

Publication number Publication date
CN104394125A (en) 2015-03-04

Similar Documents

Publication Publication Date Title
US11641507B2 (en) Methods, systems, and media for determining channel information
CN105122931B (en) Electronic equipment and the method that personal cloud device is registered in its portal user server
CN103283257B (en) Apparatus and method for remotely controlling peripheral devices in mobile communication terminal
EP3886452B1 (en) Method for sharing media content, terminal device, and content sharing system
CN102880654B (en) Method for dynamically updating favorites of information terminal browser
CN103327645B (en) A kind of method and device for connecting network
CN105791351A (en) Method and system for realizing screen pushing based on DLNA technology
JP6580132B2 (en) Method and apparatus for providing information associated with media content
US9621945B2 (en) Method and system for continuously playing media resource in device
EP3651421A1 (en) Multimedia display method, apparatus, and device
CN104244076A (en) Method and system for simultaneously controlling multiple media devices in grouped mode through DLNA
CN103532945B (en) Sharing control method and related equipment and communication system
CN105992029A (en) A wallpaper recommendation method, server, mobile terminal and system
CN102298590B (en) Home interconnected information display system and method, and display terminals and server for the same
US10666588B2 (en) Method for sharing media content, terminal device, and content sharing system
CN104394125B (en) A kind of mobile device shares the method and mobile device of multimedia file
CN105095410A (en) A song directory setting method, mobile terminal, server and system
CN104980807A (en) Method and terminal for multimedia interaction
CN106166387B (en) Control method and device of electronic toy and electronic toy
CN104243469A (en) Playing control method, device and system
CN105100881A (en) Social network system based on set top box and use method thereof
US10104422B2 (en) Multimedia playing control method, apparatus for the same and system
CN104268208B (en) A kind of method and device of centralized displaying file
CN104993999A (en) Information processing method and server
CN103326955B (en) The method and apparatus of acquisition of information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171114

CF01 Termination of patent right due to non-payment of annual fee