ipod

Drawing waveform with AVAssetReader

不羁岁月 提交于 2019-12-17 04:09:59
问题 I reading song from iPod library using assetUrl (in code it named audioUrl) I can play it many ways, I can cut it, I can make some precessing with this but... I really don't understand what I gonna do with this CMSampleBufferRef to get data for drawing waveform! I need info about peak values, how I can get it this (maybe another) way? AVAssetTrack * songTrack = [audioUrl.tracks objectAtIndex:0]; AVAssetReaderTrackOutput * output = [[AVAssetReaderTrackOutput alloc] initWithTrack:songTrack

Getting the most played track out of the iPod library (MPMediaQuery)

给你一囗甜甜゛ 提交于 2019-12-13 18:51:39
问题 I need to get out the 25 most Played Songs out from my iPod Library with my iPhone app. i am using a MPMediaQuery. One solutions would be to loop through all tracks and them comparing by MPMediaItemPropertyAlbumTrackCount. But i think thats a bit unefficient. Is there a way to directly get the Most Played items playlist? 回答1: I think you are looking for MPMediaItemPropertyPlayCount not MPMediaItemPropertyAlbumTrackCount. MPMediaItemPropertyAlbumTrackCount is the track number of the song as it

jPlayer doesn't play audio file automatically in iPad

做~自己de王妃 提交于 2019-12-13 18:15:43
问题 I am trying to play audio file using jPlayer in iPad. It works fine in Safari on my local PC but when I tried to open it in my iPad it doesn't play audio automatically. Please help me. Thanks 回答1: You may have to initialize jPlayer on user action in Mobile Safari. The first time a media element is played must be initiated by a user gester. ie., The user must click the play button. This affects the operation of a jPlayer("play") in the ready event handler. The browser will ignore the command.

Python output to terminal during ssh login

偶尔善良 提交于 2019-12-13 07:16:14
问题 I have been looking everywhere for this and have not found a solution. I am using python 2.5.1 on an Apple iPod and I am trying to connect to a host with SSH. First I start off with import os . Next I os.system('ssh 192.168.1.13) . After this command is executed I next try to os.system('password') . This does not work and SSH asks for the password, after I exit the SSH session then my password is printed. Is there any way that I can get it so that it sends the password to SSH? I don't want to

iOS: lowering bitrate of MPMediaItem containing an iPod music

北城以北 提交于 2019-12-13 04:34:15
问题 I'm making an app which add a theme music to an video. Some user complains that if their music is in apple lossless format, the video will be too large. I found that is because the AVMutableComposition I use just put the original music format in to the video I generated. So is there any way I can lower the bitrate of the music in MPMediaItem, or change the format it is encoded? This is a code snippet of the code I use to add music to video. AVMutableComposition* mixComposition =

Changing Device Volume

空扰寡人 提交于 2019-12-12 19:22:39
问题 I am developing an Iphone/Ipod Application, in which I am using AVAudioPlayer. I am changing volume of audio through slider, which works correctly, but now I have to change(increase/decrease) slider by pressing the device plus and minus button instead of changing slider by myself. When I press plus/minus button of device, don't know where the control goes? Does anybody know, feel free to help. 回答1: How do I access the hardware volume controller? Global system volume, including your

Options for ipod nano development?

假如想象 提交于 2019-12-12 13:15:46
问题 My wife recently bought a nano, and I wanted to write a simple program for it. It appears that Apple has only released an SDK for the iPhone/iPod Touch without the ability to target the nano. What are the options to create an app targeted at the nano and install it onto hers? 回答1: Your best bet would likely be to get her an iPodTouch or an iPhone and work towards developing on those. They will have support, and familiar tools. I don't think there's any supported development options for the

iPhone/iPod - prevent font-size-changing

白昼怎懂夜的黑 提交于 2019-12-12 07:15:09
问题 I was wondering whether it is possible to prevent following behaviour: I've got a *.css file in which I define the font-size for my mobile-web-app. html,body { font-size:16px !important; } I didn't use any other font-size attributes in my files. Now, when I turn into the landscape mode, the font-size changes. How can I prevent or manipulate this behaviour. Do I have to use @media screen and (max-width: x px) { } or is there any other way? Thanks for sharing. 回答1: You may need to use extra

Updating enterprise iOS apps while retaining some files of the current app bundle

不问归期 提交于 2019-12-12 01:35:37
问题 Currently, to deploy our enterprise app, we get the client to download the latest app build bundle and install it using the iPhone Configuration Utility. Unfortunately when they uninstall the current build of the app, it removes all its related files on the device. They need to uninstall the app before being able to install the new build of the app. Is there a way to update to the new build while retaining some of the existing files on the device so that the entire app isn't completely reset

open UITableViewController as an item of UItabbarcontroller

泪湿孤枕 提交于 2019-12-11 16:21:44
问题 I created an UITabbarController that its first item is an UIViewController, this UIViewController contains a button that must open UITableViewController. I created the UITableViewController and UIViewController in the StoryBoard and gave them identifier name. my problem is,when I press the button that is in the UIViewController to open the table, it opens the UITableViewController but without the tabBar and I want the UITableViewController be as an item from the tabBar (item opens other item)